wt-front-shared 19.0.20 → 19.0.21
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.
|
@@ -3035,7 +3035,7 @@ class UsersFacade {
|
|
|
3035
3035
|
this.store.dispatch(RefreshTokenSuccess({ payload: tokenData }));
|
|
3036
3036
|
}
|
|
3037
3037
|
sendLoginRequiredEvent() {
|
|
3038
|
-
console.info('[ user.facade ][
|
|
3038
|
+
console.info('[ user.facade ][ Login Required] ');
|
|
3039
3039
|
this.store.dispatch(LoginRequiredAction());
|
|
3040
3040
|
}
|
|
3041
3041
|
setLoaded() {
|
|
@@ -13041,7 +13041,7 @@ class StaticDataListItemsComponent {
|
|
|
13041
13041
|
this.loadStaticData(this.pageIndex + 1, data.pageSize);
|
|
13042
13042
|
}
|
|
13043
13043
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: PLATFORM_ID }, { token: i1$5.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13044
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { 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" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<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 <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 <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 <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\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 <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\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 <div *ngIf=\"!viewMode && userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n </ng-container>\n</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:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"], dependencies: [{ 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: 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: 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: 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: StaticDataFilterOptionsComponent, selector: "app-static-data-filter-options", inputs: ["staticSectionFields", "filterFormDataValues"], outputs: ["changedFilter"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection"], outputs: ["delete", "changeSorting"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13044
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListItemsComponent, isStandalone: true, selector: "app-static-data-list-items", inputs: { 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" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<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 <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 <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 <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\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 <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\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 <div *ngIf=\"!viewMode && userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n </ng-container>\n</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:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"], dependencies: [{ 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: 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: 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: 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: StaticDataFilterOptionsComponent, selector: "app-static-data-filter-options", inputs: ["staticSectionFields", "filterFormDataValues"], outputs: ["changedFilter"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "displayedColumns", "contentType", "viewMode", "queryParams", "userRights", "subEntityConfig", "staticSection"], outputs: ["delete", "changeSorting"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13045
13045
|
}
|
|
13046
13046
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
|
|
13047
13047
|
type: Component,
|
|
@@ -13063,7 +13063,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
13063
13063
|
StaticDataListFilteringComponent,
|
|
13064
13064
|
StaticDataFilterOptionsComponent,
|
|
13065
13065
|
StaticDataItemsComponent,
|
|
13066
|
-
], 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
|
|
13066
|
+
], 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 <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 <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 <div *ngIf=\"filterFormData\" class=\"filter-options\">\n <app-static-data-filter-options\n [staticSectionFields]=\"staticSection.fields\"\n [filterFormDataValues]=\"filterFormDataValues\"\n (changedFilter)=\"changedFilterHandler($event)\"></app-static-data-filter-options>\n </div>\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 <app-static-data-items [items]=\"staticData\"\n [viewMode]=\"viewMode\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [subEntityConfig]=\"subEntity\"\n [displayedColumns]=\"displayedColumns\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (changeSorting)=\"changeSortingHandle($event)\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\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 <div *ngIf=\"!viewMode && userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n </ng-container>\n</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:#f6f7f9!important;padding:11px 10px!important;margin-right:3px;width:100%}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.static-data-list-top-text,.static-data-list-bottom-text{margin:25px 0;border:1px solid rgba(175,175,175,.3215686275);padding:10px;background:#efefef69}.search-icon{font-size:20px}.custom-card-title{display:flex;align-items:center;margin-left:10px}.custom-card-title mat-icon{margin-right:10px}.custom-card-title h1,.custom-card-title h5{margin-right:30px;white-space:nowrap}.settings button{border:0;background:transparent;color:#64758b}.sub-title-block{display:flex;justify-content:flex-end}\n"] }]
|
|
13067
13067
|
}], ctorParameters: () => [{ type: Object, decorators: [{
|
|
13068
13068
|
type: Inject,
|
|
13069
13069
|
args: [PLATFORM_ID]
|
|
@@ -13917,14 +13917,14 @@ class StaticDataListComponent {
|
|
|
13917
13917
|
.pipe(map((params) => {
|
|
13918
13918
|
const contentType = params?.[0].path;
|
|
13919
13919
|
this.filteringData = {
|
|
13920
|
-
filteringConfig: this.staticDataConfiguration[contentType]
|
|
13921
|
-
sectionFields: this.staticDataConfiguration[contentType]
|
|
13920
|
+
filteringConfig: this.staticDataConfiguration[contentType]?.options?.filtering,
|
|
13921
|
+
sectionFields: this.staticDataConfiguration[contentType]?.fields
|
|
13922
13922
|
};
|
|
13923
13923
|
return contentType;
|
|
13924
13924
|
}));
|
|
13925
13925
|
}
|
|
13926
13926
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.MatIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13927
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", 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 class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]
|
|
13927
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: StaticDataListComponent, isStandalone: true, selector: "app-static-data-list", 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 class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]?.options?.filteringType === 'left-block'\" class=\"col-2\">\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 class=\"col-10\" [ngClass]=\"{\n 'col-10': staticDataConfiguration[contentType]?.options?.filteringType === 'left-block',\n 'col-12': staticDataConfiguration[contentType]?.options?.filteringType === 'modal'\n }\">\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 [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\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: "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: ["staticDataConfiguration", "viewMode", "contentType", "customTitle", "addTitle", "icon", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery", "subEntity", "leftBlockFilterParamData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13928
13928
|
}
|
|
13929
13929
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: StaticDataListComponent, decorators: [{
|
|
13930
13930
|
type: Component,
|
|
@@ -13936,7 +13936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
13936
13936
|
AsyncPipe,
|
|
13937
13937
|
FilteringFormComponent,
|
|
13938
13938
|
StaticDataListItemsComponent
|
|
13939
|
-
], 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 class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]
|
|
13939
|
+
], 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 class=\"row mb-20\">\n <div *ngIf=\"staticDataConfiguration[contentType]?.options?.filteringType === 'left-block'\" class=\"col-2\">\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 class=\"col-10\" [ngClass]=\"{\n 'col-10': staticDataConfiguration[contentType]?.options?.filteringType === 'left-block',\n 'col-12': staticDataConfiguration[contentType]?.options?.filteringType === 'modal'\n }\">\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 [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"contentType\"\n [showPanelHeader]=\"true\"\n [leftBlockFilterParamData]=\"filterData\"></app-static-data-list-items>\n </mat-card>\n </div>\n </div>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"] }]
|
|
13940
13940
|
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i2.MatIconRegistry }] });
|
|
13941
13941
|
|
|
13942
13942
|
class StaticDataViewComponent {
|