wt-front-shared 19.1.0 → 19.2.0
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/entities/README.md +46 -0
- package/entities/index.d.ts +5 -0
- package/entities/lib/guards/entity-sections.guard.d.ts +11 -0
- package/entities/lib/guards/route-wait.service.d.ts +10 -0
- package/entities/lib/services/entities-adapter.service.d.ts +72 -0
- package/entities/lib/services/entities-api.service.d.ts +13 -0
- package/entities/lib/services/entities-events.service.d.ts +9 -0
- package/entities/lib/services/entities-sections.service.d.ts +42 -0
- package/entities/lib/settings/code-editor.component.d.ts +24 -0
- package/entities/lib/settings/code-lint.util.d.ts +11 -0
- package/entities/lib/settings/entities-settings.component.d.ts +27 -0
- package/entities/lib/settings/entities-settings.facade.d.ts +23 -0
- package/entities/lib/settings/entities-settings.models.d.ts +99 -0
- package/entities/lib/settings/entities-settings.util.d.ts +122 -0
- package/entities/lib/settings/entity-form.component.d.ts +256 -0
- package/entities/lib/settings/entity-plan-dialog.component.d.ts +15 -0
- package/entities/lib/state/entities.actions.d.ts +35 -0
- package/entities/lib/state/entities.effects.d.ts +34 -0
- package/entities/lib/state/entities.facade.d.ts +17 -0
- package/entities/lib/state/entities.models.d.ts +157 -0
- package/entities/lib/state/entities.reducer.d.ts +13 -0
- package/entities/lib/state/entities.selectors.d.ts +15 -0
- package/entities/lib/tokens.d.ts +8 -0
- package/entities/lib/ui/confirm-dialog.component.d.ts +13 -0
- package/entities/lib/ui/empty-state.component.d.ts +8 -0
- package/entities/lib/ui/index.d.ts +5 -0
- package/entities/lib/ui/inline-alert.component.d.ts +11 -0
- package/entities/lib/ui/page-header.component.d.ts +8 -0
- package/entities/lib/ui/status-chip.component.d.ts +8 -0
- package/entities/public-api.d.ts +19 -0
- package/fesm2022/wt-front-shared-auto-form.mjs +83 -83
- package/fesm2022/wt-front-shared-auto-form.mjs.map +1 -1
- package/fesm2022/wt-front-shared-entities.mjs +2850 -0
- package/fesm2022/wt-front-shared-entities.mjs.map +1 -0
- package/fesm2022/wt-front-shared-panel-ui.mjs +119 -119
- package/fesm2022/wt-front-shared-panel-ui.mjs.map +1 -1
- package/fesm2022/wt-front-shared-static-data.mjs +86 -86
- package/fesm2022/wt-front-shared-static-data.mjs.map +1 -1
- package/fesm2022/wt-front-shared.mjs +284 -284
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/package.json +32 -6
|
@@ -17,7 +17,7 @@ import { MAT_DIALOG_DATA, MatDialogModule, MatDialogActions, MatDialogContent, M
|
|
|
17
17
|
import { MatTabGroup, MatTab, MatTabLabel, MatTabContent, MatTabsModule } from '@angular/material/tabs';
|
|
18
18
|
import { NgxMaskDirective, NgxMaskPipe, provideNgxMask } from 'ngx-mask';
|
|
19
19
|
import { MatCardSubtitle, MatCardHeader, MatCardContent, MatCardTitle, MatCard } from '@angular/material/card';
|
|
20
|
-
import { Subject, tap, of, map,
|
|
20
|
+
import { Subject, tap, of, map, isObservable, from, switchMap, catchError, shareReplay, takeUntil, BehaviorSubject, combineLatest } from 'rxjs';
|
|
21
21
|
import { take, map as map$1, startWith, takeUntil as takeUntil$1, filter as filter$1, distinctUntilChanged, tap as tap$1 } from 'rxjs/operators';
|
|
22
22
|
import * as i1$3 from '@angular/router';
|
|
23
23
|
import { NavigationEnd, RouterLink, RouterModule } from '@angular/router';
|
|
@@ -95,10 +95,10 @@ class StaticDataPresetsFacade {
|
|
|
95
95
|
return (data || { presets: [], version: 0 });
|
|
96
96
|
}));
|
|
97
97
|
}
|
|
98
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
99
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
98
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataPresetsFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
99
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataPresetsFacade, providedIn: 'root' }); }
|
|
100
100
|
}
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataPresetsFacade, decorators: [{
|
|
102
102
|
type: Injectable,
|
|
103
103
|
args: [{ providedIn: 'root' }]
|
|
104
104
|
}] });
|
|
@@ -165,8 +165,8 @@ class StaticDataPresetsComponent {
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
failed(error) { this.error = error.message; this.busy = false; this.cd.markForCheck(); }
|
|
168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataPresetsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
169
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: StaticDataPresetsComponent, isStandalone: true, selector: "shared-static-data-presets", inputs: { contentType: "contentType", where: "where" }, outputs: { applied: "applied" }, usesOnChanges: true, ngImport: i0, template: `
|
|
170
170
|
<div class="presets" aria-label="Личные пресеты фильтров">
|
|
171
171
|
<strong>Мои пресеты</strong>
|
|
172
172
|
@for (preset of settings.presets; track preset.id) {
|
|
@@ -182,7 +182,7 @@ class StaticDataPresetsComponent {
|
|
|
182
182
|
@if (error) { <p role="alert">{{ error }}</p> }
|
|
183
183
|
`, isInline: true, styles: [":host{display:block;margin:12px 0;padding:0}.presets{display:flex;gap:8px;align-items:center;flex-wrap:wrap}input{padding:6px}button{padding:6px 10px}button[aria-pressed=true]{font-weight:700}p{margin:6px 0}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
184
184
|
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataPresetsComponent, decorators: [{
|
|
186
186
|
type: Component,
|
|
187
187
|
args: [{ selector: 'shared-static-data-presets', standalone: true, imports: [FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
188
188
|
<div class="presets" aria-label="Личные пресеты фильтров">
|
|
@@ -238,10 +238,10 @@ class StaticDataBoardsFacade {
|
|
|
238
238
|
return (data || { boards: [], version: 0, canManage: false });
|
|
239
239
|
}));
|
|
240
240
|
}
|
|
241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
242
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
241
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataBoardsFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
242
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataBoardsFacade, providedIn: 'root' }); }
|
|
243
243
|
}
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataBoardsFacade, decorators: [{
|
|
245
245
|
type: Injectable,
|
|
246
246
|
args: [{ providedIn: 'root' }]
|
|
247
247
|
}] });
|
|
@@ -594,8 +594,8 @@ class BoardFilterComponent {
|
|
|
594
594
|
}
|
|
595
595
|
return this.optionStreams.get(fieldName);
|
|
596
596
|
}
|
|
597
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
598
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
597
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BoardFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
598
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: BoardFilterComponent, isStandalone: true, selector: "shared-board-filter", inputs: { group: "group", fields: "fields", depth: "depth" }, ngImport: i0, template: `
|
|
599
599
|
<fieldset>
|
|
600
600
|
<legend><label>Условия
|
|
601
601
|
<select [(ngModel)]="group.operator" aria-label="Связь условий"><option value="and">И (AND)</option><option value="or">ИЛИ (OR)</option></select>
|
|
@@ -682,7 +682,7 @@ class BoardFilterComponent {
|
|
|
682
682
|
</fieldset>
|
|
683
683
|
`, isInline: true, styles: ["fieldset{border:1px solid #dfe3eb;border-radius:8px;padding:12px;margin:8px 0;min-width:0}.condition{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}shared-board-filter{flex:1;min-width:200px}label{display:flex;flex-direction:column;gap:4px;font-size:13px}select,input,button{border:1px solid #dfe3eb;border-radius:4px;padding:7px;background:transparent;color:inherit;max-width:100%}mat-select.relation-select{border:1px solid #dfe3eb;border-radius:4px;padding:6px 10px;background:transparent;color:inherit;min-width:180px;max-width:280px;height:35px;box-sizing:border-box;display:inline-flex;align-items:center;font-size:13px}button{cursor:pointer;margin-right:6px}small{display:block;padding-top:8px}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => BoardFilterComponent), selector: "shared-board-filter", inputs: ["group", "fields", "depth"] }, { kind: "ngmodule", type: i0.forwardRef(() => FormsModule) }, { kind: "directive", type: i0.forwardRef(() => i4.NgSelectOption), selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i0.forwardRef(() => i4.ɵNgSelectMultipleOption), selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i0.forwardRef(() => i4.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: i0.forwardRef(() => i4.SelectControlValueAccessor), selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i0.forwardRef(() => i4.NgControlStatus), selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i0.forwardRef(() => i4.NgModel), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i0.forwardRef(() => AsyncPipe), name: "async" }, { kind: "ngmodule", type: i0.forwardRef(() => MatSelectModule) }, { kind: "component", type: i0.forwardRef(() => i2.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", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i0.forwardRef(() => i2.MatSelectTrigger), selector: "mat-select-trigger" }, { kind: "component", type: i0.forwardRef(() => i2.MatOption), selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: i0.forwardRef(() => NgxMatSelectSearchModule) }, { kind: "component", type: i0.forwardRef(() => i3.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
684
684
|
}
|
|
685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BoardFilterComponent, decorators: [{
|
|
686
686
|
type: Component,
|
|
687
687
|
args: [{ selector: 'shared-board-filter', standalone: true, imports: [FormsModule, AsyncPipe, MatSelectModule, NgxMatSelectSearchModule, forwardRef(() => BoardFilterComponent)], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
688
688
|
<fieldset>
|
|
@@ -819,8 +819,8 @@ class BoardEditDialogComponent {
|
|
|
819
819
|
this.board.description = this.board.description?.trim() || undefined;
|
|
820
820
|
this.ref.close(this.board);
|
|
821
821
|
}
|
|
822
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
823
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
822
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BoardEditDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
823
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: BoardEditDialogComponent, isStandalone: true, selector: "shared-board-edit-dialog", ngImport: i0, template: `
|
|
824
824
|
<h2 mat-dialog-title class="dialog-title">
|
|
825
825
|
{{ data.isNew ? 'Новая доска' : 'Редактирование доски' }}
|
|
826
826
|
</h2>
|
|
@@ -916,7 +916,7 @@ class BoardEditDialogComponent {
|
|
|
916
916
|
</mat-dialog-actions>
|
|
917
917
|
`, isInline: true, styles: [":host{display:block}.dialog-title{margin:0;padding:16px 24px;font-size:18px;font-weight:600;color:#0f172a;border-bottom:1px solid #e2e8f0}.dialog-content{padding:20px 24px;max-height:70vh}.edit-form{display:flex;flex-direction:column;gap:16px}.form-row-top{display:flex;gap:16px;align-items:flex-end}.name-label{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px}.label-text{font-size:13px;font-weight:600;color:#334155}.form-input,.form-select{height:38px;padding:0 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;background:#fff;color:#0f172a;box-sizing:border-box;outline:none;transition:border-color .15s ease;width:100%}.form-input:focus,.form-select:focus{border-color:#0284c7;box-shadow:0 0 0 2px #0284c726}.icon-section{display:flex;flex-direction:column;gap:6px}.icon-input-row{display:flex;align-items:center;gap:8px}.icon-preview-box{width:38px;height:38px;border:1px solid #cbd5e1;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;position:relative;background:#f8fafc;flex-shrink:0;color:#0284c7}.icon-preview-box mat-icon{font-size:22px;width:22px;height:22px}.no-icon-placeholder{color:#94a3b8;font-size:14px}.btn-clear-icon{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:#64748b;font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.btn-clear-icon:hover{background:#fee2e2;color:#ef4444;border-color:#fca5a5}.icon-name-input{flex:1}.preset-icons{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.preset-icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#475569;cursor:pointer;padding:0;transition:all .15s ease}.preset-icon-btn mat-icon{font-size:18px;width:18px;height:18px}.preset-icon-btn:hover{background:#f1f5f9;border-color:#cbd5e1;color:#0f172a}.preset-icon-btn.is-selected{background:#e0f2fe;border-color:#0284c7;color:#0284c7}.status-toggle{display:inline-flex;align-items:center;gap:10px;cursor:pointer;-webkit-user-select:none;user-select:none;height:38px;padding:0 12px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-sizing:border-box;transition:all .15s ease;flex-shrink:0}.status-toggle:hover{background:#f8fafc;border-color:#94a3b8}.toggle-switch{position:relative;display:inline-block;width:36px;height:20px;flex-shrink:0}.toggle-switch input{opacity:0;width:0;height:0;margin:0;padding:0;position:absolute}.toggle-slider{position:absolute;cursor:pointer;inset:0;background-color:#cbd5e1;transition:.2s cubic-bezier(.4,0,.2,1);border-radius:20px}.toggle-slider:before{position:absolute;content:\"\";height:14px;width:14px;left:3px;bottom:3px;background-color:#fff;transition:.2s cubic-bezier(.4,0,.2,1);border-radius:50%;box-shadow:0 1px 3px #0003}.toggle-switch input:checked+.toggle-slider{background-color:#27a644}.toggle-switch input:checked+.toggle-slider:before{transform:translate(16px)}.toggle-text{font-size:13px;font-weight:500;color:#1e293b;white-space:nowrap}.toggle-text.is-disabled{color:#94a3b8}.icon-header{display:flex;justify-content:space-between;align-items:center}.icons-link{font-size:12px;color:#0284c7;text-decoration:none;font-weight:500}.icons-link:hover{text-decoration:underline;color:#0369a1}.desc-label{display:flex;flex-direction:column;gap:6px}.form-textarea{padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;background:#fff;color:#0f172a;box-sizing:border-box;outline:none;resize:vertical;font-family:inherit;width:100%;min-height:56px;transition:border-color .15s ease}.form-textarea:focus{border-color:#0284c7;box-shadow:0 0 0 2px #0284c726}.conditions-block{margin-top:4px}.conditions-title{display:block;font-size:13px;font-weight:600;color:#334155;margin-bottom:8px}.dialog-actions{padding:12px 24px;border-top:1px solid #e2e8f0;gap:8px}.btn-cancel{padding:8px 16px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font-size:14px;font-weight:500;cursor:pointer}.btn-cancel:hover{background:#f1f5f9}.btn-save{padding:8px 18px;border:none;border-radius:6px;background:#27a644;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease}.btn-save:hover:not(:disabled){background:#218838}.btn-save:disabled{opacity:.5;cursor:not-allowed}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: BoardFilterComponent, selector: "shared-board-filter", inputs: ["group", "fields", "depth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
918
918
|
}
|
|
919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BoardEditDialogComponent, decorators: [{
|
|
920
920
|
type: Component,
|
|
921
921
|
args: [{ selector: 'shared-board-edit-dialog', standalone: true, imports: [CommonModule, FormsModule, MatDialogModule, MatIconModule, BoardFilterComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
922
922
|
<h2 mat-dialog-title class="dialog-title">
|
|
@@ -1119,8 +1119,8 @@ class BoardSettingsDialogComponent {
|
|
|
1119
1119
|
},
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BoardSettingsDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: StaticDataBoardsFacade }, { token: i1.MatDialogRef }, { token: i0.ChangeDetectorRef }, { token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: BoardSettingsDialogComponent, isStandalone: true, selector: "shared-board-settings-dialog", ngImport: i0, template: `
|
|
1124
1124
|
<div class="settings-dialog-header">
|
|
1125
1125
|
<h2 mat-dialog-title>Настройки</h2>
|
|
1126
1126
|
</div>
|
|
@@ -1192,7 +1192,7 @@ class BoardSettingsDialogComponent {
|
|
|
1192
1192
|
</mat-dialog-actions>
|
|
1193
1193
|
`, isInline: true, styles: [":host{display:block}.settings-dialog-header{padding:18px 24px 0}.settings-dialog-header h2{margin:0;font-size:20px;font-weight:600;color:#0f172a}.settings-subtabs{display:flex;gap:4px;padding:0 24px;border-bottom:1px solid #e2e8f0;margin-top:12px}.subtab-item{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:none;background:transparent;color:#64748b;font-size:14px;font-weight:500;cursor:pointer;position:relative;margin-bottom:-1px;border-bottom:2px solid transparent;transition:all .15s ease}.subtab-item:hover{color:#0f172a}.subtab-item.active{color:#0284c7;border-bottom-color:#0284c7;font-weight:600}.subtab-icon{font-size:18px;width:18px;height:18px}.settings-dialog-content{padding:16px 24px;max-height:68vh}.boards-section-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-desc{margin:0;color:#64748b;font-size:13px}.btn-add-board{padding:8px 16px;border:1px solid #0284c7;border-radius:6px;background:#f0f9ff;color:#0284c7;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .15s ease}.btn-add-board:hover:not(:disabled){background:#e0f2fe}.btn-add-board:disabled{opacity:.5;cursor:not-allowed}.boards-list{display:flex;flex-direction:column;gap:8px}.board-item-row{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;transition:all .15s ease}.board-item-row:hover{border-color:#cbd5e1;background:#f8fafc}.board-item-row.is-disabled{opacity:.75;background:#fafafa}.board-item-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.board-item-icon{font-size:20px;width:20px;height:20px;color:#0284c7;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.board-name-title{font-size:15px;font-weight:600;color:#0f172a}.board-status-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:500;background:#f1f5f9;color:#64748b}.board-status-badge.active{background:#dcfce7;color:#15803d}.board-desc-hint{font-size:12px;color:#64748b;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:italic}.board-kanban-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:12px;background:#f0f9ff;color:#0284c7}.board-item-actions{display:flex;align-items:center;gap:6px}.btn-move{width:32px;height:32px;padding:0;border:1px solid #e2e8f0;border-radius:5px;background:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:15px;color:#475569}.btn-move:hover:not(:disabled){background:#f1f5f9;color:#0f172a}.btn-move:disabled{opacity:.35;cursor:default}.btn-edit{padding:6px 14px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#1e293b;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.btn-edit:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8}.btn-delete{padding:6px 14px;border:1px solid #fecaca;border-radius:5px;background:#fff;color:#dc2626;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.btn-delete:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5}.empty-boards{padding:36px 20px;text-align:center;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}.empty-boards p{margin:0 0 12px;color:#64748b;font-size:14px}.dialog-actions-bar{padding:12px 24px;border-top:1px solid #e2e8f0;gap:8px}.btn-cancel{padding:8px 16px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font-size:14px;font-weight:500;cursor:pointer}.btn-cancel:hover:not(:disabled){background:#f1f5f9}.btn-save{padding:8px 20px;border:none;border-radius:6px;background:#27a644;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease}.btn-save:hover:not(:disabled){background:#218838}.btn-save:disabled{opacity:.5;cursor:not-allowed}.error-msg{color:#b42318;margin-top:12px;font-size:13px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1194
1194
|
}
|
|
1195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BoardSettingsDialogComponent, decorators: [{
|
|
1196
1196
|
type: Component,
|
|
1197
1197
|
args: [{ selector: 'shared-board-settings-dialog', standalone: true, imports: [CommonModule, FormsModule, MatDialogModule, MatIconModule, BoardFilterComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1198
1198
|
<div class="settings-dialog-header">
|
|
@@ -1298,8 +1298,8 @@ class StaticDataKanbanComponent {
|
|
|
1298
1298
|
const labels$ = fixed ? of(fixed) : key ? this.facade.getStaticDataForListContentTypes$([key]).pipe(map(data => data[key] || [])) : of([]);
|
|
1299
1299
|
this.columns$ = labels$.pipe(map(labels => groupKanbanItems(this.items, this.field.field, labels)));
|
|
1300
1300
|
}
|
|
1301
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1302
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataKanbanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1302
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: StaticDataKanbanComponent, isStandalone: true, selector: "shared-static-data-kanban", inputs: { items: "items", field: "field" }, outputs: { open: "open" }, usesOnChanges: true, ngImport: i0, template: `
|
|
1303
1303
|
<p class="hint">Карточки текущей страницы. Для просмотра следующих записей используйте переключение страниц.</p>
|
|
1304
1304
|
<div class="kanban" aria-label="Канбан">
|
|
1305
1305
|
@for (column of columns$ | async; track column.key) {
|
|
@@ -1312,7 +1312,7 @@ class StaticDataKanbanComponent {
|
|
|
1312
1312
|
</div>
|
|
1313
1313
|
`, isInline: true, styles: [".kanban{display:flex;gap:16px;overflow-x:auto;padding-bottom:16px}.kanban-column{min-width:250px;flex:1;background:var(--borderColor, #f4f6f9);border-radius:10px;padding:12px}h3{display:flex;justify-content:space-between;font-size:14px}h3 span{opacity:.6}.kanban-card{width:100%;text-align:start;border:1px solid #dfe3eb;background:var(--whiteColor, white);color:inherit;border-radius:8px;padding:14px;margin:8px 0;cursor:pointer}strong,small{display:block;overflow-wrap:anywhere}small{opacity:.6;margin-bottom:8px}.hint{font-size:12px;opacity:.7}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1314
1314
|
}
|
|
1315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataKanbanComponent, decorators: [{
|
|
1316
1316
|
type: Component,
|
|
1317
1317
|
args: [{ selector: 'shared-static-data-kanban', standalone: true, imports: [AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1318
1318
|
<p class="hint">Карточки текущей страницы. Для просмотра следующих записей используйте переключение страниц.</p>
|
|
@@ -1429,10 +1429,10 @@ class FieldSettingsDialogComponent {
|
|
|
1429
1429
|
});
|
|
1430
1430
|
this.form = this.fb.group(preparedFields);
|
|
1431
1431
|
}
|
|
1432
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1433
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1432
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FieldSettingsDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i3$1.StaticDataFacade }, { token: i3$2.Store }, { token: i4.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1433
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FieldSettingsDialogComponent, isStandalone: true, selector: "app-field-settings-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <div\n class=\"close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <h5 class=\"mat-dialog-title\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u043E\u043B\u0435\u0439</h5>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n <div cdkDropList class=\"example-list\" (cdkDropListDropped)=\"drop($event)\">\n @for (fieldData of sectionField; track fieldData) {\n <div class=\"example-box\" cdkDrag>\n <div class=\"example-custom-placeholder\" *cdkDragPlaceholder></div>\n <mat-icon class=\"example-drag-cursor\">view_headline</mat-icon>\n <mat-slide-toggle [formControlName]=\"fieldData.field\">{{ fieldData.title }}</mat-slide-toggle>\n </div>\n }\n </div>\n </form>\n </div>\n <div\n mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\">\u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button mat-button\n (click)=\"submitClick()\"\n class=\"mat-raised-button mat-warn\">\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\n </button>\n </div>\n</div>\n\n\n\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:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.setting-item{text-align:left}.example-list{width:500px;max-width:100%;border:solid 1px #d0d0d0;min-height:60px;display:block;background:#fff;border-radius:4px;overflow:hidden;font-family:sans-serif}.example-box{padding:10px;border-bottom:solid 1px #d0d0d0;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;font-family:sans-serif}.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-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-box:last-child{border:none}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.example-custom-placeholder{background:#d0d0d0;border:dotted 3px #7f7f7f;min-height:45px;transition:transform .25s cubic-bezier(0,0,.2,1)}.example-drag-cursor{margin-right:16px;cursor:move}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1434
1434
|
}
|
|
1435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FieldSettingsDialogComponent, decorators: [{
|
|
1436
1436
|
type: Component,
|
|
1437
1437
|
args: [{ selector: 'app-field-settings-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
1438
1438
|
ButtonModule,
|
|
@@ -1653,10 +1653,10 @@ class FilteringDialogComponent {
|
|
|
1653
1653
|
};
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1657
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1656
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FilteringDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i3$1.StaticDataFacade }, { token: i3$2.Store }, { token: i4.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1657
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FilteringDialogComponent, isStandalone: true, selector: "app-filtering-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-20 modal-style-info modal-size-middle filtering-dialog-container\">\n <div class=\"modal-close-button\" (click)=\"onNoClick()\" aria-label=\"\u0417\u0430\u043A\u0440\u044B\u0442\u044C\">\u00D7</div>\n\n <h4 class=\"mat-dialog-title mb-15\">\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u043F\u043E \u043F\u043E\u043B\u044F\u043C</h4>\n <div mat-dialog-content class=\"filtering-dialog-content\">\n <form [formGroup]=\"form\">\n <table class=\"filter-form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field w-100\" appearance=\"outline\" subscriptSizing=\"dynamic\">\n @switch (field.type) {\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option [value]=\"null\">\u2014</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (StaticDataSectionFilteringFieldTypes.SELECT) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\" placeholder=\"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435...\">\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n @case (StaticDataSectionFilteringFieldTypes.BETWEEN) {\n <div class=\"between-inputs\">\n <input matInput type=\"text\" placeholder=\"\u041E\u0442\" [formControlName]=\"field.field\"/>\n <span class=\"between-separator\">\u2014</span>\n <input matInput type=\"text\" placeholder=\"\u0414\u043E\" [formControlName]=\"field.field + '2'\"/>\n </div>\n }\n @default {\n <input matInput type=\"text\" placeholder=\"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435...\" [formControlName]=\"field.field\"/>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n </form>\n </div>\n <div mat-dialog-actions class=\"dialog-actions-footer mt-20\">\n <button mat-button type=\"button\" (click)=\"resetClick()\" class=\"mat-stroked-button\">\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C</button>\n <div class=\"footer-right\">\n <button mat-button type=\"button\" (click)=\"onNoClick()\" class=\"mat-stroked-button mr-10\">\u041E\u0442\u043C\u0435\u043D\u0430</button>\n <button mat-raised-button type=\"button\" color=\"primary\" (click)=\"submitClick()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C</button>\n </div>\n </div>\n</div>\n\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:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.filtering-dialog-container{min-width:480px;max-width:640px;text-align:left}.filtering-dialog-content{max-height:60vh;overflow-y:auto;padding:8px 4px}.filter-form{width:100%;border-collapse:collapse}.filter-form tr{border-bottom:1px solid #f1f5f9}.filter-form .filter-form-field{text-align:left;font-size:13px;font-weight:500;color:#475569;padding:10px 12px 10px 0;width:35%;vertical-align:middle}.filter-form .filter-form-value{padding:6px 0;width:65%;vertical-align:middle}.small-form-field{width:100%}.between-inputs{display:flex;align-items:center;gap:8px;width:100%}.between-inputs input{flex:1}.between-inputs .between-separator{color:#94a3b8;font-weight:700}.dialog-actions-footer{display:flex;justify-content:space-between;align-items:center;width:100%;padding-top:14px;border-top:1px solid #e2e8f0}.dialog-actions-footer .footer-right{display:flex;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: 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", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1658
1658
|
}
|
|
1659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FilteringDialogComponent, decorators: [{
|
|
1660
1660
|
type: Component,
|
|
1661
1661
|
args: [{ selector: 'app-filtering-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
1662
1662
|
ButtonModule,
|
|
@@ -1774,10 +1774,10 @@ class StaticDataListFilteringComponent {
|
|
|
1774
1774
|
});
|
|
1775
1775
|
this.form = this.fb.group(preparedFields);
|
|
1776
1776
|
}
|
|
1777
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1778
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataListFilteringComponent, deps: [{ token: i3$1.StaticDataFacade }, { token: i3$2.Store }, { token: i0.ChangeDetectorRef }, { token: i1.MatDialog }, { token: i4.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1778
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataListFilteringComponent, isStandalone: true, selector: "app-static-data-list-filtering", inputs: { filteringConfig: "filteringConfig", sectionFields: "sectionFields" }, outputs: { filterSubmit: "filterSubmit" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"filter-block\">\n <div class=\"filter-link\" (click)=\"openDialog()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C </div>\n <!--<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title> \u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</mat-panel-title>\n </mat-expansion-panel-header>\n\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field>\n @switch (field.type) {\n @case (FieldType.FieldTypeInput) {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> ---</mat-option>\n <mat-option [value]=\"1\">\u0414\u0430</mat-option>\n <mat-option [value]=\"0\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> ---</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\" [value]=\"option.value\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n <div class=\"mt-10\">\n <shared-button\n class=\"mr-5\"\n color=\"basic\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"clearFilter()\">\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n color=\"accent\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"filterFormSubmit()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n </div>\n </mat-expansion-panel>-->\n</div>\n", styles: [".filter-block{display:flex;align-items:center}.filter-link{cursor:pointer}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1779
1779
|
}
|
|
1780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataListFilteringComponent, decorators: [{
|
|
1781
1781
|
type: Component,
|
|
1782
1782
|
args: [{ selector: 'app-static-data-list-filtering', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"filter-block\">\n <div class=\"filter-link\" (click)=\"openDialog()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C </div>\n <!--<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title> \u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</mat-panel-title>\n </mat-expansion-panel-header>\n\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field>\n @switch (field.type) {\n @case (FieldType.FieldTypeInput) {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> ---</mat-option>\n <mat-option [value]=\"1\">\u0414\u0430</mat-option>\n <mat-option [value]=\"0\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> ---</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\" [value]=\"option.value\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n <div class=\"mt-10\">\n <shared-button\n class=\"mr-5\"\n color=\"basic\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"clearFilter()\">\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n color=\"accent\"\n styleTheme=\"raised\"\n size=\"small\"\n (click)=\"filterFormSubmit()\">\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n </div>\n </mat-expansion-panel>-->\n</div>\n", styles: [".filter-block{display:flex;align-items:center}.filter-link{cursor:pointer}\n"] }]
|
|
1783
1783
|
}], ctorParameters: () => [{ type: i3$1.StaticDataFacade }, { type: i3$2.Store }, { type: i0.ChangeDetectorRef }, { type: i1.MatDialog }, { type: i4.UntypedFormBuilder }], propDecorators: { filteringConfig: [{
|
|
@@ -1827,10 +1827,10 @@ class StaticDataFilterOptionsComponent {
|
|
|
1827
1827
|
});
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1831
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
1830
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataFilterOptionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1831
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataFilterOptionsComponent, isStandalone: true, selector: "app-static-data-filter-options", inputs: { staticSectionFields: "staticSectionFields", filterFormDataValues: "filterFormDataValues" }, outputs: { changedFilter: "changedFilter" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"listOptions?.length\" class=\"filter-options-block\">\n <b>\u041F\u0440\u0438\u043C\u0435\u043D\u0435\u043D \u0444\u0438\u043B\u044C\u0442\u0440:</b>\n <div class=\"filter-options\">\n <table class=\"option-field\">\n <tr *ngFor=\"let item of listOptions; let i = index\">\n <th>{{ item.title }}</th>\n <td>{{ item.value }}</td>\n <td class=\"action-column\"><mat-icon (click)=\"canselOption(item.field)\">close</mat-icon></td>\n </tr>\n <tr>\n <td class=\"cancel-filter\" colspan=\"3\">\n <a (click)=\"canselAllOption()\">\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440</a>\n </td>\n </tr>\n </table>\n </div>\n</div>\n", styles: [".filter-options-block{margin-right:10px}.filter-options-block .filter-options{margin-top:3px}.filter-options-block table{font-size:12px}.filter-options-block table th{background:#f2f0f0;padding-right:10px;border-bottom:1px solid #ffffff}.filter-options-block table th,.filter-options-block table td,.filter-options-block table td mat-icon{padding:0 5px}.filter-options-block table .action-column{display:flex}.filter-options-block table .action-column mat-icon{cursor:pointer;font-size:18px;color:#f44336;height:auto}.filter-options-block table .cancel-filter{text-align:right;cursor:pointer;color:#605dff}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1832
1832
|
}
|
|
1833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataFilterOptionsComponent, decorators: [{
|
|
1834
1834
|
type: Component,
|
|
1835
1835
|
args: [{ selector: 'app-static-data-filter-options', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1836
1836
|
MatIcon,
|
|
@@ -1875,8 +1875,8 @@ class ColumnFilterComponent {
|
|
|
1875
1875
|
this.trigger.closeMenu();
|
|
1876
1876
|
}
|
|
1877
1877
|
clear() { this.applied.emit([]); this.trigger.closeMenu(); }
|
|
1878
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1879
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1878
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ColumnFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1879
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ColumnFilterComponent, isStandalone: true, selector: "shared-column-filter", inputs: { field: "field", values: "values" }, outputs: { applied: "applied" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
1880
1880
|
<button type="button" class="filter-trigger" [class.active]="values.length" [matMenuTriggerFor]="menu"
|
|
1881
1881
|
[attr.aria-label]="'Фильтр: ' + field.title" (menuOpened)="begin()" (click)="$event.stopPropagation()">
|
|
1882
1882
|
<mat-icon>{{ values.length ? 'filter_alt' : 'filter_list' }}</mat-icon>
|
|
@@ -1902,7 +1902,7 @@ class ColumnFilterComponent {
|
|
|
1902
1902
|
</mat-menu>
|
|
1903
1903
|
`, isInline: true, styles: [":host{display:inline-flex}.filter-trigger{display:inline-flex;padding:2px;border:0;background:transparent;color:#8290a5;cursor:pointer}.filter-trigger.active{color:#605dff;background:#eeedff;border-radius:4px}mat-icon{font-size:17px;width:17px;height:17px}.column-filter-popup{box-sizing:border-box;width:250px;padding:8px 16px}.filter-options{display:flex;flex-direction:column;max-height:280px;overflow-y:auto;margin:8px 0}.filter-actions{display:flex;justify-content:space-between;gap:8px}.filter-actions button{padding:6px 10px;border:1px solid #dfe3eb;border-radius:4px;background:transparent;cursor:pointer}.filter-actions button:last-child{background:#605dff;color:#fff;border-color:#605dff}button:disabled{opacity:.5;cursor:default}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i1$2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i1$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1904
1904
|
}
|
|
1905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ColumnFilterComponent, decorators: [{
|
|
1906
1906
|
type: Component,
|
|
1907
1907
|
args: [{ selector: 'shared-column-filter', standalone: true, imports: [AsyncPipe, MatMenuModule, MatIcon, MatCheckbox], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1908
1908
|
<button type="button" class="filter-trigger" [class.active]="values.length" [matMenuTriggerFor]="menu"
|
|
@@ -2042,10 +2042,10 @@ class ColumnResizeDirective {
|
|
|
2042
2042
|
catch { /* Resizing still works without storage. */ }
|
|
2043
2043
|
}
|
|
2044
2044
|
stop() { this.cleanup.forEach(unlisten => unlisten()); this.cleanup = []; }
|
|
2045
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2046
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
2045
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ColumnResizeDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2046
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: ColumnResizeDirective, isStandalone: true, selector: "[sharedColumnResize]", inputs: { sharedColumnResize: "sharedColumnResize" }, host: { listeners: { "pointerdown": "start($event)", "keydown": "keydown($event)", "dblclick": "reset($event)" } }, ngImport: i0 }); }
|
|
2047
2047
|
}
|
|
2048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ColumnResizeDirective, decorators: [{
|
|
2049
2049
|
type: Directive,
|
|
2050
2050
|
args: [{ selector: '[sharedColumnResize]', standalone: true }]
|
|
2051
2051
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
@@ -2287,10 +2287,10 @@ class StaticDataItemsComponent {
|
|
|
2287
2287
|
});
|
|
2288
2288
|
return this.checkFieldGetValueMethod([preparedRow])[0];
|
|
2289
2289
|
}
|
|
2290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2291
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
2290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataItemsComponent, deps: [{ token: i3$1.RouterFacade }, { token: i3$1.StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: i1.MatDialog }, { token: i1$1.MatIconRegistry }, { token: STATIC_DATA_CREATE_NEW_ITEM_DIALOG, optional: true }, { token: STATIC_DATA_VIEW_ITEM_DIALOG, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2291
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: StaticDataItemsComponent, isStandalone: true, selector: "app-static-data-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", items: "items", displayedColumns: "displayedColumns", contentType: "contentType", viewMode: "viewMode", queryParams: "queryParams", userRights: "userRights", subEntityConfig: "subEntityConfig", staticSection: "staticSection", parentSection: "parentSection", parentItemId: "parentItemId", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl", columnFilters: "columnFilters" }, outputs: { columnFilterChange: "columnFilterChange", delete: "delete", changeSorting: "changeSorting", selectingItem: "selectingItem" }, 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 displayedFormFields\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef [attr.data-column]=\"fieldData.field\">\n <span class=\"column-resize\" [sharedColumnResize]=\"contentType\" tabindex=\"0\" role=\"separator\" aria-orientation=\"vertical\" [attr.aria-label]=\"'\u0428\u0438\u0440\u0438\u043D\u0430 \u043A\u043E\u043B\u043E\u043D\u043A\u0438: ' + fieldData.title\" title=\"\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0434\u043B\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0448\u0438\u0440\u0438\u043D\u044B. \u0414\u0432\u043E\u0439\u043D\u043E\u0439 \u0449\u0435\u043B\u0447\u043E\u043A \u2014 \u0441\u0431\u0440\u043E\u0441.\"></span>\n <div>\n <div class=\"column-title\">{{ fieldData.title }}</div>\n @if (fieldData.options?.columnFilter) {\n <shared-column-filter [field]=\"fieldData\" [values]=\"columnFilters[fieldData.field] || []\"\n (applied)=\"columnFilterChange.emit({ field: fieldData.field, values: $event })\" />\n }\n <div class=\"sorting\">\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'asc'\"\n (click)=\"sorting(fieldData.field, 'asc')\">arrow_drop_up\n </mat-icon>\n <mat-icon\n [class.active]=\"fieldData.field === sortingState.field && sortingState.type === 'desc'\"\n (click)=\"sorting(fieldData.field, 'desc')\">arrow_drop_down\n </mat-icon>\n </div>\n </div>\n </th>\n <td mat-cell (click)=\"clickAction(element.id, element)\" *matCellDef=\"let element\">\n @if (staticSection.options?.nestedByField && fieldData.field === displayedColumns[0]?.field) {\n <span class=\"nested-indent\" [style.width.px]=\"(element._nestedDepth || 0) * 20\"></span>\n @if (element._nestedChildrenCount) {\n <button type=\"button\" class=\"nested-toggle\" [attr.aria-expanded]=\"isExpanded(element.id)\"\n [attr.aria-label]=\"'\u041F\u043E\u0434\u0437\u0430\u0434\u0430\u0447\u0438 \u0437\u0430\u044F\u0432\u043A\u0438 ' + element.id\"\n (click)=\"$event.stopPropagation(); toggleChildren(element.id)\">\n <mat-icon aria-hidden=\"true\">{{ isExpanded(element.id) ? 'expand_more' : 'chevron_right' }}</mat-icon>\n </button>\n } @else { <span class=\"nested-spacer\"></span> }\n }\n @if (fieldData.options?.showing?.customListViewComponent; as cellComponent) {\n <ng-container *ngComponentOutlet=\"cellComponent; inputs: {\n value: element[fieldData.field], row: element, fieldData: fieldData\n }\" />\n } @else {\n {{ element[fieldData.field] }}\n }\n @if (staticSection.options?.nestedByField && fieldData.field === displayedColumns[0]?.field && element._nestedChildrenCount) {\n <span class=\"nested-count\" [attr.aria-label]=\"'\u041F\u043E\u0434\u0437\u0430\u0434\u0430\u0447: ' + element._nestedChildrenCount\">{{ element._nestedChildrenCount }}</span>\n }\n </td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'selecting'\">\n <th mat-header-cell *matHeaderCellDef class=\"selecting-column\" data-column=\"selecting\">\u0412\u044B\u0431\u043E\u0440</th>\n <td mat-cell *matCellDef=\"let element\" class=\"selecting-column\">\n <mat-icon class=\"mr-1 view-icon\" (click)=\"popupModeSelectItem(element.id, element.name)\">select_all</mat-icon>\n </td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\" data-column=\"actions\">\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F\n <span class=\"column-resize\" [sharedColumnResize]=\"contentType\" tabindex=\"0\" role=\"separator\" aria-orientation=\"vertical\" aria-label=\"\u0428\u0438\u0440\u0438\u043D\u0430 \u043A\u043E\u043B\u043E\u043D\u043A\u0438: \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F\"></span>\n </th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <mat-icon *ngIf=\"!staticSection.actions?.isNoViewAction\" class=\"mr-1 view-icon view-icon-visibility\"\n (click)=\"view(element.id, element)\">visibility\n </mat-icon>\n <mat-icon *ngIf=\"!viewMode && !staticSection.options?.viewSettings?.listMode?.hideEditAction\" class=\"mr-1 view-icon\" (click)=\"edit(element.id)\">edit</mat-icon>\n <mat-icon *ngIf=\"!viewMode && !staticSection.options?.viewSettings?.listMode?.hideDeleteAction\" class=\"view-icon view-icon-delete\" (click)=\"deleteAction(element)\">delete</mat-icon>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsStrings\"></tr>\n <tr mat-row\n *matRowDef=\"let row; columns: displayedColumnsStrings;\"\n ></tr>\n\n </table>\n</ng-container>\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}.selecting-column{text-align:left!important}.view-icon{font-size:20px}.view-icon.view-icon-visibility{color:#605dff}.view-icon.view-icon-delete{color:#f44336}th div{display:flex}th div .column-title{margin-top:2px}th div .sorting{display:flex;flex-direction:column}th div .sorting mat-icon{font-size:17px;width:15px;height:11px;color:#a09f9f;font-weight:700;cursor:pointer}th div .sorting mat-icon.active{color:#f44336}.nested-indent{display:inline-block}.nested-icon{width:16px;height:16px;font-size:16px;vertical-align:middle;margin-right:4px}.nested-count{display:inline-block;margin-left:6px;padding:0 6px;border-radius:4px;background:#e8efff;color:#3158a5;font-size:11px}.nested-toggle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;vertical-align:middle;cursor:pointer}.nested-toggle:hover{background:#e8efff}.nested-toggle:focus-visible{outline:2px solid #6366f1}.nested-toggle mat-icon{width:20px;height:20px;font-size:20px}.nested-spacer{display:inline-block;width:28px}.static-data-table th{position:relative;box-sizing:border-box}.static-data-table td{overflow:hidden;text-overflow:ellipsis}.column-resize{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;touch-action:none;z-index:2}.column-resize:hover,.column-resize:focus-visible{background:#6366f14d;outline:none}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ColumnFilterComponent, selector: "shared-column-filter", inputs: ["field", "values"], outputs: ["applied"] }, { kind: "directive", type: ColumnResizeDirective, selector: "[sharedColumnResize]", inputs: ["sharedColumnResize"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2292
2292
|
}
|
|
2293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataItemsComponent, decorators: [{
|
|
2294
2294
|
type: Component,
|
|
2295
2295
|
args: [{ selector: 'app-static-data-items', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
2296
2296
|
NgIf,
|
|
@@ -3022,10 +3022,10 @@ class StaticDataListItemsComponent {
|
|
|
3022
3022
|
this.pageIndex = data.pageIndex;
|
|
3023
3023
|
this.loadStaticData(this.pageIndex + 1, data.pageSize);
|
|
3024
3024
|
}
|
|
3025
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3026
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", staticDataConfiguration: "staticDataConfiguration", viewMode: "viewMode", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", icon: "icon", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery", subEntity: "subEntity", leftBlockFilterParamData: "leftBlockFilterParamData", defaultLanguageId: "defaultLanguageId", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl", kanbanOnly: "kanbanOnly" }, outputs: { presetApplied: "presetApplied", selectingItem: "selectingItem" }, 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 }, { propertyName: "customTopFilterHost", first: true, predicate: ["customTopFilterHost"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<div class=\"center-block-inner\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title class=\"custom-card-title\">\n <mat-icon *ngIf=\"icon\"\n class=\"static-data-tab-icon\">{{ icon }}\n </mat-icon>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle class=\"w-100 sub-title-block\">\n <ng-container *ngIf=\"(!viewMode && ( staticSection?.options?.search || staticSection?.options?.filtering ) ) ||\n (viewMode && ( subEntity?.options?.hasSearch || subEntity?.options?.hasFiltering) )\">\n <form class=\"search-box position-relative w-100\">\n <div class=\"row w-100\">\n <div *ngIf=\"staticSection?.options?.search || subEntity?.options?.hasSearch\"\n class=\"col-4 search-block\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-ui-icon class=\"search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'search'\"\n (click)=\"searchHandle(search.value)\"></shared-ui-icon>\n <shared-ui-icon *ngIf=\"search.value\"\n class=\"ml-1 search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'cancel'\"\n (click)=\"searchCancelHandle()\"></shared-ui-icon>\n </div>\n <ng-container *ngIf=\"!staticSection?.options?.filteringType || staticSection?.options?.filteringType === 'modal'\">\n <app-static-data-list-filtering\n *ngIf=\"staticSection?.options?.filtering || subEntity?.options?.hasFiltering\"\n class=\"col-3\"\n [filteringConfig]=\"staticSection?.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </ng-container>\n </div>\n </form>\n </ng-container>\n\n <div class=\"settings\">\n @if (hasFilteringFields) {\n <button matIconButton type=\"button\" class=\"filter-header-btn\" (click)=\"openFilterFieldsDialog()\" aria-label=\"\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u043F\u043E \u043F\u043E\u043B\u044F\u043C\" [title]=\"'\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u043F\u043E \u043F\u043E\u043B\u044F\u043C'\">\n <mat-icon>filter_list</mat-icon>\n @if (activeFilterChipsCount) {\n <span class=\"filter-count-badge\">{{ activeFilterChipsCount }}</span>\n }\n </button>\n }\n <button matIconButton [matMenuTriggerFor]=\"menu\" aria-label=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\">\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n @if (boardsEnabled && boardSettings.canManage) {\n <button mat-menu-item type=\"button\" (click)=\"openBoardSettings()\"><mat-icon>view_kanban</mat-icon>\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0434\u043E\u0441\u043E\u043A</button>\n }\n <button mat-menu-item>\n <mat-icon>contextual_token</mat-icon>\n <span (click)=\"openFieldSettings()\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u043E\u043B\u0435\u0439</span>\n </button>\n </mat-menu>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n @if (boardsEnabled) {\n <div class=\"board-toolbar\">\n <div class=\"board-tabs\" role=\"group\" aria-label=\"\u0414\u043E\u0441\u043A\u0438\">\n <button type=\"button\" [class.selected]=\"!activeBoard\" [attr.aria-pressed]=\"!activeBoard\" (click)=\"selectBoard(null)\">\u0412\u0441\u0435 \u0437\u0430\u043F\u0438\u0441\u0438</button>\n @for (board of visibleBoards; track board.id) {\n <button type=\"button\" [class.selected]=\"activeBoard?.id === board.id\" [attr.aria-pressed]=\"activeBoard?.id === board.id\" [title]=\"board.description || board.name\" (click)=\"selectBoard(board)\">\n @if (board.icon) {\n <mat-icon class=\"board-tab-icon\">{{ board.icon }}</mat-icon>\n }\n <span>{{ board.name }}</span>\n </button>\n }\n </div>\n @if (!kanbanOnly && (activeBoard || kanbanField)) {\n <div class=\"board-view-tabs\" role=\"group\" aria-label=\"\u0412\u0438\u0434 \u0434\u043E\u0441\u043A\u0438\">\n <button type=\"button\" [attr.aria-pressed]=\"boardView === 'list'\" (click)=\"boardView = 'list'\">\n <mat-icon class=\"board-tab-icon\">view_list</mat-icon>\n <span>\u0421\u043F\u0438\u0441\u043E\u043A</span>\n </button>\n <button type=\"button\" [disabled]=\"!kanbanField\" [attr.aria-pressed]=\"boardView === 'kanban'\" (click)=\"boardView = 'kanban'\" [title]=\"kanbanField ? '' : '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u043E\u043B\u0435 \u043A\u043E\u043B\u043E\u043D\u043E\u043A \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0434\u043E\u0441\u043A\u0438'\">\n <mat-icon class=\"board-tab-icon\">view_kanban</mat-icon>\n <span>\u041A\u0430\u043D\u0431\u0430\u043D</span>\n </button>\n </div>\n }\n </div>\n @if (boardsLoading) { <p role=\"status\">\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u043E\u0441\u043E\u043A\u2026</p> }\n @if (boardsError) { <p role=\"alert\">{{ boardsError }} <button type=\"button\" (click)=\"loadBoards()\">\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0438</button></p> }\n }\n @if (presetsEnabled && presetSettings?.presets?.length) {\n <div class=\"presets-toolbar\" role=\"group\" aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0441\u0435\u0442\u044B\">\n <span class=\"presets-label\"><mat-icon class=\"presets-label-icon\">bookmarks</mat-icon> \u041F\u0440\u0435\u0441\u0435\u0442\u044B:</span>\n <div class=\"preset-tabs\">\n @for (preset of presetSettings.presets; track preset.id) {\n <div class=\"preset-pill\" [class.selected]=\"activePresetId === preset.id\">\n <button type=\"button\" class=\"preset-btn\" [attr.aria-pressed]=\"activePresetId === preset.id\" (click)=\"selectPreset(preset)\">\n <span>{{ preset.name }}</span>\n </button>\n <button type=\"button\" class=\"preset-remove-btn\" [attr.aria-label]=\"'\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442 ' + preset.name\" (click)=\"removePreset(preset, $event)\">\u00D7</button>\n </div>\n }\n </div>\n </div>\n }\n @if (hasCustomTopFilter) {\n <div class=\"custom-top-filter-wrapper\">\n <ng-template #customTopFilterHost></ng-template>\n </div>\n }\n @if (activeFilterChips.length) {\n <div class=\"active-filter-chips\" role=\"group\" aria-label=\"\u041F\u0440\u0438\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B\">\n <span class=\"active-filter-chips-label\"><mat-icon class=\"chips-icon\">filter_alt</mat-icon> \u0424\u0438\u043B\u044C\u0442\u0440\u044B:</span>\n <div class=\"chips-list\">\n @for (chip of activeFilterChips; track chip.field) {\n <div class=\"filter-chip\">\n <span class=\"filter-chip-title\">{{ chip.title }}:</span>\n <span class=\"filter-chip-value\">{{ chip.value }}</span>\n <button type=\"button\" class=\"filter-chip-remove\" (click)=\"removeFilterChip(chip.field)\" [attr.aria-label]=\"'\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440 ' + chip.title\">\u00D7</button>\n </div>\n }\n <button type=\"button\" class=\"filter-clear-all-btn\" (click)=\"clearAllFilterChips()\">\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0432\u0441\u0451</button>\n </div>\n </div>\n }\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.texts?.list?.topText\"\n [innerHTML]=\"staticSection.texts?.list?.topText\"\n class=\"static-data-list-top-text\">\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\"\n [style.max-height.px]=\"viewMode ? ( subEntity.options?.maxHeight || 400 ) : 'auto'\">\n @if (boardView === 'kanban' && kanbanField) {\n <shared-static-data-kanban [items]=\"staticData\" [field]=\"kanbanField\" (open)=\"openKanbanItem($event, userRights)\" />\n } @else {\n <app-static-data-items [items]=\"staticData\"\n [columnFilters]=\"columnFilters\"\n (columnFilterChange)=\"filterColumn($event)\"\n [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n [parentSection]=\"parentSection\"\n [parentItemId]=\"parentData?.id\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (selectingItem)=\"selectItemHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n }\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > perPage\">\n <mat-paginator\n *ngIf=\"totalCount\"\n aria-label=\"\u0412\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[5, 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=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n\n <div *ngIf=\"!viewMode && userRights[0] && !staticSection.options?.viewSettings?.listMode?.hideAddAction\" class=\"text-center mt-30 mb-30 add-action-container\">\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</div>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.search-block{display:flex;align-content:center;align-items:center}.search-block .search-input{background-color:#f5f5f5!important;padding:11px 10px!important;margin-right:3px;width:100%}.custom-top-filter-wrapper{width:100%;display:block;margin-top:8px;margin-bottom:8px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:0}.content{padding-bottom:8px!important}.add-action-container{margin-top:16px!important;margin-bottom:0!important;padding-bottom:0}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.32);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:0}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings{display:flex;align-items:center;gap:8px}.settings .filter-header-btn{display:inline-flex;align-items:center;justify-content:center;position:relative;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;padding:6px;cursor:pointer;line-height:1;transition:all .15s ease}.settings .filter-header-btn:hover{background:#f1f5f9;color:#1e293b;border-color:#94a3b8}.settings .filter-header-btn mat-icon{font-size:20px;width:20px;height:20px;color:#6366f1}.settings .filter-header-btn .filter-count-badge{position:absolute;top:-6px;right:-6px;display:inline-flex;align-items:center;justify-content:center;background:#6366f1;color:#fff;font-size:10px;font-weight:700;min-width:16px;height:16px;padding:0 4px;border-radius:8px;border:1px solid #ffffff}.settings button{border:0;background:transparent;color:#64758b}mat-card-header ::ng-deep .mat-mdc-card-header-text{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;width:100%}.sub-title-block{display:flex;justify-content:flex-end;align-items:center;flex:1 1 auto;width:auto!important}.board-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 0;margin-top:8px;margin-bottom:8px;border-bottom:1px solid #dfe3eb}.board-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.board-view-tabs{display:flex;gap:8px;align-items:center}.board-toolbar button{border:1px solid #dfe3eb;border-radius:6px;background:transparent;color:inherit;padding:8px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.board-tab-icon{font-size:18px;width:18px;height:18px;line-height:18px}.board-toolbar button.selected,.board-toolbar button[aria-pressed=true]{background:#605dff;color:#fff;border-color:#605dff}.board-toolbar button:disabled{opacity:.5;cursor:default}.presets-toolbar{display:flex;align-items:center;gap:10px;padding:8px 0 12px;flex-wrap:wrap}.presets-toolbar .presets-label{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#64748b}.presets-toolbar .presets-label .presets-label-icon{font-size:16px;width:16px;height:16px;color:#605dff}.presets-toolbar .preset-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.presets-toolbar .preset-pill{display:inline-flex;align-items:center;border-radius:16px;background:#f1f5f9;border:1px solid #e2e8f0;transition:all .2s ease;overflow:hidden}.presets-toolbar .preset-pill:hover{background:#e2e8f0;border-color:#cbd5e1}.presets-toolbar .preset-pill.selected{background:#eef2ff;border-color:#605dff}.presets-toolbar .preset-pill.selected .preset-btn{color:#4338ca;font-weight:600}.presets-toolbar .preset-pill.selected .preset-remove-btn{color:#605dff}.presets-toolbar .preset-pill.selected .preset-remove-btn:hover{background:#e0e7ff;color:#dc2626}.presets-toolbar .preset-pill .preset-btn{border:none;background:transparent;padding:4px 6px 4px 12px;font-size:13px;color:#334155;cursor:pointer;display:inline-flex;align-items:center;outline:none}.presets-toolbar .preset-pill .preset-remove-btn{border:none;background:transparent;padding:4px 10px 4px 2px;font-size:15px;line-height:1;color:#94a3b8;cursor:pointer;outline:none;display:inline-flex;align-items:center;justify-content:center;transition:color .15s}.presets-toolbar .preset-pill .preset-remove-btn:hover{color:#ef4444}.active-filter-chips{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;margin-top:6px;margin-bottom:12px;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.active-filter-chips .active-filter-chips-label{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#475569}.active-filter-chips .active-filter-chips-label .chips-icon{font-size:16px;width:16px;height:16px;color:#6366f1}.active-filter-chips .chips-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.active-filter-chips .filter-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 8px 3px 10px;background:#fff;border:1px solid #cbd5e1;border-radius:14px;font-size:12px;color:#334155;box-shadow:0 1px 2px #0000000a;transition:all .15s ease}.active-filter-chips .filter-chip:hover{border-color:#94a3b8}.active-filter-chips .filter-chip .filter-chip-title{font-weight:500;color:#64748b}.active-filter-chips .filter-chip .filter-chip-value{font-weight:600;color:#1e293b}.active-filter-chips .filter-chip .filter-chip-remove{border:0;background:transparent;color:#94a3b8;cursor:pointer;font-size:15px;line-height:1;padding:0 2px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.active-filter-chips .filter-chip .filter-chip-remove:hover{color:#ef4444;background:#fee2e2}.active-filter-chips .filter-clear-all-btn{border:0;background:transparent;color:#6366f1;font-size:12px;font-weight:500;cursor:pointer;text-decoration:underline;padding:2px 6px}.active-filter-chips .filter-clear-all-btn:hover{color:#4f46e5}\n"], dependencies: [{ kind: "component", type: StaticDataKanbanComponent, selector: "shared-static-data-kanban", inputs: ["items", "field"], outputs: ["open"] }, { kind: "directive", type: MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: SharedIconModule }, { kind: "component", type: i3$1.IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: i3$1.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: StaticDataListFilteringComponent, selector: "app-static-data-list-filtering", inputs: ["filteringConfig", "sectionFields"], outputs: ["filterSubmit"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["mode", "selectIsRequired", "items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection", "parentSection", "parentItemId", "createUpdateUrl", "viewUrl", "columnFilters"], outputs: ["columnFilterChange", "delete", "changeSorting", "selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3025
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: PLATFORM_ID }, { token: i1.MatDialog }, { token: i3$1.RightService }, { token: StaticDataBoardsFacade }, { token: StaticDataPresetsFacade, optional: true }, { token: i3$1.StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: i3$1.RouterFacade }, { token: STATIC_DATA_CREATE_NEW_ITEM_DIALOG, optional: true }, { token: CORE_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3026
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { mode: "mode", selectIsRequired: "selectIsRequired", staticDataConfiguration: "staticDataConfiguration", viewMode: "viewMode", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", icon: "icon", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery", subEntity: "subEntity", leftBlockFilterParamData: "leftBlockFilterParamData", defaultLanguageId: "defaultLanguageId", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl", kanbanOnly: "kanbanOnly" }, outputs: { presetApplied: "presetApplied", selectingItem: "selectingItem" }, 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 }, { propertyName: "customTopFilterHost", first: true, predicate: ["customTopFilterHost"], descendants: true, read: ViewContainerRef }], usesOnChanges: true, ngImport: i0, template: "<div class=\"center-block-inner\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title class=\"custom-card-title\">\n <mat-icon *ngIf=\"icon\"\n class=\"static-data-tab-icon\">{{ icon }}\n </mat-icon>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle class=\"w-100 sub-title-block\">\n <ng-container *ngIf=\"(!viewMode && ( staticSection?.options?.search || staticSection?.options?.filtering ) ) ||\n (viewMode && ( subEntity?.options?.hasSearch || subEntity?.options?.hasFiltering) )\">\n <form class=\"search-box position-relative w-100\">\n <div class=\"row w-100\">\n <div *ngIf=\"staticSection?.options?.search || subEntity?.options?.hasSearch\"\n class=\"col-4 search-block\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-ui-icon class=\"search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'search'\"\n (click)=\"searchHandle(search.value)\"></shared-ui-icon>\n <shared-ui-icon *ngIf=\"search.value\"\n class=\"ml-1 search-icon\"\n [color]=\"'black'\"\n [size]=\"'small'\"\n [icon]=\"'cancel'\"\n (click)=\"searchCancelHandle()\"></shared-ui-icon>\n </div>\n <ng-container *ngIf=\"!staticSection?.options?.filteringType || staticSection?.options?.filteringType === 'modal'\">\n <app-static-data-list-filtering\n *ngIf=\"staticSection?.options?.filtering || subEntity?.options?.hasFiltering\"\n class=\"col-3\"\n [filteringConfig]=\"staticSection?.options?.filtering\"\n [sectionFields]=\"staticSection.fields\"\n (filterSubmit)=\"filterHandle($event)\"></app-static-data-list-filtering>\n </ng-container>\n </div>\n </form>\n </ng-container>\n\n <div class=\"settings\">\n @if (hasFilteringFields) {\n <button matIconButton type=\"button\" class=\"filter-header-btn\" (click)=\"openFilterFieldsDialog()\" aria-label=\"\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u043F\u043E \u043F\u043E\u043B\u044F\u043C\" [title]=\"'\u0424\u0438\u043B\u044C\u0442\u0440\u044B \u043F\u043E \u043F\u043E\u043B\u044F\u043C'\">\n <mat-icon>filter_list</mat-icon>\n @if (activeFilterChipsCount) {\n <span class=\"filter-count-badge\">{{ activeFilterChipsCount }}</span>\n }\n </button>\n }\n <button matIconButton [matMenuTriggerFor]=\"menu\" aria-label=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438\">\n <mat-icon>settings</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\">\n @if (boardsEnabled && boardSettings.canManage) {\n <button mat-menu-item type=\"button\" (click)=\"openBoardSettings()\"><mat-icon>view_kanban</mat-icon>\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0434\u043E\u0441\u043E\u043A</button>\n }\n <button mat-menu-item>\n <mat-icon>contextual_token</mat-icon>\n <span (click)=\"openFieldSettings()\">\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u043E\u043B\u0435\u0439</span>\n </button>\n </mat-menu>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n @if (boardsEnabled) {\n <div class=\"board-toolbar\">\n <div class=\"board-tabs\" role=\"group\" aria-label=\"\u0414\u043E\u0441\u043A\u0438\">\n <button type=\"button\" [class.selected]=\"!activeBoard\" [attr.aria-pressed]=\"!activeBoard\" (click)=\"selectBoard(null)\">\u0412\u0441\u0435 \u0437\u0430\u043F\u0438\u0441\u0438</button>\n @for (board of visibleBoards; track board.id) {\n <button type=\"button\" [class.selected]=\"activeBoard?.id === board.id\" [attr.aria-pressed]=\"activeBoard?.id === board.id\" [title]=\"board.description || board.name\" (click)=\"selectBoard(board)\">\n @if (board.icon) {\n <mat-icon class=\"board-tab-icon\">{{ board.icon }}</mat-icon>\n }\n <span>{{ board.name }}</span>\n </button>\n }\n </div>\n @if (!kanbanOnly && (activeBoard || kanbanField)) {\n <div class=\"board-view-tabs\" role=\"group\" aria-label=\"\u0412\u0438\u0434 \u0434\u043E\u0441\u043A\u0438\">\n <button type=\"button\" [attr.aria-pressed]=\"boardView === 'list'\" (click)=\"boardView = 'list'\">\n <mat-icon class=\"board-tab-icon\">view_list</mat-icon>\n <span>\u0421\u043F\u0438\u0441\u043E\u043A</span>\n </button>\n <button type=\"button\" [disabled]=\"!kanbanField\" [attr.aria-pressed]=\"boardView === 'kanban'\" (click)=\"boardView = 'kanban'\" [title]=\"kanbanField ? '' : '\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u043E\u043B\u0435 \u043A\u043E\u043B\u043E\u043D\u043E\u043A \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0434\u043E\u0441\u043A\u0438'\">\n <mat-icon class=\"board-tab-icon\">view_kanban</mat-icon>\n <span>\u041A\u0430\u043D\u0431\u0430\u043D</span>\n </button>\n </div>\n }\n </div>\n @if (boardsLoading) { <p role=\"status\">\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0434\u043E\u0441\u043E\u043A\u2026</p> }\n @if (boardsError) { <p role=\"alert\">{{ boardsError }} <button type=\"button\" (click)=\"loadBoards()\">\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0434\u043E\u0441\u043A\u0438</button></p> }\n }\n @if (presetsEnabled && presetSettings?.presets?.length) {\n <div class=\"presets-toolbar\" role=\"group\" aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u043F\u0440\u0435\u0441\u0435\u0442\u044B\">\n <span class=\"presets-label\"><mat-icon class=\"presets-label-icon\">bookmarks</mat-icon> \u041F\u0440\u0435\u0441\u0435\u0442\u044B:</span>\n <div class=\"preset-tabs\">\n @for (preset of presetSettings.presets; track preset.id) {\n <div class=\"preset-pill\" [class.selected]=\"activePresetId === preset.id\">\n <button type=\"button\" class=\"preset-btn\" [attr.aria-pressed]=\"activePresetId === preset.id\" (click)=\"selectPreset(preset)\">\n <span>{{ preset.name }}</span>\n </button>\n <button type=\"button\" class=\"preset-remove-btn\" [attr.aria-label]=\"'\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442 ' + preset.name\" (click)=\"removePreset(preset, $event)\">\u00D7</button>\n </div>\n }\n </div>\n </div>\n }\n @if (hasCustomTopFilter) {\n <div class=\"custom-top-filter-wrapper\">\n <ng-template #customTopFilterHost></ng-template>\n </div>\n }\n @if (activeFilterChips.length) {\n <div class=\"active-filter-chips\" role=\"group\" aria-label=\"\u041F\u0440\u0438\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B\">\n <span class=\"active-filter-chips-label\"><mat-icon class=\"chips-icon\">filter_alt</mat-icon> \u0424\u0438\u043B\u044C\u0442\u0440\u044B:</span>\n <div class=\"chips-list\">\n @for (chip of activeFilterChips; track chip.field) {\n <div class=\"filter-chip\">\n <span class=\"filter-chip-title\">{{ chip.title }}:</span>\n <span class=\"filter-chip-value\">{{ chip.value }}</span>\n <button type=\"button\" class=\"filter-chip-remove\" (click)=\"removeFilterChip(chip.field)\" [attr.aria-label]=\"'\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440 ' + chip.title\">\u00D7</button>\n </div>\n }\n <button type=\"button\" class=\"filter-clear-all-btn\" (click)=\"clearAllFilterChips()\">\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0432\u0441\u0451</button>\n </div>\n </div>\n }\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.texts?.list?.topText\"\n [innerHTML]=\"staticSection.texts?.list?.topText\"\n class=\"static-data-list-top-text\">\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\"\n [style.max-height.px]=\"viewMode ? ( subEntity.options?.maxHeight || 400 ) : 'auto'\">\n @if (boardView === 'kanban' && kanbanField) {\n <shared-static-data-kanban [items]=\"staticData\" [field]=\"kanbanField\" (open)=\"openKanbanItem($event, userRights)\" />\n } @else {\n <app-static-data-items [items]=\"staticData\"\n [columnFilters]=\"columnFilters\"\n (columnFilterChange)=\"filterColumn($event)\"\n [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [mode]=\"mode\"\n [selectIsRequired]=\"selectIsRequired\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n [parentSection]=\"parentSection\"\n [parentItemId]=\"parentData?.id\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (selectingItem)=\"selectItemHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n }\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > perPage\">\n <mat-paginator\n *ngIf=\"totalCount\"\n aria-label=\"\u0412\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[5, 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=\"staticSection.texts?.list?.bottomText\"\n [innerHTML]=\"staticSection.texts?.list?.bottomText\"\n class=\"static-data-list-bottom-text\">\n </div>\n\n <div *ngIf=\"!viewMode && userRights[0] && !staticSection.options?.viewSettings?.listMode?.hideAddAction\" class=\"text-center mt-30 mb-30 add-action-container\">\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</div>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.search-block{display:flex;align-content:center;align-items:center}.search-block .search-input{background-color:#f5f5f5!important;padding:11px 10px!important;margin-right:3px;width:100%}.custom-top-filter-wrapper{width:100%;display:block;margin-top:8px;margin-bottom:8px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:0}.content{padding-bottom:8px!important}.add-action-container{margin-top:16px!important;margin-bottom:0!important;padding-bottom:0}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.32);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:0}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings{display:flex;align-items:center;gap:8px}.settings .filter-header-btn{display:inline-flex;align-items:center;justify-content:center;position:relative;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;padding:6px;cursor:pointer;line-height:1;transition:all .15s ease}.settings .filter-header-btn:hover{background:#f1f5f9;color:#1e293b;border-color:#94a3b8}.settings .filter-header-btn mat-icon{font-size:20px;width:20px;height:20px;color:#6366f1}.settings .filter-header-btn .filter-count-badge{position:absolute;top:-6px;right:-6px;display:inline-flex;align-items:center;justify-content:center;background:#6366f1;color:#fff;font-size:10px;font-weight:700;min-width:16px;height:16px;padding:0 4px;border-radius:8px;border:1px solid #ffffff}.settings button{border:0;background:transparent;color:#64758b}mat-card-header ::ng-deep .mat-mdc-card-header-text{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;width:100%}.sub-title-block{display:flex;justify-content:flex-end;align-items:center;flex:1 1 auto;width:auto!important}.board-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 0;margin-top:8px;margin-bottom:8px;border-bottom:1px solid #dfe3eb}.board-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.board-view-tabs{display:flex;gap:8px;align-items:center}.board-toolbar button{border:1px solid #dfe3eb;border-radius:6px;background:transparent;color:inherit;padding:8px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.board-tab-icon{font-size:18px;width:18px;height:18px;line-height:18px}.board-toolbar button.selected,.board-toolbar button[aria-pressed=true]{background:#605dff;color:#fff;border-color:#605dff}.board-toolbar button:disabled{opacity:.5;cursor:default}.presets-toolbar{display:flex;align-items:center;gap:10px;padding:8px 0 12px;flex-wrap:wrap}.presets-toolbar .presets-label{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#64748b}.presets-toolbar .presets-label .presets-label-icon{font-size:16px;width:16px;height:16px;color:#605dff}.presets-toolbar .preset-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.presets-toolbar .preset-pill{display:inline-flex;align-items:center;border-radius:16px;background:#f1f5f9;border:1px solid #e2e8f0;transition:all .2s ease;overflow:hidden}.presets-toolbar .preset-pill:hover{background:#e2e8f0;border-color:#cbd5e1}.presets-toolbar .preset-pill.selected{background:#eef2ff;border-color:#605dff}.presets-toolbar .preset-pill.selected .preset-btn{color:#4338ca;font-weight:600}.presets-toolbar .preset-pill.selected .preset-remove-btn{color:#605dff}.presets-toolbar .preset-pill.selected .preset-remove-btn:hover{background:#e0e7ff;color:#dc2626}.presets-toolbar .preset-pill .preset-btn{border:none;background:transparent;padding:4px 6px 4px 12px;font-size:13px;color:#334155;cursor:pointer;display:inline-flex;align-items:center;outline:none}.presets-toolbar .preset-pill .preset-remove-btn{border:none;background:transparent;padding:4px 10px 4px 2px;font-size:15px;line-height:1;color:#94a3b8;cursor:pointer;outline:none;display:inline-flex;align-items:center;justify-content:center;transition:color .15s}.presets-toolbar .preset-pill .preset-remove-btn:hover{color:#ef4444}.active-filter-chips{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;margin-top:6px;margin-bottom:12px;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.active-filter-chips .active-filter-chips-label{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#475569}.active-filter-chips .active-filter-chips-label .chips-icon{font-size:16px;width:16px;height:16px;color:#6366f1}.active-filter-chips .chips-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.active-filter-chips .filter-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 8px 3px 10px;background:#fff;border:1px solid #cbd5e1;border-radius:14px;font-size:12px;color:#334155;box-shadow:0 1px 2px #0000000a;transition:all .15s ease}.active-filter-chips .filter-chip:hover{border-color:#94a3b8}.active-filter-chips .filter-chip .filter-chip-title{font-weight:500;color:#64748b}.active-filter-chips .filter-chip .filter-chip-value{font-weight:600;color:#1e293b}.active-filter-chips .filter-chip .filter-chip-remove{border:0;background:transparent;color:#94a3b8;cursor:pointer;font-size:15px;line-height:1;padding:0 2px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.active-filter-chips .filter-chip .filter-chip-remove:hover{color:#ef4444;background:#fee2e2}.active-filter-chips .filter-clear-all-btn{border:0;background:transparent;color:#6366f1;font-size:12px;font-weight:500;cursor:pointer;text-decoration:underline;padding:2px 6px}.active-filter-chips .filter-clear-all-btn:hover{color:#4f46e5}\n"], dependencies: [{ kind: "component", type: StaticDataKanbanComponent, selector: "shared-static-data-kanban", inputs: ["items", "field"], outputs: ["open"] }, { kind: "directive", type: MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: SharedIconModule }, { kind: "component", type: i3$1.IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: i3$1.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: StaticDataListFilteringComponent, selector: "app-static-data-list-filtering", inputs: ["filteringConfig", "sectionFields"], outputs: ["filterSubmit"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["mode", "selectIsRequired", "items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection", "parentSection", "parentItemId", "createUpdateUrl", "viewUrl", "columnFilters"], outputs: ["columnFilterChange", "delete", "changeSorting", "selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3027
3027
|
}
|
|
3028
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
|
|
3029
3029
|
type: Component,
|
|
3030
3030
|
args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
3031
3031
|
StaticDataKanbanComponent,
|
|
@@ -3796,10 +3796,10 @@ class StaticDataDetailsComponent {
|
|
|
3796
3796
|
trackByKey(index, subEntity) {
|
|
3797
3797
|
return subEntity ? subEntity.hashTag : undefined;
|
|
3798
3798
|
}
|
|
3799
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3800
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: StaticDataDetailsComponent, isStandalone: true, selector: "app-static-data-details", inputs: { dynamicFormKey: "dynamicFormKey", entityInput: "entityInput", entityIdInput: "entityIdInput", autoCompleteFields: "autoCompleteFields", mode: "mode" }, outputs: { closePopup: "closePopup" }, viewQueries: [{ propertyName: "tabs", predicate: MatTab, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<mat-card\n [@.disabled]=\"animationsDisabled\"\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n>\n <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=\"!entityInput && 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 || '\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab id=\"edit\" tabindex=\"-1\">\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\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 [autoCompleteFieldInput]=\"autoCompleteFields\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\n <shared-button\n *ngIf=\"!entityInput\"\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 >{{ parentSection ? '\u041D\u0430\u0437\u0430\u0434' : '\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=\"itemId && !staticSection?.actions?.isNoDeleteAction && 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 blocks; let i = index; trackBy: trackByKey\">\n <mat-tab\n [disabled]=\"!staticData.value?.id\"\n [id]=\"subEntity.hashTag\" [tabIndex]=\"i\">\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\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"staticData.value?.['name']+': '+ subEntity.title\"\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 [mode]=\"mode\"\n ></app-static-data-list-items>\n <!--\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n -->\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n\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</mat-card>\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: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: i6.PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "directive", type: MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: i7.AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "autoCompleteFieldInput", "config"], outputs: ["changed", "formCompleted"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.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: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl", "kanbanOnly"], outputs: ["presetApplied", "selectingItem"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: i3$1.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3799
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataDetailsComponent, deps: [{ token: i4.UntypedFormBuilder }, { token: i1$3.Router }, { token: i1$3.ActivatedRoute }, { token: i3$1.AutoFormService }, { token: i3$1.RouterFacade }, { token: i3$1.FormErrorsFacade }, { token: i3$1.FormsFacade }, { token: i3$1.RequestsFacade }, { token: i3$1.StaticDataFacade }, { token: i3$1.RightService }, { token: i1.MatDialog }, { token: i3$1.NotificationsFacade }, { token: i3$1.CoreFacade }, { token: i3$1.PublicationMessagesFacade }, { token: i3$1.ActionsFacade }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i1$1.MatIconRegistry }, { token: i3$1.AuthenticationService }, { token: i3$1.StaticDataServiceService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3800
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: StaticDataDetailsComponent, isStandalone: true, selector: "app-static-data-details", inputs: { dynamicFormKey: "dynamicFormKey", entityInput: "entityInput", entityIdInput: "entityIdInput", autoCompleteFields: "autoCompleteFields", mode: "mode" }, outputs: { closePopup: "closePopup" }, viewQueries: [{ propertyName: "tabs", predicate: MatTab, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<mat-card\n [@.disabled]=\"animationsDisabled\"\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n>\n <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=\"!entityInput && 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 || '\u0421\u043E\u0437\u0434\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab id=\"edit\" tabindex=\"-1\">\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\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 [autoCompleteFieldInput]=\"autoCompleteFields\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\n <shared-button\n *ngIf=\"!entityInput\"\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 >{{ parentSection ? '\u041D\u0430\u0437\u0430\u0434' : '\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=\"itemId && !staticSection?.actions?.isNoDeleteAction && 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 blocks; let i = index; trackBy: trackByKey\">\n <mat-tab\n [disabled]=\"!staticData.value?.id\"\n [id]=\"subEntity.hashTag\" [tabIndex]=\"i\">\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\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"staticData.value?.['name']+': '+ subEntity.title\"\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 [mode]=\"mode\"\n ></app-static-data-list-items>\n <!--\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n -->\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n\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</mat-card>\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: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: i6.PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "directive", type: MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: i7.AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "autoCompleteFieldInput", "config"], outputs: ["changed", "formCompleted"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.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: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl", "kanbanOnly"], outputs: ["presetApplied", "selectingItem"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: i3$1.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3801
3801
|
}
|
|
3802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataDetailsComponent, decorators: [{
|
|
3803
3803
|
type: Component,
|
|
3804
3804
|
args: [{ selector: 'app-static-data-details', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
3805
3805
|
MatCard,
|
|
@@ -3992,10 +3992,10 @@ class FilteringFormComponent {
|
|
|
3992
3992
|
};
|
|
3993
3993
|
});
|
|
3994
3994
|
}
|
|
3995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3996
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FilteringFormComponent, isStandalone: true, selector: "app-filtering-form", inputs: { contentType: "contentType", data: "data", modalView: "modalView" }, outputs: { filterData: "filterData", close: "close" }, ngImport: i0, template: "<div [ngClass]=\"{'modal-view': modalView}\"\n class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <b *ngIf=\"modalView\" class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</b>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n @if (modalView) {\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> ---</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> --</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n\n } @else {\n <div class=\"filter-fields\">\n\n <ng-container *ngFor=\"let field of filterFields\">\n <div class=\"filter-field-row mb-10\">\n <div class=\"filter-field\">{{ field.title }}</div>\n <div class=\"filter-value\">\n\n @switch (field.filterType) {\n @default {\n @if (field.fieldType !== FieldType.FieldTypeSelect) {\n @if (field.options.format === IFormFieldFormat.Date) {\n <mat-form-field class=\"mat-form-field-small\">\n <mat-date-range-input [rangePicker]=\"picker\">\n <input matStartDate [formControlName]=\"field.field\" placeholder=\"\u041E\u0442\">\n <input matEndDate [formControlName]=\"field.field + '2'\" placeholder=\"\u0414\u043E\">\n </mat-date-range-input>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </mat-form-field>\n } @else {\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field\" type=\"text\"/>\n }\n }\n\n @if (field.fieldType === FieldType.FieldTypeSelect) {\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"d-flex flex-column\"\n [formControlName]=\"field.field\">\n @for (option of storedOption[field.field]; let idx = $index; track option.value) {\n @if (idx < 6 || moreOpenedState[field.field]) {\n <mat-radio-button class=\"mat-radio-button-small\" [value]=\"option.value\">{{ option.title }}\n </mat-radio-button>\n }\n }\n @if (storedOption[field.field]?.length > 5) {\n <div class=\"filter-show-more\" (click)=\"moreClick(field.field)\">\n {{ moreOpenedState[field.field] ? '\u041C\u0435\u043D\u044C\u0448\u0435' : '\u0411\u043E\u043B\u044C\u0448\u0435' }}\n </div>\n }\n </mat-radio-group>\n }\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-slide-toggle class=\"mat-slide-toggle-small\"\n [formControlName]=\"field.field\"></mat-slide-toggle>\n }\n @case (StaticDataSectionFilteringFieldTypes.BETWEEN) {\n @if (field.fieldType === FieldType.FieldTypeInput) {\n <input class=\"mat-input-small mb-3\" matInput [formControlName]=\"field.field\" type=\"number\" step=\"1\" placeholder=\"\u043E\u0442\"/>\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field + '2'\" type=\"number\" step=\"1\" placeholder=\"\u0434\u043E\"/>\n }\n }\n }\n\n </div>\n </div>\n </ng-container>\n </div>\n }\n\n </form>\n <div *ngIf=\"!modalView\">\n <shared-button\n class=\"mb-1\"\n size=\"small\"\n type=\"submit\"\n color=\"accent\"\n styleTheme=\"flat\"\n (click)=\"submitClick()\"\n >\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n type=\"button\"\n size=\"small\"\n styleTheme=\"flat\"\n color=\"basic\"\n (click)=\"resetForm()\"\n > \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n </div>\n </div>\n</div>\n", styles: [".filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.filter-fields{display:flex;flex-wrap:wrap}.filter-fields .filter-field-row{width:100%}.filter-fields .filter-field-row .filter-field{font-weight:700;width:100%;text-align:left}.filter-fields .filter-field-row .filter-value{width:100%;text-align:left;word-break:break-all}.filter-show-more{color:#605dff;font-size:12px;text-align:center;cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.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: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: 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", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i5.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i5.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i5.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3995
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FilteringFormComponent, deps: [{ token: i3$1.StaticDataFacade }, { token: i3$2.Store }, { token: i4.UntypedFormBuilder }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3996
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FilteringFormComponent, isStandalone: true, selector: "app-filtering-form", inputs: { contentType: "contentType", data: "data", modalView: "modalView" }, outputs: { filterData: "filterData", close: "close" }, ngImport: i0, template: "<div [ngClass]=\"{'modal-view': modalView}\"\n class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <b *ngIf=\"modalView\" class=\"mat-dialog-title\">\u0424\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u044F</b>\n <div mat-dialog-content>\n <form [formGroup]=\"form\">\n @if (modalView) {\n <table class=\"filter-form\" [formGroup]=\"form\">\n <tr *ngFor=\"let field of filterFields\">\n <th class=\"filter-form-field\">{{ field.title }}</th>\n <td class=\"filter-form-value\">\n <mat-form-field class=\"small-form-field\">\n @switch (field.type) {\n @default {\n <input matInput type=\"text\" [formControlName]=\"field.field\"/>\n }\n @case (FieldType.FieldTypeSlideToggle) {\n <mat-select [formControlName]=\"field.field\">\n <mat-option value=\"\"> ---</mat-option>\n <mat-option [value]=\"'1:\u0414\u0430'\">\u0414\u0430</mat-option>\n <mat-option [value]=\"'0:\u041D\u0435\u0442'\">\u041D\u0435\u0442</mat-option>\n </mat-select>\n }\n @case (FieldType.FieldTypeSelect) {\n <mat-select [formControlName]=\"field.field\" [multiple]=\"true\">\n <mat-option value=\"\"> --</mat-option>\n <mat-option *ngFor=\"let option of storedOption[field.field]\"\n [value]=\"option.value + ':' + option.title\">{{ option.title }}\n </mat-option>\n </mat-select>\n }\n }\n </mat-form-field>\n </td>\n </tr>\n </table>\n\n } @else {\n <div class=\"filter-fields\">\n\n <ng-container *ngFor=\"let field of filterFields\">\n <div class=\"filter-field-row mb-10\">\n <div class=\"filter-field\">{{ field.title }}</div>\n <div class=\"filter-value\">\n\n @switch (field.filterType) {\n @default {\n @if (field.fieldType !== FieldType.FieldTypeSelect) {\n @if (field.options.format === IFormFieldFormat.Date) {\n <mat-form-field class=\"mat-form-field-small\">\n <mat-date-range-input [rangePicker]=\"picker\">\n <input matStartDate [formControlName]=\"field.field\" placeholder=\"\u041E\u0442\">\n <input matEndDate [formControlName]=\"field.field + '2'\" placeholder=\"\u0414\u043E\">\n </mat-date-range-input>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n </mat-form-field>\n } @else {\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field\" type=\"text\"/>\n }\n }\n\n @if (field.fieldType === FieldType.FieldTypeSelect) {\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"d-flex flex-column\"\n [formControlName]=\"field.field\">\n @for (option of storedOption[field.field]; let idx = $index; track option.value) {\n @if (idx < 6 || moreOpenedState[field.field]) {\n <mat-radio-button class=\"mat-radio-button-small\" [value]=\"option.value\">{{ option.title }}\n </mat-radio-button>\n }\n }\n @if (storedOption[field.field]?.length > 5) {\n <div class=\"filter-show-more\" (click)=\"moreClick(field.field)\">\n {{ moreOpenedState[field.field] ? '\u041C\u0435\u043D\u044C\u0448\u0435' : '\u0411\u043E\u043B\u044C\u0448\u0435' }}\n </div>\n }\n </mat-radio-group>\n }\n }\n @case (StaticDataSectionFilteringFieldTypes.TOGGLE) {\n <mat-slide-toggle class=\"mat-slide-toggle-small\"\n [formControlName]=\"field.field\"></mat-slide-toggle>\n }\n @case (StaticDataSectionFilteringFieldTypes.BETWEEN) {\n @if (field.fieldType === FieldType.FieldTypeInput) {\n <input class=\"mat-input-small mb-3\" matInput [formControlName]=\"field.field\" type=\"number\" step=\"1\" placeholder=\"\u043E\u0442\"/>\n <input class=\"mat-input-small\" matInput [formControlName]=\"field.field + '2'\" type=\"number\" step=\"1\" placeholder=\"\u0434\u043E\"/>\n }\n }\n }\n\n </div>\n </div>\n </ng-container>\n </div>\n }\n\n </form>\n <div *ngIf=\"!modalView\">\n <shared-button\n class=\"mb-1\"\n size=\"small\"\n type=\"submit\"\n color=\"accent\"\n styleTheme=\"flat\"\n (click)=\"submitClick()\"\n >\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n <shared-button\n type=\"button\"\n size=\"small\"\n styleTheme=\"flat\"\n color=\"basic\"\n (click)=\"resetForm()\"\n > \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\n </shared-button>\n </div>\n </div>\n</div>\n", styles: [".filter-form-field{text-align:left;font-size:13px;padding-right:10px}.small-form-field{margin-bottom:5px}.filter-fields{display:flex;flex-wrap:wrap}.filter-fields .filter-field-row{width:100%}.filter-fields .filter-field-row .filter-field{font-weight:700;width:100%;text-align:left}.filter-fields .filter-field-row .filter-value{width:100%;text-align:left;word-break:break-all}.filter-show-more{color:#605dff;font-size:12px;text-align:center;cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.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: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: 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", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i5.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i5.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i5.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3997
3997
|
}
|
|
3998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3998
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FilteringFormComponent, decorators: [{
|
|
3999
3999
|
type: Component,
|
|
4000
4000
|
args: [{ selector: 'app-filtering-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
4001
4001
|
ButtonModule,
|
|
@@ -4110,10 +4110,10 @@ class ListSubEntitiesComponent {
|
|
|
4110
4110
|
parent: this.injector
|
|
4111
4111
|
});
|
|
4112
4112
|
}
|
|
4113
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4114
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
4113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ListSubEntitiesComponent, deps: [{ token: i1$1.MatIconRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4114
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ListSubEntitiesComponent, isStandalone: true, selector: "app-list-sub-entities", inputs: { staticDataConfiguration: "staticDataConfiguration", parentSubEntities: "parentSubEntities", position: "position", parentData: "parentData", parentContentType: "parentContentType", isViewMode: "isViewMode", isListMode: "isListMode", isEditMode: "isEditMode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row align-content-flex-start-top\">\n\n <ng-container *ngFor=\"let subEntity of blocks\">\n <div *ngIf=\"!$any(subEntity).subEntities\"\n class=\"col-sm-12 mb-10\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity).options?.viewSettings?.viewMode?.cols || '12' )]\">\n <div class=\"static-data-view-block\">\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"$any(subEntity).subEntitiesType === 'static-data'\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <ng-container *ngIf=\"parentData?.id\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [viewMode]=\"true\"\n [contentType]=\"$any(subEntity).entity\"\n [customTitle]=\"$any(subEntity).title\"\n [filteringQuery]=\"$any(subEntity).getFilteringQuery(parentData)\"\n [parentSection]=\"parentContentType\"\n [parentItemId]=\"parentData?.id\"\n [parentSectionHashtag]=\"$any(subEntity).hashTag\"\n [parentData]=\"parentData\"\n [autoCompleteFields]=\"$any(subEntity).autoCompleteFields\"\n [subEntity]=\"$any(subEntity)\"\n [icon]=\"$any(subEntity).titleIcon\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!parentData?.id\"\n [overlay]=\"true\"></shared-spinner>\n @if (!parentData?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!$any(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=\"$any(subEntity).emptyTitle\">\n {{ $any(subEntity).emptyTitle }}\n </ng-container>\n </div>\n }\n </mat-card>\n </ng-container>\n\n @if ($any(subEntity)?.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n $any(subEntity).component;\n injector: componentDataInjector;\n \"/>\n }\n </div>\n </div>\n </div>\n <div *ngIf=\"$any(subEntity).subEntities\" class=\"row align-content-flex-start col-sm-12\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity).options?.group?.cols || '12' )]\">\n <ng-container *ngFor=\"let subEntity2 of $any(subEntity).subEntities\">\n <div *ngIf=\"!$any(subEntity2).subEntities\"\n class=\"col-sm-12 mb-10\"\n [ngClass]=\"['col-lg-' + ( $any(subEntity2).options?.viewSettings?.viewMode?.cols || '12' )]\">\n <div class=\"static-data-view-block\">\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"$any(subEntity2).subEntitiesType === 'static-data'\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <ng-container *ngIf=\"parentData?.id\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [viewMode]=\"true\"\n [contentType]=\"$any(subEntity2).entity\"\n [customTitle]=\"$any(subEntity2).title\"\n [filteringQuery]=\"$any(subEntity2).getFilteringQuery(parentData)\"\n [parentSection]=\"parentContentType\"\n [parentItemId]=\"parentData?.id\"\n [parentSectionHashtag]=\"$any(subEntity2).hashTag\"\n [parentData]=\"parentData\"\n [autoCompleteFields]=\"$any(subEntity2).autoCompleteFields\"\n [subEntity]=\"$any(subEntity2)\"\n [icon]=\"$any(subEntity2).titleIcon\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!parentData?.id\"\n [overlay]=\"true\"></shared-spinner>\n @if (!parentData?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!$any(subEntity2).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=\"$any(subEntity2).emptyTitle\">\n {{ $any(subEntity2).emptyTitle }}\n </ng-container>\n </div>\n }\n </mat-card>\n </ng-container>\n\n @if ($any(subEntity2)?.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n $any(subEntity2).component;\n injector: componentDataInjector;\n \"/>\n }\n </div>\n </div>\n\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\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}.mat-grid-tile-content{overflow:auto!important}.mat-grid-tile mat-card{width:100%}\n"], dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: i3$1.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl", "kanbanOnly"], outputs: ["presetApplied", "selectingItem"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4115
4115
|
}
|
|
4116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ListSubEntitiesComponent, decorators: [{
|
|
4117
4117
|
type: Component,
|
|
4118
4118
|
args: [{ selector: 'app-list-sub-entities', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
4119
4119
|
NgForOf,
|
|
@@ -4246,10 +4246,10 @@ class StaticDataListComponent {
|
|
|
4246
4246
|
this.contentType$ = of(this.contentType);
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4250
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataListComponent, deps: [{ token: i1$3.ActivatedRoute }, { token: i1$1.MatIconRegistry }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4250
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", inputs: { mode: "mode", contentType: "contentType", createUpdateUrl: "createUpdateUrl", viewUrl: "viewUrl", test: "test", selectIsRequired: "selectIsRequired", filtersExpanded: "filtersExpanded", showFilterToggle: "showFilterToggle", kanbanOnly: "kanbanOnly" }, outputs: { presetApplied: "presetApplied", selectingItem: "selectingItem" }, viewQueries: [{ propertyName: "filteringForm", first: true, predicate: FilteringFormComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"contentType$ | async as contentType\">\n <app-list-sub-entities\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"staticDataConfiguration[contentType]?.options?.subEntities\"\n [position]=\"'top'\"\n [isListMode]=\"true\"\n ></app-list-sub-entities>\n <div *ngIf=\"showFilterToggle && staticDataConfiguration[contentType]?.options?.filteringType === 'left-block'\"\n class=\"filter-toolbar\">\n <button mat-button type=\"button\"\n [attr.aria-expanded]=\"filtersExpanded\"\n (click)=\"filtersExpanded = !filtersExpanded\">\n <mat-icon>filter_list</mat-icon>\n \u0424\u0438\u043B\u044C\u0442\u0440\u044B\n </button>\n </div>\n <div class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]?.options?.filteringType === 'left-block'\"\n [hidden]=\"!filtersExpanded\"\n [ngClass]=\"leftClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none p-10\"\n >\n <app-filtering-form [modalView]=\"false\"\n [contentType]=\"contentType\"\n [data]=\"filteringData\"\n (filterData)=\"handleFilterData($event)\"></app-filtering-form>\n </mat-card>\n </div>\n <div [ngClass]=\"staticDataConfiguration[contentType]?.options?.filteringType === 'left-block' && !filtersExpanded ? 'col-12' : rightClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <app-static-data-list-items\n [mode]=\"mode\"\n [createUpdateUrl]=\"createUpdateUrl\"\n [viewUrl]=\"viewUrl\"\n [selectIsRequired]=\"selectIsRequired\"\n [defaultLanguageId]=\"defaultLanguageId\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [kanbanOnly]=\"kanbanOnly\"\n [leftBlockFilterParamData]=\"filterData\"\n (presetApplied)=\"handlePreset($event)\"\n (selectingItem)=\"selectingItemHandler($event)\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\n</ng-container>\n", styles: [".filter-toolbar{display:flex;justify-content:flex-end;margin-bottom:10px}[hidden]{display:none!important}.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}\n"], dependencies: [{ kind: "component", type: ListSubEntitiesComponent, selector: "app-list-sub-entities", inputs: ["staticDataConfiguration", "parentSubEntities", "position", "parentData", "parentContentType", "isViewMode", "isListMode", "isEditMode"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: FilteringFormComponent, selector: "app-filtering-form", inputs: ["contentType", "data", "modalView"], outputs: ["filterData", "close"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["mode", "selectIsRequired", "staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData", "defaultLanguageId", "createUpdateUrl", "viewUrl", "kanbanOnly"], outputs: ["presetApplied", "selectingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4251
4251
|
}
|
|
4252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataListComponent, decorators: [{
|
|
4253
4253
|
type: Component,
|
|
4254
4254
|
args: [{ selector: 'app-static-data-list', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
4255
4255
|
ListSubEntitiesComponent,
|
|
@@ -4538,10 +4538,10 @@ class StaticDataViewComponent {
|
|
|
4538
4538
|
this.status$ = of({ value: this.statusType.LOADED });
|
|
4539
4539
|
}
|
|
4540
4540
|
}
|
|
4541
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4542
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataViewComponent, deps: [{ token: i1$3.Router }, { token: i1$3.ActivatedRoute }, { token: i3$1.RouterFacade }, { token: i3$1.StaticDataFacade }, { token: i3$1.RightService }, { token: i1.MatDialog }, { token: i3$1.CoreFacade }, { token: i3$1.ActionsFacade }, { token: i0.Injector }, { token: i1$1.MatIconRegistry }, { token: i3$1.AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4542
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataViewComponent, isStandalone: true, selector: "app-static-data-view", inputs: { mode: "mode", dialogContentType: "dialogContentType", dialogItemId: "dialogItemId" }, 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 *ngIf=\"!howError\" class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"mode !== StaticDataListComponentModes.modal && formData?.['name']\"\n [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"formData?.['name']\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ formData?.['name'] }}\n </h1>\n </div>\n <div class=\"static-data-view-blocks\">\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'top'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n <div class=\"row mb-10\">\n <div [ngClass]=\"mainBlockClass\">\n <mat-card\n class=\"to-do-list-card table-style-two mb-25 border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"center-block-inner\">\n <shared-auto-form-show\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"staticData.value\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n\n <div *ngIf=\"itemId && additionalActions?.length\" class=\"global-actions\">\n <div *ngFor=\"let action of additionalActions\"\n (click)=\"actionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n class=\"mt-20 text-center\">\n <shared-button\n *ngIf=\"mode !== StaticDataListComponentModes.modal\"\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 >{{ parentSection ? '\u041D\u0430\u0437\u0430\u0434' : '\u041A \u0441\u043F\u0438\u0441\u043A\u0443' }}\n </shared-button>\n <!--<shared-button\n *ngIf=\"!staticSection?.actions?.isNoDeleteAction && 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 </div>\n </mat-card>\n </div>\n <div *ngIf=\"menuItems?.length\" class=\"col-sm-12\" [class]=\"menuBlockClass\">\n <mat-card\n class=\"table-style-two border-radius d-block bg-white border-0 shadow-none\"\n >\n <div class=\"mb-1\" *ngFor=\"let subEntity of menuItems\">\n <shared-button\n *ngIf=\"userRights[0]\"\n class=\"mr-8\"\n type=\"submit\"\n [icon]=\"subEntity.titleIcon\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n >{{ subEntity.title }}\n </shared-button>\n </div>\n </mat-card>\n </div>\n </div>\n <app-list-sub-entities\n *ngIf=\"staticData.value?.id\"\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [parentSubEntities]=\"blocks\"\n [position]=\"'bottom'\"\n [parentData]=\"staticData.value\"\n [parentContentType]=\"contentType\"\n [isViewMode]=\"true\"\n ></app-list-sub-entities>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n <div *ngIf=\"howError\">\n \u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443\n </div>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED\"\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}.mat-grid-tile-content{overflow:auto!important}.mat-grid-tile mat-card{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: PanelHeaderModule }, { kind: "component", type: i6.PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ListSubEntitiesComponent, selector: "app-list-sub-entities", inputs: ["staticDataConfiguration", "parentSubEntities", "position", "parentData", "parentContentType", "isViewMode", "isListMode", "isEditMode"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: i7.AutoFormShowComponent, selector: "shared-auto-form-show", inputs: ["fields", "data", "entity", "entityId", "entitySection", "config"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3$1.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: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: i3$1.SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4543
4543
|
}
|
|
4544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataViewComponent, decorators: [{
|
|
4545
4545
|
type: Component,
|
|
4546
4546
|
args: [{ selector: 'app-static-data-view', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
4547
4547
|
PanelHeaderModule,
|
|
@@ -4590,11 +4590,11 @@ const routes = [
|
|
|
4590
4590
|
}
|
|
4591
4591
|
];
|
|
4592
4592
|
class StaticDataRoutingModule {
|
|
4593
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4594
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
4595
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
4593
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4594
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: StaticDataRoutingModule, imports: [i1$3.RouterModule], exports: [RouterModule] }); }
|
|
4595
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
4596
4596
|
}
|
|
4597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataRoutingModule, decorators: [{
|
|
4598
4598
|
type: NgModule,
|
|
4599
4599
|
args: [{
|
|
4600
4600
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -4612,10 +4612,10 @@ class StaticDataCreateNewDialogComponent {
|
|
|
4612
4612
|
onNoClick() {
|
|
4613
4613
|
this.dialogRef.close({ status: false });
|
|
4614
4614
|
}
|
|
4615
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4616
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataCreateNewDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4616
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataCreateNewDialogComponent, isStandalone: true, selector: "app-static-data-create-new-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n 1111\n<!--\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>-->\n\n<!-- <div mat-dialog-content>\n <shared-auto-form-show\n *ngIf=\"isShowAutoFormShow\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"itemData\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>\n </div>-->\n</div>\n\n\n\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:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: AutoFormModule }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4617
4617
|
}
|
|
4618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataCreateNewDialogComponent, decorators: [{
|
|
4619
4619
|
type: Component,
|
|
4620
4620
|
args: [{ selector: 'app-static-data-create-new-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay], imports: [
|
|
4621
4621
|
ButtonModule,
|
|
@@ -4644,10 +4644,10 @@ class StaticDataCreateNewDynamicFormDialogComponent {
|
|
|
4644
4644
|
onSelectItem(data) {
|
|
4645
4645
|
this.dialogRef.close(data);
|
|
4646
4646
|
}
|
|
4647
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4648
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4647
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataCreateNewDynamicFormDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4648
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataCreateNewDynamicFormDialogComponent, isStandalone: true, selector: "app-static-data-create-new-dynamic-form-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n <app-static-data-list\n [selectIsRequired]=\"true\"\n [mode]=\"StaticDataListComponentModes.modal\"\n [contentType]=\"dynamicFormsEntity\"\n (selectingItem)=\"onSelectItem($event)\"\n ></app-static-data-list>\n</div>\n\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:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: AutoFormModule }, { kind: "component", type: StaticDataListComponent, selector: "app-static-data-list", inputs: ["mode", "contentType", "createUpdateUrl", "viewUrl", "test", "selectIsRequired", "filtersExpanded", "showFilterToggle", "kanbanOnly"], outputs: ["presetApplied", "selectingItem"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4649
4649
|
}
|
|
4650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataCreateNewDynamicFormDialogComponent, decorators: [{
|
|
4651
4651
|
type: Component,
|
|
4652
4652
|
args: [{ selector: 'app-static-data-create-new-dynamic-form-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay], imports: [
|
|
4653
4653
|
ButtonModule,
|
|
@@ -4676,10 +4676,10 @@ class StaticDataCreateNewItemDialogComponent {
|
|
|
4676
4676
|
onNoClick() {
|
|
4677
4677
|
this.dialogRef.close({ status: false });
|
|
4678
4678
|
}
|
|
4679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4680
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4679
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataCreateNewItemDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4680
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StaticDataCreateNewItemDialogComponent, isStandalone: true, selector: "app-static-data-create-new-item-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <div mat-dialog-content>\n <app-static-data-details\n [entityInput]=\"data.entity\"\n [entityIdInput]=\"data.entityId\"\n [mode]=\"StaticDataListComponentModes.modal\"\n [autoCompleteFields]=\"data.autoCompleteFields\"\n (closePopup)=\"closePopupHandel()\"\n >\n </app-static-data-details>\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:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: SharedSpinnerModule }, { kind: "component", type: StaticDataDetailsComponent, selector: "app-static-data-details", inputs: ["dynamicFormKey", "entityInput", "entityIdInput", "autoCompleteFields", "mode"], outputs: ["closePopup"] }], animations: [appearFromRightWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4681
4681
|
}
|
|
4682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataCreateNewItemDialogComponent, decorators: [{
|
|
4683
4683
|
type: Component,
|
|
4684
4684
|
args: [{ selector: 'app-static-data-create-new-item-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay], imports: [
|
|
4685
4685
|
ButtonModule,
|
|
@@ -4712,10 +4712,10 @@ class ViewStaticDataDetailsDialogComponent {
|
|
|
4712
4712
|
onNoClick() {
|
|
4713
4713
|
this.dialogRef.close({ status: false });
|
|
4714
4714
|
}
|
|
4715
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4716
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
4715
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ViewStaticDataDetailsDialogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4716
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ViewStaticDataDetailsDialogComponent, isStandalone: true, selector: "app-view-static-data-details-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10 modal-style-info modal-size-middle\">\n <div\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n <mat-icon>close</mat-icon>\n </div>\n\n <div mat-dialog-content>\n <app-static-data-view\n [dialogContentType]=\"contentType\"\n [dialogItemId]=\"itemId\"\n [mode]=\"StaticDataListComponentModes.modal\">\n </app-static-data-view>\n<!-- <shared-auto-form-show\n *ngIf=\"isShowAutoFormShow\"\n class=\"mb-20\"\n [entity]=\"contentType\"\n [data]=\"itemData\"\n [entityId]=\"itemId\"\n [fields]=\"sectionFields\"\n [config]=\"{needToPublish: false}\"\n [entitySection]=\"staticSection\"\n ></shared-auto-form-show>-->\n </div>\n</div>\n\n\n\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:-8px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: StaticDataViewComponent, selector: "app-static-data-view", inputs: ["mode", "dialogContentType", "dialogItemId"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4717
4717
|
}
|
|
4718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ViewStaticDataDetailsDialogComponent, decorators: [{
|
|
4719
4719
|
type: Component,
|
|
4720
4720
|
args: [{ selector: 'app-view-static-data-details-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], imports: [
|
|
4721
4721
|
ButtonModule,
|
|
@@ -4730,8 +4730,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
4730
4730
|
}] }] });
|
|
4731
4731
|
|
|
4732
4732
|
class StaticDataModule {
|
|
4733
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4734
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
4733
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4734
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: StaticDataModule, imports: [CommonModule,
|
|
4735
4735
|
AutoFormModule,
|
|
4736
4736
|
StaticDataRoutingModule,
|
|
4737
4737
|
MatTableModule,
|
|
@@ -4779,7 +4779,7 @@ class StaticDataModule {
|
|
|
4779
4779
|
StaticDataItemsComponent,
|
|
4780
4780
|
StaticDataViewComponent,
|
|
4781
4781
|
StaticDataDetailsComponent] }); }
|
|
4782
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
4782
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataModule, providers: [
|
|
4783
4783
|
AutoFormService,
|
|
4784
4784
|
DialogService,
|
|
4785
4785
|
StaticDataComponentInputData,
|
|
@@ -4829,7 +4829,7 @@ class StaticDataModule {
|
|
|
4829
4829
|
StaticDataViewComponent,
|
|
4830
4830
|
StaticDataDetailsComponent] }); }
|
|
4831
4831
|
}
|
|
4832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StaticDataModule, decorators: [{
|
|
4833
4833
|
type: NgModule,
|
|
4834
4834
|
args: [{
|
|
4835
4835
|
imports: [
|
|
@@ -4955,8 +4955,8 @@ class SavePresetDialogComponent {
|
|
|
4955
4955
|
},
|
|
4956
4956
|
});
|
|
4957
4957
|
}
|
|
4958
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4959
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
4958
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SavePresetDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: StaticDataPresetsFacade }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4959
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: SavePresetDialogComponent, isStandalone: true, selector: "shared-save-preset-dialog", ngImport: i0, template: `
|
|
4960
4960
|
<div class="save-preset-dialog">
|
|
4961
4961
|
<div class="dialog-header">
|
|
4962
4962
|
<h2 mat-dialog-title class="dialog-title">Сохранить пресет</h2>
|
|
@@ -4998,9 +4998,9 @@ class SavePresetDialogComponent {
|
|
|
4998
4998
|
</button>
|
|
4999
4999
|
</mat-dialog-actions>
|
|
5000
5000
|
</div>
|
|
5001
|
-
`, isInline: true, styles: [".save-preset-dialog{padding:4px;min-width:360px;max-width:480px;box-sizing:border-box}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-title{margin:0;font-size:18px;font-weight:600;color:#1e293b}.close-btn{background:none;border:none;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:4px
|
|
5001
|
+
`, isInline: true, styles: [".save-preset-dialog{padding:4px;min-width:360px;max-width:480px;box-sizing:border-box}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-title{margin:0;font-size:18px;font-weight:600;color:#1e293b}.close-btn{background:none;border:none;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:4px;&:hover{background:#f1f5f9;color:#1e293b}}.dialog-content{padding:0!important;margin-bottom:20px}.form-group{display:flex;flex-direction:column;gap:6px}.label-text{font-size:13px;font-weight:500;color:#475569}.dialog-input{padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;width:100%;&:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f126}}.error-msg{margin-top:8px;color:#ef4444;font-size:13px}.dialog-actions{display:flex;gap:8px;padding:0!important;margin:0!important}.btn-cancel{padding:8px 16px;border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;&:hover:not(:disabled){background:#f8fafc}}.btn-save{padding:8px 18px;border:none;background:#5c5cff;color:#fff;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;&:hover:not(:disabled){background:#4a4ae6}&:disabled{opacity:.5;cursor:not-allowed}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.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: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5002
5002
|
}
|
|
5003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SavePresetDialogComponent, decorators: [{
|
|
5004
5004
|
type: Component,
|
|
5005
5005
|
args: [{ selector: 'shared-save-preset-dialog', standalone: true, imports: [CommonModule, FormsModule, MatDialogModule, MatIconModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
5006
5006
|
<div class="save-preset-dialog">
|
|
@@ -5044,7 +5044,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
5044
5044
|
</button>
|
|
5045
5045
|
</mat-dialog-actions>
|
|
5046
5046
|
</div>
|
|
5047
|
-
`, styles: [".save-preset-dialog{padding:4px;min-width:360px;max-width:480px;box-sizing:border-box}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-title{margin:0;font-size:18px;font-weight:600;color:#1e293b}.close-btn{background:none;border:none;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:4px
|
|
5047
|
+
`, styles: [".save-preset-dialog{padding:4px;min-width:360px;max-width:480px;box-sizing:border-box}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-title{margin:0;font-size:18px;font-weight:600;color:#1e293b}.close-btn{background:none;border:none;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:4px;&:hover{background:#f1f5f9;color:#1e293b}}.dialog-content{padding:0!important;margin-bottom:20px}.form-group{display:flex;flex-direction:column;gap:6px}.label-text{font-size:13px;font-weight:500;color:#475569}.dialog-input{padding:10px 12px;border:1px solid #cbd5e1;border-radius:6px;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;width:100%;&:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f126}}.error-msg{margin-top:8px;color:#ef4444;font-size:13px}.dialog-actions{display:flex;gap:8px;padding:0!important;margin:0!important}.btn-cancel{padding:8px 16px;border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;&:hover:not(:disabled){background:#f8fafc}}.btn-save{padding:8px 18px;border:none;background:#5c5cff;color:#fff;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;&:hover:not(:disabled){background:#4a4ae6}&:disabled{opacity:.5;cursor:not-allowed}}\n"] }]
|
|
5048
5048
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5049
5049
|
type: Inject,
|
|
5050
5050
|
args: [MAT_DIALOG_DATA]
|