Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@farris/app-navigation-be

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@farris/app-navigation-be - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

esm2015/lib/entity/locale.js

1861

bundles/farris-app-navigation-be.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash-es'), require('@farris/ui-notify'), require('rxjs/operators'), require('@farris/ui-loading'), require('@farris/ui-messager'), require('rxjs'), require('@angular/core'), require('@angular/common'), require('@farris/ui-input-group'), require('@angular/common/http'), require('@farris/ui-pagination')) :
typeof define === 'function' && define.amd ? define('@farris/app-navigation-be', ['exports', 'lodash-es', '@farris/ui-notify', 'rxjs/operators', '@farris/ui-loading', '@farris/ui-messager', 'rxjs', '@angular/core', '@angular/common', '@farris/ui-input-group', '@angular/common/http', '@farris/ui-pagination'], factory) :
(factory((global.farris = global.farris || {}, global.farris['app-navigation-be'] = {}),global.lodashEs,global.uiNotify,global.rxjs.operators,global.uiLoading,global.uiMessager,global.rxjs,global.ng.core,global.ng.common,global.uiInputGroup,global.ng.common.http,global.uiPagination));
}(this, (function (exports,lodashEs,uiNotify,operators,uiLoading,uiMessager,rxjs,core,common,uiInputGroup,http,uiPagination) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash-es'), require('rxjs/operators'), require('rxjs'), require('@angular/core'), require('@angular/common'), require('@farris/ui-input-group'), require('@angular/common/http'), require('@farris/ui-pagination'), require('@farris/ui-notify'), require('@farris/ui-loading'), require('@farris/ui-messager'), require('@farris/ui-locale')) :
typeof define === 'function' && define.amd ? define('@farris/app-navigation-be', ['exports', 'lodash-es', 'rxjs/operators', 'rxjs', '@angular/core', '@angular/common', '@farris/ui-input-group', '@angular/common/http', '@farris/ui-pagination', '@farris/ui-notify', '@farris/ui-loading', '@farris/ui-messager', '@farris/ui-locale'], factory) :
(factory((global.farris = global.farris || {}, global.farris['app-navigation-be'] = {}),global.lodashEs,global.rxjs.operators,global.rxjs,global.ng.core,global.ng.common,global.uiInputGroup,global.ng.common.http,global.uiPagination,global.uiNotify,global.uiLoading,global.uiMessager,global.uiLocale));
}(this, (function (exports,lodashEs,operators,rxjs,core,common,uiInputGroup,http,uiPagination,uiNotify,uiLoading,uiMessager,uiLocale) { 'use strict';
/**
* @fileoverview added by tsickle
* Generated from: lib/app-navigation-be.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// import { timer } from 'rxjs';
var AppNavigationBeComponent = /** @class */ (function () {
function AppNavigationBeComponent(injector, notifyService, loadingService, messageService) {
this.injector = injector;
this.notifyService = notifyService;
this.loadingService = loadingService;
this.messageService = messageService;
// 模态框关闭
this.closeModal = new core.EventEmitter();
// 模态框确定后关闭,并传递参数
this.submitModal = new core.EventEmitter();
this.groupIcon = '<span class="k-icon k-i-search"></span>';
/**
* 当前选中的展示数据
*/
this.chooseRecommand = true;
/**
* 收折最近相关的数据
*/
this.recentFoldIn = false;
/**
* 收折本地相关的数据
*/
this.localFoldIn = false;
// 路径(设计时用)
this.relativePath = '';
// 当前环境是否设计时
this.isDeisgnerEnv = true;
/**
* 收折本地数据
*/
this.foldLocal = false;
/**
* 收折最近数据
*/
this.foldRecent = false;
/**
* 启用服务器端分页
*/
this.pagerOnServer = false;
/**
* 每页记录数
*/
this.pageList = [20, 50, 100];
/**
* 当前页码
*/
this.pageIndex = 1;
/**
* 每页记录数
*/
this.pageSize = 20;
/**
* 分页区高度
*/
this.pagerHeight = 56;
/**
* 显示每页记录数
*/
this.showPageList = false;
/**
* 显示分页信息
*/
this.showPageInfo = true;
/**
* 显示页码
*/
this.showPageNumber = true;
/**
* 显示页码最大数量
*/
this.pagerLabelSize = 7;
/**
* 总记录数
*/
this.total = 0;
/**
* 是否支持分页
*/
this.supportPaging = true;
/**
* 弹窗设定内容
*/
this.modalConfig = {
title: '选择业务实体',
width: 900,
height: 500,
resizable: true,
showButtons: false,
showMaxButton: false,
minWidth: 650,
minHeight: 300,
};
/**
* 是否显示本地元数据(有值时)
*/
this.showLocal = true;
/**
* 是否显示最近(有值时)
*/
this.showRecent = true;
/**
* 推荐中是否没有数据
*/
this.noRecommandData = false;
/**
* 全部中是否没有数据
*/
this.noAllData = false;
// public loading: boolean = false;
this.paginationOptions = {
id: 'Farris-beMetadata-Pagination_',
itemsPerPage: this.pageSize,
currentPage: this.pageIndex,
pageList: this.pageList,
totalItems: this.total,
remote: this.pagerOnServer
};
}
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.beData = [];
this.modalConfig = this.editorParams.modalConfig ? this.editorParams.modalConfig : this.modalConfig;
this.envType = this.editorParams.envType ? this.editorParams.envType : 'designer';
this.getAllDataInfo();
this.getRecentDataInfo();
this.getRecommandDataInfo();
this.chooseRecommand = true;
this.onSearchValueChanged('');
};
/**
* @param {?} page
* @return {?}
*/
AppNavigationBeComponent.prototype.onPageChange = /**
* @param {?} page
* @return {?}
*/
function (page) {
if (this.pageIndex !== page.pageIndex) {
this.pageIndex = page.pageIndex;
this.paginationOptions.currentPage = page.pageIndex;
}
};
/**
* 获取全部数据
*/
/**
* 获取全部数据
* @return {?}
*/
AppNavigationBeComponent.prototype.getAllDataInfo = /**
* 获取全部数据
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var pageSize = 1000;
/** @type {?} */
var source = this.editorParams.source || 'be';
return http$$1.get('/api/dev/main/v1.0/mdservice/unionmdlist?path=' + relativePath + '&pageIndex=1&pageSize=' + pageSize + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
})
.pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (_this.loadingService) {
loading.close();
}
_this.reinvokeInterface(data);
_this.beAllData = lodashEs.cloneDeep(_this.getFormData(data, 'all'));
_this.beAllDataCopy = lodashEs.cloneDeep(_this.beAllData);
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (_this.loadingService) {
loading.close();
}
if (err && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err)));
}
return rxjs.EMPTY;
}))).subscribe();
// return timer(5000).pipe(switchMap(() => httpRequest)).subscribe();
};
/** 获取最近数据 */
/**
* 获取最近数据
* @return {?}
*/
AppNavigationBeComponent.prototype.getRecentDataInfo = /**
* 获取最近数据
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var relativePathString = "path=" + relativePath;
/** @type {?} */
var appId = relativePath[0] == '/' ? relativePath.split('/')[1] : relativePath.split('/')[0];
/** @type {?} */
var appIdString = "appId=" + appId;
/** @type {?} */
var source = this.editorParams.source || 'be';
//低代码:path;零代码:appid
/** @type {?} */
var param = this.envType == 'noCode' ? appIdString : relativePathString;
return http$$1.get('/api/dev/main/v1.0/mdservice/getmdrecentuse?' + param + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
}).pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (_this.loadingService) {
loading.close();
}
_this.beRecentData = lodashEs.cloneDeep(_this.getFormData(data, 'recent'));
if (_this.beRecentData) {
if (_this.beRecentData.length) {
_this.showRecommandData();
_this.getUniqueData(_this.beData);
}
}
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (_this.loadingService) {
loading.close();
}
if (err && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err)));
}
return rxjs.EMPTY;
}))).subscribe();
// return timer(5000).pipe(switchMap(() => httpRequest)).subscribe();
};
/** 获取推荐数据 */
/**
* 获取推荐数据
* @return {?}
*/
AppNavigationBeComponent.prototype.getRecommandDataInfo = /**
* 获取推荐数据
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
/** @type {?} */
var range = this.editorParams.range || 'Bo';
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
// 推荐
/** @type {?} */
var source = this.editorParams.source || 'be';
return http$$1.get('/api/dev/main/v1.0/mdservice/metadataListIn' + range + '?path=' + relativePath + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
}).pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (_this.loadingService) {
loading.close();
}
_this.beRecommandData = lodashEs.cloneDeep(_this.getFormData(data, 'local'));
if (_this.beRecommandData) {
if (_this.beRecommandData.length) {
_this.showRecommandData();
_this.getUniqueData(_this.beData);
}
}
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (_this.loadingService) {
loading.close();
}
if (err && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err)));
}
return rxjs.EMPTY;
}))).subscribe();
// return timer(5000).pipe(switchMap(() => httpRequest)).subscribe();
};
/** 获取数据 */
/**
* 获取数据
* @param {?} data
* @param {?} category
* @return {?}
*/
AppNavigationBeComponent.prototype.getFormData = /**
* 获取数据
* @param {?} data
* @param {?} category
* @return {?}
*/
function (data, category) {
/** @type {?} */
var metadata = [];
/** @type {?} */
var beMetadata = data['metadataIndexItems'] ? data['metadataIndexItems'] : data;
if (beMetadata) {
beMetadata.forEach(( /**
* @param {?} beMetadataItem
* @param {?} index
* @return {?}
*/function (beMetadataItem, index) {
/** @type {?} */
var beMetadataItemTemp = {
id: index,
name: beMetadataItem.name,
label: beMetadataItem.code,
source: beMetadataItem.nameSpace,
hide: false,
active: false,
data: beMetadataItem,
category: category
};
metadata.push(beMetadataItemTemp);
}));
}
return metadata;
};
/** 展示“推荐”一栏 */
/**
* 展示“推荐”一栏
* @return {?}
*/
AppNavigationBeComponent.prototype.showRecommandData = /**
* 展示“推荐”一栏
* @return {?}
*/
function () {
var _this = this;
this.selectedCommand = undefined;
this.unfoldData();
this.chooseRecommand = true;
this.beData = [];
this.foldRecent = false;
if (this.beRecommandData) {
if (this.beRecommandData.length) {
this.beRecommandData.forEach(( /**
* @param {?} beRecommandDataItem
* @return {?}
*/function (beRecommandDataItem) {
_this.beData.push(lodashEs.cloneDeep(beRecommandDataItem));
}));
}
}
if (this.beRecentData) {
if (this.beRecentData.length) {
this.beRecentData.forEach(( /**
* @param {?} beRecentDataItem
* @return {?}
*/function (beRecentDataItem) {
_this.beData.push(lodashEs.cloneDeep(beRecentDataItem));
}));
}
}
this.getUniqueData(this.beData);
this.beData = this.onSearchValueChanged(this.searchValue);
};
/** 展示“全部”一栏 */
/**
* 展示“全部”一栏
* @return {?}
*/
AppNavigationBeComponent.prototype.showAllData = /**
* 展示“全部”一栏
* @return {?}
*/
function () {
this.selectedCommand = undefined;
this.unfoldData();
this.beData = lodashEs.cloneDeep(this.beAllData);
this.chooseRecommand = false;
this.foldRecent = false;
this.beData = this.onSearchValueChanged(this.searchValue);
};
/** 展开所有的数据 */
/**
* 展开所有的数据
* @return {?}
*/
AppNavigationBeComponent.prototype.unfoldData = /**
* 展开所有的数据
* @return {?}
*/
function () {
this.foldLocal = false;
this.foldRecent = false;
};
/**
* 处理用户搜索值
* @param searchValue 用户搜索值
* @returns
*/
/**
* 处理用户搜索值
* @param {?} searchValue 用户搜索值
* @return {?}
*/
AppNavigationBeComponent.prototype.handleSearchedValue = /**
* 处理用户搜索值
* @param {?} searchValue 用户搜索值
* @return {?}
*/
function (searchValue) {
searchValue = searchValue == undefined ? '' : searchValue;
searchValue = searchValue['originalEvent'] != undefined ? searchValue.value || '' : searchValue;
this.searchValue = searchValue;
this.supportPaging = this.searchValue == '' ? true : false;
/** @type {?} */
var value = searchValue.replace(/ /g, '').replace(/>/g, '');
value = value == '' ? ' ' : value;
value = value.toLowerCase();
return value;
};
/**
* 检测推荐中是否有值:包括本地元数据及最近
* @param searchedData
*/
/**
* 检测推荐中是否有值:包括本地元数据及最近
* @param {?} searchedData
* @param {?} value
* @return {?}
*/
AppNavigationBeComponent.prototype.checkValueExists = /**
* 检测推荐中是否有值:包括本地元数据及最近
* @param {?} searchedData
* @param {?} value
* @return {?}
*/
function (searchedData, value) {
// 检测本地元数据中是否有值
/** @type {?} */
var checklocal = searchedData.find(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
return lookupDataItem.category == 'local' && (lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source).toLowerCase().includes(value);
}));
// 检测最近元数据中是否有值
/** @type {?} */
var checkRecent = searchedData.find(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
return lookupDataItem.category == 'recent' && (lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source).toLowerCase().includes(value);
}));
//检测全部中是否有值
/** @type {?} */
var checkAll = searchedData.find(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
return (lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source).toLowerCase().includes(value);
}));
// 自动展开本地或最近
this.showLocal = !checklocal ? false : true;
this.showRecent = !checkRecent ? false : true;
// 检测推荐中是否有数据
this.noRecommandData = !this.showLocal && !this.showRecent ? true : false;
// 检测全部中是否有数据
this.noAllData = !checkAll ? true : false;
};
/**
* 搜索
* @param searchValue 搜索框中的值
* @returns
*/
/**
* 搜索
* @param {?} searchValue 搜索框中的值
* @return {?}
*/
AppNavigationBeComponent.prototype.onSearchValueChanged = /**
* 搜索
* @param {?} searchValue 搜索框中的值
* @return {?}
*/
function (searchValue) {
this.unfoldData();
/** @type {?} */
var searchedData = this.chooseRecommand ? this.beData : this.beAllDataCopy;
if (searchedData) {
/** @type {?} */
var value_1 = this.handleSearchedValue(searchValue);
this.checkValueExists(searchedData, value_1);
searchedData.forEach(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
/** @type {?} */
var combinedString = lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source;
/** @type {?} */
var selectedItem = combinedString.toLowerCase();
lookupDataItem.hide = selectedItem.includes(value_1) == false ? true : false;
}));
}
this.beData = lodashEs.cloneDeep(searchedData);
return this.beData;
};
/** 用户选择值 */
/**
* 用户选择值
* @param {?} selectedBeDataItem
* @return {?}
*/
AppNavigationBeComponent.prototype.getBeDataItem = /**
* 用户选择值
* @param {?} selectedBeDataItem
* @return {?}
*/
function (selectedBeDataItem) {
var _this = this;
this.beData.forEach(( /**
* @param {?} beDataItem
* @return {?}
*/function (beDataItem) {
if (selectedBeDataItem.data.code == beDataItem.data.code && selectedBeDataItem.data.nameSpace == beDataItem.data.nameSpace) {
beDataItem.active = !beDataItem.active;
_this.selectedCommand = lodashEs.cloneDeep(selectedBeDataItem);
}
else {
beDataItem.active = false;
}
}));
};
/** 用户点击确定时调用postApi传出参数 */
/**
* 用户点击确定时调用postApi传出参数
* @return {?}
*/
AppNavigationBeComponent.prototype.clickConfirm = /**
* 用户点击确定时调用postApi传出参数
* @return {?}
*/
function () {
var _this = this;
if (this.selectedCommand && this.selectedCommand['active']) {
/** @type {?} */
var loading_1;
if (this.loadingService) {
loading_1 = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var path = '/api/dev/main/v1.0/mdservice/pickMetadata?currentPath=' + relativePath;
/** @type {?} */
var body = this.selectedCommand.data;
/** @type {?} */
var headerOption = {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' })
};
return http$$1.post(path, body, headerOption)
.pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (_this.loadingService) {
loading_1.close();
}
data['metadata']['processMode'] = _this.selectedCommand.data['processMode'] === 'interpretation' ? 'interpretation' : 'general';
_this.submitModal.emit(data);
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (_this.loadingService) {
loading_1.close();
}
if (err && err.error && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err.error)));
}
return rxjs.EMPTY;
}))).subscribe();
}
else {
/** @type {?} */
var source = this.editorParams.source;
if (this.notifyService) {
switch (source) {
case 'be':
this.notifyService['info']('未选择业务实体');
break;
case 'vo':
this.notifyService['info']('未选择视图对象');
break;
case 'qo':
this.notifyService['info']('未选择查询对象');
break;
case 'webcmp':
this.notifyService['info']('未选择Web构件');
break;
default:
this.notifyService['info']('未选择元数据');
break;
}
}
return null;
}
};
/** 清空搜索内容 */
/**
* 清空搜索内容
* @return {?}
*/
AppNavigationBeComponent.prototype.onClear = /**
* 清空搜索内容
* @return {?}
*/
function () {
this.unfoldData();
this.beData = this.onSearchValueChanged('');
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.clickCancel = /**
* @return {?}
*/
function () {
this.closeModal.emit();
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.foldInRecent = /**
* @return {?}
*/
function () {
if (this.beData) {
this.foldRecent = !this.foldRecent;
/** @type {?} */
var searchedData = this.chooseRecommand ? this.beData : this.beAllDataCopy;
if (searchedData) {
/** @type {?} */
var value_2 = this.handleSearchedValue(this.searchValue);
searchedData.forEach(( /**
* @param {?} beDataItem
* @return {?}
*/function (beDataItem) {
if (beDataItem.category == 'recent') {
/** @type {?} */
var combinedString = beDataItem.name + " " + beDataItem.label + " " + beDataItem.source;
/** @type {?} */
var selectedItem = combinedString.toLowerCase();
beDataItem.hide = selectedItem.includes(value_2) == true ? !beDataItem.hide : beDataItem.hide;
}
}));
this.beData = lodashEs.cloneDeep(searchedData);
}
}
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.foldInLocal = /**
* @return {?}
*/
function () {
if (this.beData) {
this.foldLocal = !this.foldLocal;
/** @type {?} */
var searchedData = this.chooseRecommand ? this.beData : this.beAllDataCopy;
if (searchedData) {
/** @type {?} */
var value_3 = this.handleSearchedValue(this.searchValue);
// 某一个分类下的搜索项为空的情况下,则不显示该项;
searchedData.forEach(( /**
* @param {?} beDataItem
* @return {?}
*/function (beDataItem) {
if (beDataItem.category == 'local') {
/** @type {?} */
var combinedString = beDataItem.name + " " + beDataItem.label + " " + beDataItem.source;
/** @type {?} */
var selectedItem = combinedString.toLowerCase();
beDataItem.hide = selectedItem.includes(value_3) == true ? !beDataItem.hide : beDataItem.hide;
}
}));
this.beData = lodashEs.cloneDeep(searchedData);
}
}
};
/** 去重*/
/**
* 去重
* @param {?} data
* @return {?}
*/
AppNavigationBeComponent.prototype.getUniqueData = /**
* 去重
* @param {?} data
* @return {?}
*/
function (data) {
if (data) {
/** @type {?} */
var value = lodashEs.cloneDeep(data);
for (var i = 0; i < value.length; i++) {
for (var j = i + 1; j < value.length; j++) {
if (value[i]['id'] == value[j]['id']) {
value.splice(j, 1);
j--;
}
}
}
data = lodashEs.cloneDeep(value);
}
return data;
};
/** 接口数据超过1000条时,重新调取所有数据 */
/**
* 接口数据超过1000条时,重新调取所有数据
* @param {?} data
* @return {?}
*/
AppNavigationBeComponent.prototype.reinvokeInterface = /**
* 接口数据超过1000条时,重新调取所有数据
* @param {?} data
* @return {?}
*/
function (data) {
var _this = this;
if (data['page']) {
/** @type {?} */
var totalNum = data['page']['total'] || 0;
if (totalNum > 1000) {
/** @type {?} */
var loading_2;
if (this.loadingService) {
loading_2 = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var source = this.editorParams.source || 'be';
return http$$1.get('/api/dev/main/v1.0/mdservice/unionmdlist?path=' + relativePath + '&pageIndex=1&pageSize=' + totalNum + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
}).pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (_this.loadingService) {
loading_2.close();
}
_this.beAllData = lodashEs.cloneDeep(_this.getFormData(data, 'all'));
_this.beAllDataCopy = lodashEs.cloneDeep(_this.beAllData);
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (_this.loadingService) {
loading_2.close();
}
if (err && err.error && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err.error)));
}
return rxjs.EMPTY;
}))).subscribe();
}
}
};
AppNavigationBeComponent.decorators = [
{ type: core.Component, args: [{
selector: 'farris-appNavigationBe',
template: "<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n \u63A8\u8350</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n \u5168\u90E8</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0/\u7F16\u53F7\u641C\u7D22\" style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">\u6700\u8FD1\u4F7F\u7528</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">\u672C\u5730\u5143\u6570\u636E</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- \u63A8\u8350\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> \u672A\u67E5\u8BE2\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- \u5168\u90E8\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> \u672A\u67E5\u8BE2\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E </div>\n </div>\n</div>\n<!-- \u5E95\u90E8\u533A\u57DF -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">\u53D6\u6D88</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">\u786E\u5B9A</span>\n </div>\n </div>\n</div>",
styles: [":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;position:absolute;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 50px)}.f-navBe-content2{width:100%;min-width:400px;margin-top:44px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-recent{width:100%;min-width:400px;margin-top:44px}.f-navBe-content-local{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]
}] }
];
/** @nocollapse */
AppNavigationBeComponent.ctorParameters = function () {
return [
{ type: core.Injector },
{ type: uiNotify.NotifyService },
{ type: uiLoading.LoadingService },
{ type: uiMessager.MessagerService }
];
};
AppNavigationBeComponent.propDecorators = {
editorParams: [{ type: core.Input }],
closeModal: [{ type: core.Output }],
submitModal: [{ type: core.Output }],
modalFooter: [{ type: core.ViewChild, args: ['footer',] }]
};
return AppNavigationBeComponent;
}());
/**
* @fileoverview added by tsickle
* Generated from: lib/entity/locale.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var beMetadataLocale = {
'zh-CHS': {
beMetadata: {
recommand: '推荐',
all: '全部',
search: '请输入名称/编号搜索',
recent: '最近使用',
localData: '本地元数据',
noRecommandData: '未查询到符合条件的数据',
cancelBtn: '取消',
sureBtn: '确定',
loading: '加载中,请稍候...',
topic: '选择业务实体',
noBeDataSelected: '未选择业务实体',
noVoDataSelected: '未选择视图对象',
noQoDataSelected: '未选择查询对象',
noWebcmpDataSelected: '未选择Web构件',
noDataSelected: '未选择元数据'
},
},
'zh-CHT': {
beMetadata: {
recommand: '推薦',
all: '全部',
search: '請輸入編號/名稱搜索',
recent: '最近使用',
localData: '本地元數據',
noRecommandData: '未查詢到符合條件的數據',
cancelBtn: '取消',
sureBtn: '確定',
loading: '加載中,請稍候...',
topic: '選擇業務實體',
noBeDataSelected: '未選擇業務實體',
noVoDataSelected: '未選擇視圖對象',
noQoDataSelected: '未選擇查詢對象',
noWebcmpDataSelected: '未選擇Web構件',
noDataSelected: '未選擇元數據'
},
},
en: {
beMetadata: {
recommand: 'Recommand',
all: 'All',
search: 'Search property code or name',
recent: 'Recent',
localData: 'Local Metadata',
noRecommandData: 'No data that meets the requirements was queried',
cancelBtn: 'Cancel',
sureBtn: 'OK',
loading: 'Loading, please wait...',
topic: 'Choose BE Metadata',
noBeDataSelected: 'No bedata selected',
noVoDataSelected: 'No vodata selected',
noQoDataSelected: 'No qodata selected',
noWebcmpDataSelected: 'No webcmpdata selected',
noDataSelected: 'No data selected'
},
}
};
/**
* @fileoverview added by tsickle
* Generated from: lib/app-navigation-be.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AppNavigationBeModule = /** @class */ (function () {
function AppNavigationBeModule() {
}
AppNavigationBeModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [AppNavigationBeComponent],
imports: [
common.CommonModule,
uiInputGroup.InputGroupModule,
http.HttpClientModule,
uiPagination.PaginationModule
],
// entryComponents: [PaginationControlsComponent],
exports: [AppNavigationBeComponent]
},] }
];
return AppNavigationBeModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: lib/app-navigation-be.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AppNavigationBeComponent = /** @class */ (function () {
function AppNavigationBeComponent(injector, notifyService, loadingService, messageService, localeService) {
this.injector = injector;
this.notifyService = notifyService;
this.loadingService = loadingService;
this.messageService = messageService;
this.localeService = localeService;
// 模态框关闭
this.closeModal = new core.EventEmitter();
// 模态框确定后关闭,并传递参数
this.submitModal = new core.EventEmitter();
this.groupIcon = '<span class="k-icon k-i-search"></span>';
/**
* 当前选中的展示数据
*/
this.chooseRecommand = true;
/**
* 收折最近相关的数据
*/
this.recentFoldIn = false;
/**
* 收折本地相关的数据
*/
this.localFoldIn = false;
// 路径(设计时用)
this.relativePath = '';
// 当前环境是否设计时
this.isDeisgnerEnv = true;
/**
* 收折本地数据
*/
this.foldLocal = false;
/**
* 收折最近数据
*/
this.foldRecent = false;
/**
* 启用服务器端分页
*/
this.pagerOnServer = false;
/**
* 每页记录数
*/
this.pageList = [20, 50, 100];
/**
* 当前页码
*/
this.pageIndex = 1;
/**
* 每页记录数
*/
this.pageSize = 20;
/**
* 分页区高度
*/
this.pagerHeight = 56;
/**
* 显示每页记录数
*/
this.showPageList = false;
/**
* 显示分页信息
*/
this.showPageInfo = true;
/**
* 显示页码
*/
this.showPageNumber = true;
/**
* 显示页码最大数量
*/
this.pagerLabelSize = 7;
/**
* 总记录数
*/
this.total = 0;
/**
* 是否支持分页
*/
this.supportPaging = true;
this.localeId = 'zh-CHS';
/**
* 弹窗设定内容
*/
this.modalConfig = {
title: beMetadataLocale[this.localeId].beMetadata.topic,
width: 900,
height: 500,
resizable: true,
showButtons: false,
showMaxButton: false,
minWidth: 650,
minHeight: 300,
};
/**
* 是否显示本地元数据(有值时)
*/
this.showLocal = true;
/**
* 是否显示最近(有值时)
*/
this.showRecent = true;
/**
* 推荐中是否没有数据
*/
this.noRecommandData = false;
/**
* 全部中是否没有数据
*/
this.noAllData = false;
this.beMetadataLocale = beMetadataLocale;
this.paginationOptions = {
id: 'Farris-beMetadata-Pagination_',
itemsPerPage: this.pageSize,
currentPage: this.pageIndex,
pageList: this.pageList,
totalItems: this.total,
remote: this.pagerOnServer
};
this.setLocaleData();
}
/**
* 设置国际化资源项
*/
/**
* 设置国际化资源项
* @private
* @return {?}
*/
AppNavigationBeComponent.prototype.setLocaleData = /**
* 设置国际化资源项
* @private
* @return {?}
*/
function () {
if (this.localeService && this.localeService.langData && !this.localeService.langData.beMetadata) {
this.localeService.setLocaleData(beMetadataLocale);
}
this.localeId = window.top.localStorage.languageCode || 'zh-CHS';
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.beData = [];
this.modalConfig = this.editorParams.modalConfig ? this.editorParams.modalConfig : this.modalConfig;
this.envType = this.editorParams.envType ? this.editorParams.envType : 'designer';
this.getAllDataInfo();
this.getRecentDataInfo();
this.getRecommandDataInfo();
this.chooseRecommand = true;
this.onSearchValueChanged('');
};
/**
* @param {?} page
* @return {?}
*/
AppNavigationBeComponent.prototype.onPageChange = /**
* @param {?} page
* @return {?}
*/
function (page) {
if (this.pageIndex !== page.pageIndex) {
this.pageIndex = page.pageIndex;
this.paginationOptions.currentPage = page.pageIndex;
}
};
/**
* 获取全部数据
*/
/**
* 获取全部数据
* @return {?}
*/
AppNavigationBeComponent.prototype.getAllDataInfo = /**
* 获取全部数据
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var loading = this.loadingData();
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var pageSize = 1000;
/** @type {?} */
var source = this.editorParams.source || 'be';
return http$$1.get('/api/dev/main/v1.0/mdservice/unionmdlist?path=' + relativePath + '&pageIndex=1&pageSize=' + pageSize + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
})
.pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (loading) {
loading.close();
}
_this.reinvokeInterface(data);
_this.beAllData = lodashEs.cloneDeep(_this.getFormData(data, 'all'));
_this.beAllDataCopy = lodashEs.cloneDeep(_this.beAllData);
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (loading) {
loading.close();
}
if (err && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err)));
}
return rxjs.EMPTY;
}))).subscribe();
// return timer(5000).pipe(switchMap(() => httpRequest)).subscribe();
};
/** 加载数据 */
/**
* 加载数据
* @return {?}
*/
AppNavigationBeComponent.prototype.loadingData = /**
* 加载数据
* @return {?}
*/
function () {
if (!this.loadingService) {
this.loadingService = this.injector.get(uiLoading.LoadingService);
}
/** @type {?} */
var loading = this.loadingService.show({ container: 'body', message: beMetadataLocale[this.localeId].beMetadata.loading });
return loading;
};
/** 获取最近数据 */
/**
* 获取最近数据
* @return {?}
*/
AppNavigationBeComponent.prototype.getRecentDataInfo = /**
* 获取最近数据
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var loading = this.loadingData();
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var relativePathString = "path=" + relativePath;
/** @type {?} */
var appId = relativePath[0] == '/' ? relativePath.split('/')[1] : relativePath.split('/')[0];
/** @type {?} */
var appIdString = "appId=" + appId;
/** @type {?} */
var source = this.editorParams.source || 'be';
//低代码:path;零代码:appid
/** @type {?} */
var param = this.envType == 'noCode' ? appIdString : relativePathString;
return http$$1.get('/api/dev/main/v1.0/mdservice/getmdrecentuse?' + param + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
}).pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (loading) {
loading.close();
}
_this.beRecentData = lodashEs.cloneDeep(_this.getFormData(data, 'recent'));
if (_this.beRecentData) {
if (_this.beRecentData.length) {
_this.showRecommandData();
_this.getUniqueData(_this.beData);
}
}
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (loading) {
_this.loading.close();
}
if (err && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err)));
}
return rxjs.EMPTY;
}))).subscribe();
// return timer(5000).pipe(switchMap(() => httpRequest)).subscribe();
};
/** 获取推荐数据 */
/**
* 获取推荐数据
* @return {?}
*/
AppNavigationBeComponent.prototype.getRecommandDataInfo = /**
* 获取推荐数据
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var loading = this.loadingData();
/** @type {?} */
var range = this.editorParams.range || 'Bo';
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
// 推荐
/** @type {?} */
var source = this.editorParams.source || 'be';
return http$$1.get('/api/dev/main/v1.0/mdservice/metadataListIn' + range + '?path=' + relativePath + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
}).pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (loading) {
loading.close();
}
_this.beRecommandData = lodashEs.cloneDeep(_this.getFormData(data, 'local'));
if (_this.beRecommandData) {
if (_this.beRecommandData.length) {
_this.showRecommandData();
_this.getUniqueData(_this.beData);
}
}
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (_this.loading) {
_this.loading.close();
}
if (err && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err)));
}
return rxjs.EMPTY;
}))).subscribe();
// return timer(5000).pipe(switchMap(() => httpRequest)).subscribe();
};
/** 获取数据 */
/**
* 获取数据
* @param {?} data
* @param {?} category
* @return {?}
*/
AppNavigationBeComponent.prototype.getFormData = /**
* 获取数据
* @param {?} data
* @param {?} category
* @return {?}
*/
function (data, category) {
/** @type {?} */
var metadata = [];
/** @type {?} */
var beMetadata = data['metadataIndexItems'] ? data['metadataIndexItems'] : data;
if (beMetadata) {
beMetadata.forEach(( /**
* @param {?} beMetadataItem
* @param {?} index
* @return {?}
*/function (beMetadataItem, index) {
// 剔除移动端数据
/** @type {?} */
var isMobileData = beMetadataItem.nameSpace.includes('Inspur.GS.Gsp.Mobile');
if (!isMobileData) {
/** @type {?} */
var beMetadataItemTemp = {
id: index,
name: beMetadataItem.name,
label: beMetadataItem.code,
source: beMetadataItem.nameSpace,
hide: false,
active: false,
data: beMetadataItem,
category: category
};
metadata.push(beMetadataItemTemp);
}
}));
}
return metadata;
};
/** 展示“推荐”一栏 */
/**
* 展示“推荐”一栏
* @return {?}
*/
AppNavigationBeComponent.prototype.showRecommandData = /**
* 展示“推荐”一栏
* @return {?}
*/
function () {
var _this = this;
this.selectedCommand = undefined;
this.unfoldData();
this.chooseRecommand = true;
this.beData = [];
this.foldRecent = false;
if (this.beRecommandData) {
if (this.beRecommandData.length) {
this.beRecommandData.forEach(( /**
* @param {?} beRecommandDataItem
* @return {?}
*/function (beRecommandDataItem) {
_this.beData.push(lodashEs.cloneDeep(beRecommandDataItem));
}));
}
}
if (this.beRecentData) {
if (this.beRecentData.length) {
this.beRecentData.forEach(( /**
* @param {?} beRecentDataItem
* @return {?}
*/function (beRecentDataItem) {
_this.beData.push(lodashEs.cloneDeep(beRecentDataItem));
}));
}
}
this.getUniqueData(this.beData);
this.beData = this.onSearchValueChanged(this.searchValue);
};
/** 展示“全部”一栏 */
/**
* 展示“全部”一栏
* @return {?}
*/
AppNavigationBeComponent.prototype.showAllData = /**
* 展示“全部”一栏
* @return {?}
*/
function () {
this.selectedCommand = undefined;
this.unfoldData();
this.beData = lodashEs.cloneDeep(this.beAllData);
this.chooseRecommand = false;
this.foldRecent = false;
this.beData = this.onSearchValueChanged(this.searchValue);
};
/** 展开所有的数据 */
/**
* 展开所有的数据
* @return {?}
*/
AppNavigationBeComponent.prototype.unfoldData = /**
* 展开所有的数据
* @return {?}
*/
function () {
this.foldLocal = false;
this.foldRecent = false;
};
/**
* 处理用户搜索值
* @param searchValue 用户搜索值
* @returns
*/
/**
* 处理用户搜索值
* @param {?} searchValue 用户搜索值
* @return {?}
*/
AppNavigationBeComponent.prototype.handleSearchedValue = /**
* 处理用户搜索值
* @param {?} searchValue 用户搜索值
* @return {?}
*/
function (searchValue) {
searchValue = searchValue == undefined ? '' : searchValue;
searchValue = searchValue['originalEvent'] != undefined ? searchValue.value || '' : searchValue;
this.searchValue = searchValue;
this.supportPaging = this.searchValue == '' ? true : false;
/** @type {?} */
var value = searchValue.replace(/ /g, '').replace(/>/g, '');
value = value == '' ? ' ' : value;
value = value.toLowerCase();
return value;
};
/**
* 检测推荐中是否有值:包括本地元数据及最近
* @param searchedData
*/
/**
* 检测推荐中是否有值:包括本地元数据及最近
* @param {?} searchedData
* @param {?} value
* @return {?}
*/
AppNavigationBeComponent.prototype.checkValueExists = /**
* 检测推荐中是否有值:包括本地元数据及最近
* @param {?} searchedData
* @param {?} value
* @return {?}
*/
function (searchedData, value) {
// 检测本地元数据中是否有值
/** @type {?} */
var checklocal = searchedData.find(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
return lookupDataItem.category == 'local' && (lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source).toLowerCase().includes(value);
}));
// 检测最近元数据中是否有值
/** @type {?} */
var checkRecent = searchedData.find(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
return lookupDataItem.category == 'recent' && (lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source).toLowerCase().includes(value);
}));
//检测全部中是否有值
/** @type {?} */
var checkAll = searchedData.find(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
return (lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source).toLowerCase().includes(value);
}));
// 自动展开本地或最近
this.showLocal = !checklocal ? false : true;
this.showRecent = !checkRecent ? false : true;
// 检测推荐中是否有数据
this.noRecommandData = !this.showLocal && !this.showRecent ? true : false;
// 检测全部中是否有数据
this.noAllData = !checkAll ? true : false;
};
/**
* 搜索
* @param searchValue 搜索框中的值
* @returns
*/
/**
* 搜索
* @param {?} searchValue 搜索框中的值
* @return {?}
*/
AppNavigationBeComponent.prototype.onSearchValueChanged = /**
* 搜索
* @param {?} searchValue 搜索框中的值
* @return {?}
*/
function (searchValue) {
this.unfoldData();
/** @type {?} */
var searchedData = this.chooseRecommand ? this.beData : this.beAllDataCopy;
if (searchedData) {
/** @type {?} */
var value_1 = this.handleSearchedValue(searchValue);
this.checkValueExists(searchedData, value_1);
searchedData.forEach(( /**
* @param {?} lookupDataItem
* @return {?}
*/function (lookupDataItem) {
/** @type {?} */
var combinedString = lookupDataItem.name + " " + lookupDataItem.label + " " + lookupDataItem.source;
/** @type {?} */
var selectedItem = combinedString.toLowerCase();
lookupDataItem.hide = selectedItem.includes(value_1) == false ? true : false;
}));
}
this.beData = lodashEs.cloneDeep(searchedData);
return this.beData;
};
/** 用户选择值 */
/**
* 用户选择值
* @param {?} selectedBeDataItem
* @return {?}
*/
AppNavigationBeComponent.prototype.getBeDataItem = /**
* 用户选择值
* @param {?} selectedBeDataItem
* @return {?}
*/
function (selectedBeDataItem) {
var _this = this;
this.beData.forEach(( /**
* @param {?} beDataItem
* @return {?}
*/function (beDataItem) {
if (selectedBeDataItem.data.code == beDataItem.data.code && selectedBeDataItem.data.nameSpace == beDataItem.data.nameSpace) {
beDataItem.active = !beDataItem.active;
_this.selectedCommand = lodashEs.cloneDeep(selectedBeDataItem);
}
else {
beDataItem.active = false;
}
}));
};
/** 用户点击确定时调用postApi传出参数 */
/**
* 用户点击确定时调用postApi传出参数
* @return {?}
*/
AppNavigationBeComponent.prototype.clickConfirm = /**
* 用户点击确定时调用postApi传出参数
* @return {?}
*/
function () {
var _this = this;
if (this.selectedCommand && this.selectedCommand['active']) {
/** @type {?} */
var loading_1 = this.loadingData();
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var path = '/api/dev/main/v1.0/mdservice/pickMetadata?currentPath=' + relativePath;
/** @type {?} */
var body = this.selectedCommand.data;
/** @type {?} */
var headerOption = {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' })
};
return http$$1.post(path, body, headerOption)
.pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (loading_1) {
loading_1.close();
}
data['metadata']['processMode'] = _this.selectedCommand.data['processMode'] === 'interpretation' ? 'interpretation' : 'general';
_this.submitModal.emit(data);
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (loading_1) {
loading_1.close();
}
if (err && err.error && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err.error)));
}
return rxjs.EMPTY;
}))).subscribe();
}
else {
/** @type {?} */
var source = this.editorParams.source;
if (this.notifyService) {
switch (source) {
case 'be':
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noBeDataSelected);
break;
case 'vo':
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noVoDataSelected);
break;
case 'qo':
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noQoDataSelected);
break;
case 'webcmp':
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noWebcmpDataSelected);
break;
default:
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noDataSelected);
break;
}
}
return null;
}
};
/** 清空搜索内容 */
/**
* 清空搜索内容
* @return {?}
*/
AppNavigationBeComponent.prototype.onClear = /**
* 清空搜索内容
* @return {?}
*/
function () {
this.unfoldData();
this.beData = this.onSearchValueChanged('');
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.clickCancel = /**
* @return {?}
*/
function () {
this.closeModal.emit();
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.foldInRecent = /**
* @return {?}
*/
function () {
if (this.beData) {
this.foldRecent = !this.foldRecent;
/** @type {?} */
var searchedData = this.chooseRecommand ? this.beData : this.beAllDataCopy;
if (searchedData) {
/** @type {?} */
var value_2 = this.handleSearchedValue(this.searchValue);
searchedData.forEach(( /**
* @param {?} beDataItem
* @return {?}
*/function (beDataItem) {
if (beDataItem.category == 'recent') {
/** @type {?} */
var combinedString = beDataItem.name + " " + beDataItem.label + " " + beDataItem.source;
/** @type {?} */
var selectedItem = combinedString.toLowerCase();
beDataItem.hide = selectedItem.includes(value_2) == true ? !beDataItem.hide : beDataItem.hide;
}
}));
this.beData = lodashEs.cloneDeep(searchedData);
}
}
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.foldInLocal = /**
* @return {?}
*/
function () {
if (this.beData) {
this.foldLocal = !this.foldLocal;
/** @type {?} */
var searchedData = this.chooseRecommand ? this.beData : this.beAllDataCopy;
if (searchedData) {
/** @type {?} */
var value_3 = this.handleSearchedValue(this.searchValue);
// 某一个分类下的搜索项为空的情况下,则不显示该项;
searchedData.forEach(( /**
* @param {?} beDataItem
* @return {?}
*/function (beDataItem) {
if (beDataItem.category == 'local') {
/** @type {?} */
var combinedString = beDataItem.name + " " + beDataItem.label + " " + beDataItem.source;
/** @type {?} */
var selectedItem = combinedString.toLowerCase();
beDataItem.hide = selectedItem.includes(value_3) == true ? !beDataItem.hide : beDataItem.hide;
}
}));
this.beData = lodashEs.cloneDeep(searchedData);
}
}
};
/** 去重*/
/**
* 去重
* @param {?} data
* @return {?}
*/
AppNavigationBeComponent.prototype.getUniqueData = /**
* 去重
* @param {?} data
* @return {?}
*/
function (data) {
if (data) {
/** @type {?} */
var value = lodashEs.cloneDeep(data);
for (var i = 0; i < value.length; i++) {
for (var j = i + 1; j < value.length; j++) {
if (value[i]['id'] == value[j]['id']) {
value.splice(j, 1);
j--;
}
}
}
data = lodashEs.cloneDeep(value);
}
return data;
};
/** 接口数据超过1000条时,重新调取所有数据 */
/**
* 接口数据超过1000条时,重新调取所有数据
* @param {?} data
* @return {?}
*/
AppNavigationBeComponent.prototype.reinvokeInterface = /**
* 接口数据超过1000条时,重新调取所有数据
* @param {?} data
* @return {?}
*/
function (data) {
var _this = this;
if (data['page']) {
/** @type {?} */
var totalNum = data['page']['total'] || 0;
if (totalNum > 1000) {
/** @type {?} */
var loading_2 = this.loadingData();
/** @type {?} */
var http$$1 = this.injector.get(http.HttpClient);
/** @type {?} */
var relativePath = this.editorParams.relativePath || '';
/** @type {?} */
var source = this.editorParams.source || 'be';
return http$$1.get('/api/dev/main/v1.0/mdservice/unionmdlist?path=' + relativePath + '&pageIndex=1&pageSize=' + totalNum + '&metadataTypeList=.' + source, {
headers: new http.HttpHeaders({ 'Content-Type': 'application/json' }),
responseType: 'json'
}).pipe(operators.tap(( /**
* @param {?} data
* @return {?}
*/function (data) {
if (loading_2) {
loading_2.close();
}
_this.beAllData = lodashEs.cloneDeep(_this.getFormData(data, 'all'));
_this.beAllDataCopy = lodashEs.cloneDeep(_this.beAllData);
})), operators.catchError(( /**
* @param {?} err
* @return {?}
*/function (err) {
if (loading_2) {
loading_2.close();
}
if (err && err.error && _this.messageService) {
_this.messageService.exception(( /** @type {?} */(err.error)));
}
return rxjs.EMPTY;
}))).subscribe();
}
}
};
AppNavigationBeComponent.decorators = [
{ type: core.Component, args: [{
selector: 'farris-appNavigationBe',
template: "<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.recommand}}</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.all }}</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"{{ beMetadataLocale[localeId].beMetadata.search }}\"\n style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.recent }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.localData }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- \u63A8\u8350\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- \u5168\u90E8\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n</div>\n<!-- \u5E95\u90E8\u533A\u57DF -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">{{ beMetadataLocale[localeId].beMetadata.cancelBtn }}</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">{{ beMetadataLocale[localeId].beMetadata.sureBtn }}</span>\n </div>\n </div>\n</div>",
styles: [":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-recent-text-focus{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 100px)}.f-navBe-content2{width:100%;min-width:400px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-local,.f-navBe-content-recent{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]
}] }
];
/** @nocollapse */
AppNavigationBeComponent.ctorParameters = function () {
return [
{ type: core.Injector },
{ type: uiNotify.NotifyService },
{ type: uiLoading.LoadingService },
{ type: uiMessager.MessagerService },
{ type: uiLocale.LocaleService }
];
};
AppNavigationBeComponent.propDecorators = {
editorParams: [{ type: core.Input }],
closeModal: [{ type: core.Output }],
submitModal: [{ type: core.Output }],
modalFooter: [{ type: core.ViewChild, args: ['footer',] }]
};
return AppNavigationBeComponent;
}());
/**
* @fileoverview added by tsickle
* Generated from: public-api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: lib/app-navigation-be.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
var AppNavigationBeModule = /** @class */ (function () {
function AppNavigationBeModule() {
}
AppNavigationBeModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [AppNavigationBeComponent],
imports: [
common.CommonModule,
uiInputGroup.InputGroupModule,
http.HttpClientModule,
uiPagination.PaginationModule,
uiLoading.LoadingModule.forRoot({ message: '加载中,请稍候...' }),
uiMessager.MessagerModule,
uiNotify.NotifyModule.forRoot(),
uiLocale.LocaleModule.forRoot('')
],
// entryComponents: [PaginationControlsComponent],
exports: [AppNavigationBeComponent],
providers: [
{ provide: core.LOCALE_ID, useValue: ɵ0 }
]
},] }
];
return AppNavigationBeModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: farris-app-navigation-be.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: public-api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
exports.AppNavigationBeComponent = AppNavigationBeComponent;
exports.AppNavigationBeModule = AppNavigationBeModule;
/**
* @fileoverview added by tsickle
* Generated from: farris-app-navigation-be.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
Object.defineProperty(exports, '__esModule', { value: true });
exports.AppNavigationBeComponent = AppNavigationBeComponent;
exports.AppNavigationBeModule = AppNavigationBeModule;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=farris-app-navigation-be.umd.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("lodash-es"),require("@farris/ui-notify"),require("rxjs/operators"),require("@farris/ui-loading"),require("@farris/ui-messager"),require("rxjs"),require("@angular/core"),require("@angular/common"),require("@farris/ui-input-group"),require("@angular/common/http"),require("@farris/ui-pagination")):"function"==typeof define&&define.amd?define("@farris/app-navigation-be",["exports","lodash-es","@farris/ui-notify","rxjs/operators","@farris/ui-loading","@farris/ui-messager","rxjs","@angular/core","@angular/common","@farris/ui-input-group","@angular/common/http","@farris/ui-pagination"],t):t((e.farris=e.farris||{},e.farris["app-navigation-be"]={}),e.lodashEs,e.uiNotify,e.rxjs.operators,e.uiLoading,e.uiMessager,e.rxjs,e.ng.core,e.ng.common,e.uiInputGroup,e.ng.common.http,e.uiPagination)}(this,function(e,s,t,r,a,n,c,i,o,l,d,p){"use strict";f.prototype.ngOnInit=function(){this.beData=[],this.modalConfig=this.editorParams.modalConfig||this.modalConfig,this.envType=this.editorParams.envType||"designer",this.getAllDataInfo(),this.getRecentDataInfo(),this.getRecommandDataInfo(),this.chooseRecommand=!0,this.onSearchValueChanged("")},f.prototype.onPageChange=function(e){this.pageIndex!==e.pageIndex&&(this.pageIndex=e.pageIndex,this.paginationOptions.currentPage=e.pageIndex)},f.prototype.getAllDataInfo=function(){var t,a=this,e=(this.loadingService&&(t=this.loadingService.show({container:"body",message:"加载中,请稍候..."})),this.injector.get(d.HttpClient)),n=this.editorParams.relativePath||"",i=this.editorParams.source||"be";return e.get("/api/dev/main/v1.0/mdservice/unionmdlist?path="+n+"&pageIndex=1&pageSize=1000&metadataTypeList=."+i,{headers:new d.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(r.tap(function(e){a.loadingService&&t.close(),a.reinvokeInterface(e),a.beAllData=s.cloneDeep(a.getFormData(e,"all")),a.beAllDataCopy=s.cloneDeep(a.beAllData)}),r.catchError(function(e){return a.loadingService&&t.close(),e&&a.messageService&&a.messageService.exception(e),c.EMPTY})).subscribe()},f.prototype.getRecentDataInfo=function(){var t,a=this,e=(this.loadingService&&(t=this.loadingService.show({container:"body",message:"加载中,请稍候..."})),this.injector.get(d.HttpClient)),n=this.editorParams.relativePath||"",i="path="+n,n="/"==n[0]?n.split("/")[1]:n.split("/")[0],o=this.editorParams.source||"be",n="noCode"==this.envType?"appId="+n:i;return e.get("/api/dev/main/v1.0/mdservice/getmdrecentuse?"+n+"&metadataTypeList=."+o,{headers:new d.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(r.tap(function(e){a.loadingService&&t.close(),a.beRecentData=s.cloneDeep(a.getFormData(e,"recent")),a.beRecentData&&a.beRecentData.length&&(a.showRecommandData(),a.getUniqueData(a.beData))}),r.catchError(function(e){return a.loadingService&&t.close(),e&&a.messageService&&a.messageService.exception(e),c.EMPTY})).subscribe()},f.prototype.getRecommandDataInfo=function(){var t,a=this,e=(this.loadingService&&(t=this.loadingService.show({container:"body",message:"加载中,请稍候..."})),this.editorParams.range||"Bo"),n=this.injector.get(d.HttpClient),i=this.editorParams.relativePath||"",o=this.editorParams.source||"be";return n.get("/api/dev/main/v1.0/mdservice/metadataListIn"+e+"?path="+i+"&metadataTypeList=."+o,{headers:new d.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(r.tap(function(e){a.loadingService&&t.close(),a.beRecommandData=s.cloneDeep(a.getFormData(e,"local")),a.beRecommandData&&a.beRecommandData.length&&(a.showRecommandData(),a.getUniqueData(a.beData))}),r.catchError(function(e){return a.loadingService&&t.close(),e&&a.messageService&&a.messageService.exception(e),c.EMPTY})).subscribe()},f.prototype.getFormData=function(e,a){var n=[],e=e.metadataIndexItems||e;return e&&e.forEach(function(e,t){t={id:t,name:e.name,label:e.code,source:e.nameSpace,hide:!1,active:!1,data:e,category:a};n.push(t)}),n},f.prototype.showRecommandData=function(){var t=this;this.selectedCommand=undefined,this.unfoldData(),this.chooseRecommand=!0,this.beData=[],this.foldRecent=!1,this.beRecommandData&&this.beRecommandData.length&&this.beRecommandData.forEach(function(e){t.beData.push(s.cloneDeep(e))}),this.beRecentData&&this.beRecentData.length&&this.beRecentData.forEach(function(e){t.beData.push(s.cloneDeep(e))}),this.getUniqueData(this.beData),this.beData=this.onSearchValueChanged(this.searchValue)},f.prototype.showAllData=function(){this.selectedCommand=undefined,this.unfoldData(),this.beData=s.cloneDeep(this.beAllData),this.chooseRecommand=!1,this.foldRecent=!1,this.beData=this.onSearchValueChanged(this.searchValue)},f.prototype.unfoldData=function(){this.foldLocal=!1,this.foldRecent=!1},f.prototype.handleSearchedValue=function(e){e=(e=e==undefined?"":e).originalEvent!=undefined?e.value||"":e,this.searchValue=e,this.supportPaging=""==this.searchValue;e=e.replace(/ /g,"").replace(/>/g,"");return e=(e=""==e?" ":e).toLowerCase()},f.prototype.checkValueExists=function(e,t){var a=e.find(function(e){return"local"==e.category&&(e.name+" "+e.label+" "+e.source).toLowerCase().includes(t)}),n=e.find(function(e){return"recent"==e.category&&(e.name+" "+e.label+" "+e.source).toLowerCase().includes(t)}),e=e.find(function(e){return(e.name+" "+e.label+" "+e.source).toLowerCase().includes(t)});this.showLocal=!!a,this.showRecent=!!n,this.noRecommandData=!this.showLocal&&!this.showRecent,this.noAllData=!e},f.prototype.onSearchValueChanged=function(e){this.unfoldData();var a,t=this.chooseRecommand?this.beData:this.beAllDataCopy;return t&&(a=this.handleSearchedValue(e),this.checkValueExists(t,a),t.forEach(function(e){var t=(e.name+" "+e.label+" "+e.source).toLowerCase();e.hide=0==t.includes(a)})),this.beData=s.cloneDeep(t),this.beData},f.prototype.getBeDataItem=function(t){var a=this;this.beData.forEach(function(e){t.data.code==e.data.code&&t.data.nameSpace==e.data.nameSpace?(e.active=!e.active,a.selectedCommand=s.cloneDeep(t)):e.active=!1})},f.prototype.clickConfirm=function(){var t,e,a,n,i=this;if(this.selectedCommand&&this.selectedCommand.active)return this.loadingService&&(t=this.loadingService.show({container:"body",message:"加载中,请稍候..."})),e=this.injector.get(d.HttpClient),o="/api/dev/main/v1.0/mdservice/pickMetadata?currentPath="+(this.editorParams.relativePath||""),a=this.selectedCommand.data,n={headers:new d.HttpHeaders({"Content-Type":"application/json"})},e.post(o,a,n).pipe(r.tap(function(e){i.loadingService&&t.close(),e.metadata.processMode="interpretation"===i.selectedCommand.data.processMode?"interpretation":"general",i.submitModal.emit(e)}),r.catchError(function(e){return i.loadingService&&t.close(),e&&e.error&&i.messageService&&i.messageService.exception(e.error),c.EMPTY})).subscribe();var o=this.editorParams.source;if(this.notifyService)switch(o){case"be":this.notifyService.info("未选择业务实体");break;case"vo":this.notifyService.info("未选择视图对象");break;case"qo":this.notifyService.info("未选择查询对象");break;case"webcmp":this.notifyService.info("未选择Web构件");break;default:this.notifyService.info("未选择元数据")}return null},f.prototype.onClear=function(){this.unfoldData(),this.beData=this.onSearchValueChanged("")},f.prototype.clickCancel=function(){this.closeModal.emit()},f.prototype.foldInRecent=function(){var e,a;this.beData&&(this.foldRecent=!this.foldRecent,(e=this.chooseRecommand?this.beData:this.beAllDataCopy)&&(a=this.handleSearchedValue(this.searchValue),e.forEach(function(e){var t;"recent"==e.category&&(t=(e.name+" "+e.label+" "+e.source).toLowerCase(),e.hide=1==t.includes(a)?!e.hide:e.hide)}),this.beData=s.cloneDeep(e)))},f.prototype.foldInLocal=function(){var e,a;this.beData&&(this.foldLocal=!this.foldLocal,(e=this.chooseRecommand?this.beData:this.beAllDataCopy)&&(a=this.handleSearchedValue(this.searchValue),e.forEach(function(e){var t;"local"==e.category&&(t=(e.name+" "+e.label+" "+e.source).toLowerCase(),e.hide=1==t.includes(a)?!e.hide:e.hide)}),this.beData=s.cloneDeep(e)))},f.prototype.getUniqueData=function(e){if(e){for(var t=s.cloneDeep(e),a=0;a<t.length;a++)for(var n=a+1;n<t.length;n++)t[a].id==t[n].id&&(t.splice(n,1),n--);e=s.cloneDeep(t)}return e},f.prototype.reinvokeInterface=function(e){var t=this;if(e.page){var a,n,i,o,e=e.page.total||0;if(1e3<e)return this.loadingService&&(a=this.loadingService.show({container:"body",message:"加载中,请稍候..."})),n=this.injector.get(d.HttpClient),i=this.editorParams.relativePath||"",o=this.editorParams.source||"be",n.get("/api/dev/main/v1.0/mdservice/unionmdlist?path="+i+"&pageIndex=1&pageSize="+e+"&metadataTypeList=."+o,{headers:new d.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(r.tap(function(e){t.loadingService&&a.close(),t.beAllData=s.cloneDeep(t.getFormData(e,"all")),t.beAllDataCopy=s.cloneDeep(t.beAllData)}),r.catchError(function(e){return t.loadingService&&a.close(),e&&e.error&&t.messageService&&t.messageService.exception(e.error),c.EMPTY})).subscribe()}},f.decorators=[{type:i.Component,args:[{selector:"farris-appNavigationBe",template:'<div class="f-navBe">\n <div class="f-navBe-header">\n <div class="f-navBe-recent" (click)="showRecommandData()">\n <div [ngClass]="{\'f-navBe-recent-text-focus\':chooseRecommand,\'f-navBe-recent-text\':!chooseRecommand}">\n 推荐</div>\n </div>\n <div class="f-navBe-allData" (click)="showAllData()">\n <div [ngClass]="{\'f-navBe-allData-text-focus\':!chooseRecommand,\'f-navBe-allData-text\':chooseRecommand}">\n 全部</div>\n </div>\n <div class="f-navBe-remainder">\n <div class="f-navBe-search">\n <input-group [groupText]="groupIcon" [(value)]="searchValue"\n (clickHandle)="onSearchValueChanged($event)" (valueChange)="onSearchValueChanged($event)"\n (clear)="onClear()" placeholder="请输入名称/编号搜索" style="font-size:2px;"></input-group>\n </div>\n </div>\n </div>\n <div class="f-navBe-content" *ngIf="chooseRecommand && !noRecommandData">\n <div class="f-navBe-content-recent" *ngIf="chooseRecommand && !recentFoldIn">\n <div class="f-navBe-recentHeader" *ngIf="showRecent" (click)="foldInRecent()">\n <div *ngIf="foldRecent" class="f-icon f-icon-arrow-60-right"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div *ngIf="!foldRecent" class="f-icon f-icon-arrow-60-down"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div class="f-navBe-recommandLabel">最近使用</div>\n </div>\n <ng-container *ngFor="let beDataItem of beData">\n <ng-container *ngIf="!beDataItem.hide && beDataItem.category == \'recent\'">\n <div [ngClass]="{\'f-navBe-item\':!beDataItem.active,\'f-navBe-item-active\':beDataItem.active}"\n (click)="getBeDataItem(beDataItem)">\n <div class="f-navBe-itemIcon">\n <div class="f-icon f-icon-window"\n style="color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;">\n </div>\n </div>\n <div class="f-navBe-name">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class="f-navBe-source">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class="f-navBe-content-local" *ngIf="chooseRecommand && !localFoldIn">\n <div class="f-navBe-localHeader" *ngIf="showLocal" (click)="foldInLocal()">\n <div *ngIf="foldLocal" class="f-icon f-icon-arrow-60-right"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div *ngIf="!foldLocal" class="f-icon f-icon-arrow-60-down"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div class="f-navBe-recommandLabel">本地元数据</div>\n </div>\n <ng-container *ngFor="let beDataItem of beData">\n <ng-container *ngIf="!beDataItem.hide && beDataItem.category == \'local\'">\n <div [ngClass]="{\'f-navBe-item\':!beDataItem.active,\'f-navBe-item-active\':beDataItem.active}"\n (click)="getBeDataItem(beDataItem)">\n <div class="f-navBe-itemIcon">\n <div class="f-icon f-icon-window"\n style="color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;">\n </div>\n </div>\n <div class="f-navBe-name">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class="f-navBe-source">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n \x3c!-- 推荐没有数据时的显示内容--\x3e\n <div class="f-navBe-content1"\n style="width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;"\n *ngIf="chooseRecommand && noRecommandData">\n <div> 未查询到符合条件的数据 </div>\n </div>\n <div class="f-navBe-content2" *ngIf="!chooseRecommand && !noAllData">\n <div *ngFor="let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)">\n <ng-container *ngIf="!beDataItem.hide">\n <div [ngClass]="{\'f-navBe-item\':!beDataItem.active,\'f-navBe-item-active\':beDataItem.active}"\n (click)="getBeDataItem(beDataItem)">\n <div class="f-navBe-itemIcon">\n <div class="f-icon f-icon-window"\n style="color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;">\n </div>\n </div>\n <div class="f-navBe-name">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class="f-navBe-source">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf="supportPaging" class="f-navBe-content2-paging">\n <pagination-controls #pager [id]="paginationOptions?.id" [maxSize]="pagerLabelSize" [directionLinks]="true"\n [autoHide]="false" [responsive]="true" [previousLabel]="\' \'" [nextLabel]="\' \'"\n [showPageInfo]="showPageInfo" [showPageNumber]="showPageNumber" [showPageList]="showPageList"\n (pageChange)="onPageChange($event)">\n </pagination-controls>\n </div>\n </div>\n \x3c!-- 全部没有数据时的显示内容--\x3e\n <div class="f-navBe-content3"\n style="width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; "\n *ngIf="!chooseRecommand && noAllData">\n <div> 未查询到符合条件的数据 </div>\n </div>\n</div>\n\x3c!-- 底部区域 --\x3e\n<div class="f-page-bottom">\n <div class="f-page-button">\n <div class="f-page-cancel-btn" (click)="clickCancel()">\n <span class="textCancel">取消</span>\n </div>\n <div class="f-page-sure-btn" (click)="clickConfirm()">\n <span class="textSure">确定</span>\n </div>\n </div>\n</div>',styles:[":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;position:absolute;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 50px)}.f-navBe-content2{width:100%;min-width:400px;margin-top:44px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-recent{width:100%;min-width:400px;margin-top:44px}.f-navBe-content-local{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]}]}],f.ctorParameters=function(){return[{type:i.Injector},{type:t.NotifyService},{type:a.LoadingService},{type:n.MessagerService}]},f.propDecorators={editorParams:[{type:i.Input}],closeModal:[{type:i.Output}],submitModal:[{type:i.Output}],modalFooter:[{type:i.ViewChild,args:["footer"]}]};var h=f;function f(e,t,a,n){this.injector=e,this.notifyService=t,this.loadingService=a,this.messageService=n,this.closeModal=new i.EventEmitter,this.submitModal=new i.EventEmitter,this.groupIcon='<span class="k-icon k-i-search"></span>',this.chooseRecommand=!0,this.recentFoldIn=!1,this.localFoldIn=!1,this.relativePath="",this.isDeisgnerEnv=!0,this.foldLocal=!1,this.foldRecent=!1,this.pagerOnServer=!1,this.pageList=[20,50,100],this.pageIndex=1,this.pageSize=20,this.pagerHeight=56,this.showPageList=!1,this.showPageInfo=!0,this.showPageNumber=!0,this.pagerLabelSize=7,this.total=0,this.supportPaging=!0,this.modalConfig={title:"选择业务实体",width:900,height:500,resizable:!0,showButtons:!1,showMaxButton:!1,minWidth:650,minHeight:300},this.showLocal=!0,this.showRecent=!0,this.noRecommandData=!1,this.noAllData=!1,this.paginationOptions={id:"Farris-beMetadata-Pagination_",itemsPerPage:this.pageSize,currentPage:this.pageIndex,pageList:this.pageList,totalItems:this.total,remote:this.pagerOnServer}}g.decorators=[{type:i.NgModule,args:[{declarations:[h],imports:[o.CommonModule,l.InputGroupModule,d.HttpClientModule,p.PaginationModule],exports:[h]}]}];o=g;function g(){}e.AppNavigationBeComponent=h,e.AppNavigationBeModule=o,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("lodash-es"),require("rxjs/operators"),require("rxjs"),require("@angular/core"),require("@angular/common"),require("@farris/ui-input-group"),require("@angular/common/http"),require("@farris/ui-pagination"),require("@farris/ui-notify"),require("@farris/ui-loading"),require("@farris/ui-messager"),require("@farris/ui-locale")):"function"==typeof define&&define.amd?define("@farris/app-navigation-be",["exports","lodash-es","rxjs/operators","rxjs","@angular/core","@angular/common","@farris/ui-input-group","@angular/common/http","@farris/ui-pagination","@farris/ui-notify","@farris/ui-loading","@farris/ui-messager","@farris/ui-locale"],a):a((e.farris=e.farris||{},e.farris["app-navigation-be"]={}),e.lodashEs,e.rxjs.operators,e.rxjs,e.ng.core,e.ng.common,e.uiInputGroup,e.ng.common.http,e.uiPagination,e.uiNotify,e.uiLoading,e.uiMessager,e.uiLocale)}(this,function(e,c,s,r,i,a,t,l,n,o,d,p,h){"use strict";var f={"zh-CHS":{beMetadata:{recommand:"推荐",all:"全部",search:"请输入名称/编号搜索",recent:"最近使用",localData:"本地元数据",noRecommandData:"未查询到符合条件的数据",cancelBtn:"取消",sureBtn:"确定",loading:"加载中,请稍候...",topic:"选择业务实体",noBeDataSelected:"未选择业务实体",noVoDataSelected:"未选择视图对象",noQoDataSelected:"未选择查询对象",noWebcmpDataSelected:"未选择Web构件",noDataSelected:"未选择元数据"}},"zh-CHT":{beMetadata:{recommand:"推薦",all:"全部",search:"請輸入編號/名稱搜索",recent:"最近使用",localData:"本地元數據",noRecommandData:"未查詢到符合條件的數據",cancelBtn:"取消",sureBtn:"確定",loading:"加載中,請稍候...",topic:"選擇業務實體",noBeDataSelected:"未選擇業務實體",noVoDataSelected:"未選擇視圖對象",noQoDataSelected:"未選擇查詢對象",noWebcmpDataSelected:"未選擇Web構件",noDataSelected:"未選擇元數據"}},en:{beMetadata:{recommand:"Recommand",all:"All",search:"Search property code or name",recent:"Recent",localData:"Local Metadata",noRecommandData:"No data that meets the requirements was queried",cancelBtn:"Cancel",sureBtn:"OK",loading:"Loading, please wait...",topic:"Choose BE Metadata",noBeDataSelected:"No bedata selected",noVoDataSelected:"No vodata selected",noQoDataSelected:"No qodata selected",noWebcmpDataSelected:"No webcmpdata selected",noDataSelected:"No data selected"}}},g=(m.prototype.setLocaleData=function(){this.localeService&&this.localeService.langData&&!this.localeService.langData.beMetadata&&this.localeService.setLocaleData(f),this.localeId=window.top.localStorage.languageCode||"zh-CHS"},m.prototype.ngOnInit=function(){this.beData=[],this.modalConfig=this.editorParams.modalConfig||this.modalConfig,this.envType=this.editorParams.envType||"designer",this.getAllDataInfo(),this.getRecentDataInfo(),this.getRecommandDataInfo(),this.chooseRecommand=!0,this.onSearchValueChanged("")},m.prototype.onPageChange=function(e){this.pageIndex!==e.pageIndex&&(this.pageIndex=e.pageIndex,this.paginationOptions.currentPage=e.pageIndex)},m.prototype.getAllDataInfo=function(){var a=this,t=this.loadingData(),e=this.injector.get(l.HttpClient),n=this.editorParams.relativePath||"",o=this.editorParams.source||"be";return e.get("/api/dev/main/v1.0/mdservice/unionmdlist?path="+n+"&pageIndex=1&pageSize=1000&metadataTypeList=."+o,{headers:new l.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(s.tap(function(e){t&&t.close(),a.reinvokeInterface(e),a.beAllData=c.cloneDeep(a.getFormData(e,"all")),a.beAllDataCopy=c.cloneDeep(a.beAllData)}),s.catchError(function(e){return t&&t.close(),e&&a.messageService&&a.messageService.exception(e),r.EMPTY})).subscribe()},m.prototype.loadingData=function(){return this.loadingService||(this.loadingService=this.injector.get(d.LoadingService)),this.loadingService.show({container:"body",message:f[this.localeId].beMetadata.loading})},m.prototype.getRecentDataInfo=function(){var a=this,t=this.loadingData(),e=this.injector.get(l.HttpClient),n=this.editorParams.relativePath||"",o="path="+n,n="/"==n[0]?n.split("/")[1]:n.split("/")[0],i=this.editorParams.source||"be",n="noCode"==this.envType?"appId="+n:o;return e.get("/api/dev/main/v1.0/mdservice/getmdrecentuse?"+n+"&metadataTypeList=."+i,{headers:new l.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(s.tap(function(e){t&&t.close(),a.beRecentData=c.cloneDeep(a.getFormData(e,"recent")),a.beRecentData&&a.beRecentData.length&&(a.showRecommandData(),a.getUniqueData(a.beData))}),s.catchError(function(e){return t&&a.loading.close(),e&&a.messageService&&a.messageService.exception(e),r.EMPTY})).subscribe()},m.prototype.getRecommandDataInfo=function(){var a=this,t=this.loadingData(),e=this.editorParams.range||"Bo",n=this.injector.get(l.HttpClient),o=this.editorParams.relativePath||"",i=this.editorParams.source||"be";return n.get("/api/dev/main/v1.0/mdservice/metadataListIn"+e+"?path="+o+"&metadataTypeList=."+i,{headers:new l.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(s.tap(function(e){t&&t.close(),a.beRecommandData=c.cloneDeep(a.getFormData(e,"local")),a.beRecommandData&&a.beRecommandData.length&&(a.showRecommandData(),a.getUniqueData(a.beData))}),s.catchError(function(e){return a.loading&&a.loading.close(),e&&a.messageService&&a.messageService.exception(e),r.EMPTY})).subscribe()},m.prototype.getFormData=function(e,t){var n=[],e=e.metadataIndexItems||e;return e&&e.forEach(function(e,a){e.nameSpace.includes("Inspur.GS.Gsp.Mobile")||(a={id:a,name:e.name,label:e.code,source:e.nameSpace,hide:!1,active:!1,data:e,category:t},n.push(a))}),n},m.prototype.showRecommandData=function(){var a=this;this.selectedCommand=undefined,this.unfoldData(),this.chooseRecommand=!0,this.beData=[],this.foldRecent=!1,this.beRecommandData&&this.beRecommandData.length&&this.beRecommandData.forEach(function(e){a.beData.push(c.cloneDeep(e))}),this.beRecentData&&this.beRecentData.length&&this.beRecentData.forEach(function(e){a.beData.push(c.cloneDeep(e))}),this.getUniqueData(this.beData),this.beData=this.onSearchValueChanged(this.searchValue)},m.prototype.showAllData=function(){this.selectedCommand=undefined,this.unfoldData(),this.beData=c.cloneDeep(this.beAllData),this.chooseRecommand=!1,this.foldRecent=!1,this.beData=this.onSearchValueChanged(this.searchValue)},m.prototype.unfoldData=function(){this.foldLocal=!1,this.foldRecent=!1},m.prototype.handleSearchedValue=function(e){e=(e=e==undefined?"":e).originalEvent!=undefined?e.value||"":e,this.searchValue=e,this.supportPaging=""==this.searchValue;e=e.replace(/ /g,"").replace(/>/g,"");return e=(e=""==e?" ":e).toLowerCase()},m.prototype.checkValueExists=function(e,a){var t=e.find(function(e){return"local"==e.category&&(e.name+" "+e.label+" "+e.source).toLowerCase().includes(a)}),n=e.find(function(e){return"recent"==e.category&&(e.name+" "+e.label+" "+e.source).toLowerCase().includes(a)}),e=e.find(function(e){return(e.name+" "+e.label+" "+e.source).toLowerCase().includes(a)});this.showLocal=!!t,this.showRecent=!!n,this.noRecommandData=!this.showLocal&&!this.showRecent,this.noAllData=!e},m.prototype.onSearchValueChanged=function(e){this.unfoldData();var t,a=this.chooseRecommand?this.beData:this.beAllDataCopy;return a&&(t=this.handleSearchedValue(e),this.checkValueExists(a,t),a.forEach(function(e){var a=(e.name+" "+e.label+" "+e.source).toLowerCase();e.hide=0==a.includes(t)})),this.beData=c.cloneDeep(a),this.beData},m.prototype.getBeDataItem=function(a){var t=this;this.beData.forEach(function(e){a.data.code==e.data.code&&a.data.nameSpace==e.data.nameSpace?(e.active=!e.active,t.selectedCommand=c.cloneDeep(a)):e.active=!1})},m.prototype.clickConfirm=function(){var a,e,t,n,o=this;if(this.selectedCommand&&this.selectedCommand.active)return a=this.loadingData(),e=this.injector.get(l.HttpClient),i="/api/dev/main/v1.0/mdservice/pickMetadata?currentPath="+(this.editorParams.relativePath||""),t=this.selectedCommand.data,n={headers:new l.HttpHeaders({"Content-Type":"application/json"})},e.post(i,t,n).pipe(s.tap(function(e){a&&a.close(),e.metadata.processMode="interpretation"===o.selectedCommand.data.processMode?"interpretation":"general",o.submitModal.emit(e)}),s.catchError(function(e){return a&&a.close(),e&&e.error&&o.messageService&&o.messageService.exception(e.error),r.EMPTY})).subscribe();var i=this.editorParams.source;if(this.notifyService)switch(i){case"be":this.notifyService.info(f[this.localeId].beMetadata.noBeDataSelected);break;case"vo":this.notifyService.info(f[this.localeId].beMetadata.noVoDataSelected);break;case"qo":this.notifyService.info(f[this.localeId].beMetadata.noQoDataSelected);break;case"webcmp":this.notifyService.info(f[this.localeId].beMetadata.noWebcmpDataSelected);break;default:this.notifyService.info(f[this.localeId].beMetadata.noDataSelected)}return null},m.prototype.onClear=function(){this.unfoldData(),this.beData=this.onSearchValueChanged("")},m.prototype.clickCancel=function(){this.closeModal.emit()},m.prototype.foldInRecent=function(){var e,t;this.beData&&(this.foldRecent=!this.foldRecent,(e=this.chooseRecommand?this.beData:this.beAllDataCopy)&&(t=this.handleSearchedValue(this.searchValue),e.forEach(function(e){var a;"recent"==e.category&&(a=(e.name+" "+e.label+" "+e.source).toLowerCase(),e.hide=1==a.includes(t)?!e.hide:e.hide)}),this.beData=c.cloneDeep(e)))},m.prototype.foldInLocal=function(){var e,t;this.beData&&(this.foldLocal=!this.foldLocal,(e=this.chooseRecommand?this.beData:this.beAllDataCopy)&&(t=this.handleSearchedValue(this.searchValue),e.forEach(function(e){var a;"local"==e.category&&(a=(e.name+" "+e.label+" "+e.source).toLowerCase(),e.hide=1==a.includes(t)?!e.hide:e.hide)}),this.beData=c.cloneDeep(e)))},m.prototype.getUniqueData=function(e){if(e){for(var a=c.cloneDeep(e),t=0;t<a.length;t++)for(var n=t+1;n<a.length;n++)a[t].id==a[n].id&&(a.splice(n,1),n--);e=c.cloneDeep(a)}return e},m.prototype.reinvokeInterface=function(e){var a=this;if(e.page){var t,n,o,i,e=e.page.total||0;if(1e3<e)return t=this.loadingData(),n=this.injector.get(l.HttpClient),o=this.editorParams.relativePath||"",i=this.editorParams.source||"be",n.get("/api/dev/main/v1.0/mdservice/unionmdlist?path="+o+"&pageIndex=1&pageSize="+e+"&metadataTypeList=."+i,{headers:new l.HttpHeaders({"Content-Type":"application/json"}),responseType:"json"}).pipe(s.tap(function(e){t&&t.close(),a.beAllData=c.cloneDeep(a.getFormData(e,"all")),a.beAllDataCopy=c.cloneDeep(a.beAllData)}),s.catchError(function(e){return t&&t.close(),e&&e.error&&a.messageService&&a.messageService.exception(e.error),r.EMPTY})).subscribe()}},m.decorators=[{type:i.Component,args:[{selector:"farris-appNavigationBe",template:'<div class="f-navBe">\n <div class="f-navBe-header">\n <div class="f-navBe-recent" (click)="showRecommandData()">\n <div [ngClass]="{\'f-navBe-recent-text-focus\':chooseRecommand,\'f-navBe-recent-text\':!chooseRecommand}">\n {{ beMetadataLocale[localeId].beMetadata.recommand}}</div>\n </div>\n <div class="f-navBe-allData" (click)="showAllData()">\n <div [ngClass]="{\'f-navBe-allData-text-focus\':!chooseRecommand,\'f-navBe-allData-text\':chooseRecommand}">\n {{ beMetadataLocale[localeId].beMetadata.all }}</div>\n </div>\n <div class="f-navBe-remainder">\n <div class="f-navBe-search">\n <input-group [groupText]="groupIcon" [(value)]="searchValue"\n (clickHandle)="onSearchValueChanged($event)" (valueChange)="onSearchValueChanged($event)"\n (clear)="onClear()" placeholder="{{ beMetadataLocale[localeId].beMetadata.search }}"\n style="font-size:2px;"></input-group>\n </div>\n </div>\n </div>\n <div class="f-navBe-content" *ngIf="chooseRecommand && !noRecommandData">\n <div class="f-navBe-content-recent" *ngIf="chooseRecommand && !recentFoldIn">\n <div class="f-navBe-recentHeader" *ngIf="showRecent" (click)="foldInRecent()">\n <div *ngIf="foldRecent" class="f-icon f-icon-arrow-60-right"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div *ngIf="!foldRecent" class="f-icon f-icon-arrow-60-down"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div class="f-navBe-recommandLabel">{{ beMetadataLocale[localeId].beMetadata.recent }}</div>\n </div>\n <ng-container *ngFor="let beDataItem of beData">\n <ng-container *ngIf="!beDataItem.hide && beDataItem.category == \'recent\'">\n <div [ngClass]="{\'f-navBe-item\':!beDataItem.active,\'f-navBe-item-active\':beDataItem.active}"\n (click)="getBeDataItem(beDataItem)">\n <div class="f-navBe-itemIcon">\n <div class="f-icon f-icon-window"\n style="color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;">\n </div>\n </div>\n <div class="f-navBe-name">\n \x3c!-- {{localeId == \'en\' ? beDataItem.label:\n beDataItem.name + \'(\' + beDataItem.label + \')\'}} --\x3e\n {{ beDataItem.name ?\n beDataItem.name + \'(\' + beDataItem.label + \')\':\n beDataItem.label}}\n </div>\n <div class="f-navBe-source">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class="f-navBe-content-local" *ngIf="chooseRecommand && !localFoldIn">\n <div class="f-navBe-localHeader" *ngIf="showLocal" (click)="foldInLocal()">\n <div *ngIf="foldLocal" class="f-icon f-icon-arrow-60-right"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div *ngIf="!foldLocal" class="f-icon f-icon-arrow-60-down"\n style="color:#6E7088;font-size:12px;margin:0px 7px 0 0;"></div>\n <div class="f-navBe-recommandLabel">{{ beMetadataLocale[localeId].beMetadata.localData }}</div>\n </div>\n <ng-container *ngFor="let beDataItem of beData">\n <ng-container *ngIf="!beDataItem.hide && beDataItem.category == \'local\'">\n <div [ngClass]="{\'f-navBe-item\':!beDataItem.active,\'f-navBe-item-active\':beDataItem.active}"\n (click)="getBeDataItem(beDataItem)">\n <div class="f-navBe-itemIcon">\n <div class="f-icon f-icon-window"\n style="color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;">\n </div>\n </div>\n <div class="f-navBe-name">\n \x3c!-- {{localeId == \'en\' ? beDataItem.label:\n beDataItem.name + \'(\' + beDataItem.label + \')\'}} --\x3e\n {{ beDataItem.name ?\n beDataItem.name + \'(\' + beDataItem.label + \')\':\n beDataItem.label}}\n </div>\n <div class="f-navBe-source">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n \x3c!-- 推荐没有数据时的显示内容--\x3e\n <div class="f-navBe-content1"\n style="width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;"\n *ngIf="chooseRecommand && noRecommandData">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n <div class="f-navBe-content2" *ngIf="!chooseRecommand && !noAllData">\n <div *ngFor="let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)">\n <ng-container *ngIf="!beDataItem.hide">\n <div [ngClass]="{\'f-navBe-item\':!beDataItem.active,\'f-navBe-item-active\':beDataItem.active}"\n (click)="getBeDataItem(beDataItem)">\n <div class="f-navBe-itemIcon">\n <div class="f-icon f-icon-window"\n style="color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;">\n </div>\n </div>\n <div class="f-navBe-name">\n \x3c!-- {{localeId == \'en\' ? beDataItem.label:\n beDataItem.name + \'(\' + beDataItem.label + \')\'}} --\x3e\n {{ beDataItem.name ?\n beDataItem.name + \'(\' + beDataItem.label + \')\':\n beDataItem.label}}\n </div>\n <div class="f-navBe-source">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf="supportPaging" class="f-navBe-content2-paging">\n <pagination-controls #pager [id]="paginationOptions?.id" [maxSize]="pagerLabelSize" [directionLinks]="true"\n [autoHide]="false" [responsive]="true" [previousLabel]="\' \'" [nextLabel]="\' \'"\n [showPageInfo]="showPageInfo" [showPageNumber]="showPageNumber" [showPageList]="showPageList"\n (pageChange)="onPageChange($event)">\n </pagination-controls>\n </div>\n </div>\n \x3c!-- 全部没有数据时的显示内容--\x3e\n <div class="f-navBe-content3"\n style="width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; "\n *ngIf="!chooseRecommand && noAllData">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n</div>\n\x3c!-- 底部区域 --\x3e\n<div class="f-page-bottom">\n <div class="f-page-button">\n <div class="f-page-cancel-btn" (click)="clickCancel()">\n <span class="textCancel">{{ beMetadataLocale[localeId].beMetadata.cancelBtn }}</span>\n </div>\n <div class="f-page-sure-btn" (click)="clickConfirm()">\n <span class="textSure">{{ beMetadataLocale[localeId].beMetadata.sureBtn }}</span>\n </div>\n </div>\n</div>',styles:[":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-recent-text-focus{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 100px)}.f-navBe-content2{width:100%;min-width:400px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-local,.f-navBe-content-recent{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]}]}],m.ctorParameters=function(){return[{type:i.Injector},{type:o.NotifyService},{type:d.LoadingService},{type:p.MessagerService},{type:h.LocaleService}]},m.propDecorators={editorParams:[{type:i.Input}],closeModal:[{type:i.Output}],submitModal:[{type:i.Output}],modalFooter:[{type:i.ViewChild,args:["footer"]}]},m);function m(e,a,t,n,o){this.injector=e,this.notifyService=a,this.loadingService=t,this.messageService=n,this.localeService=o,this.closeModal=new i.EventEmitter,this.submitModal=new i.EventEmitter,this.groupIcon='<span class="k-icon k-i-search"></span>',this.chooseRecommand=!0,this.recentFoldIn=!1,this.localFoldIn=!1,this.relativePath="",this.isDeisgnerEnv=!0,this.foldLocal=!1,this.foldRecent=!1,this.pagerOnServer=!1,this.pageList=[20,50,100],this.pageIndex=1,this.pageSize=20,this.pagerHeight=56,this.showPageList=!1,this.showPageInfo=!0,this.showPageNumber=!0,this.pagerLabelSize=7,this.total=0,this.supportPaging=!0,this.localeId="zh-CHS",this.modalConfig={title:f[this.localeId].beMetadata.topic,width:900,height:500,resizable:!0,showButtons:!1,showMaxButton:!1,minWidth:650,minHeight:300},this.showLocal=!0,this.showRecent=!0,this.noRecommandData=!1,this.noAllData=!1,this.beMetadataLocale=f,this.paginationOptions={id:"Farris-beMetadata-Pagination_",itemsPerPage:this.pageSize,currentPage:this.pageIndex,pageList:this.pageList,totalItems:this.total,remote:this.pagerOnServer},this.setLocaleData()}var u=localStorage.getItem("languageCode")||"zh-CHS",a=(v.decorators=[{type:i.NgModule,args:[{declarations:[g],imports:[a.CommonModule,t.InputGroupModule,l.HttpClientModule,n.PaginationModule,d.LoadingModule.forRoot({message:"加载中,请稍候..."}),p.MessagerModule,o.NotifyModule.forRoot(),h.LocaleModule.forRoot("")],exports:[g],providers:[{provide:i.LOCALE_ID,useValue:u}]}]}],v);function v(){}e.AppNavigationBeComponent=g,e.AppNavigationBeModule=a,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=farris-app-navigation-be.umd.min.js.map

@@ -6,3 +6,3 @@ /**

*/
import { NgModule } from '@angular/core';
import { NgModule, LOCALE_ID } from '@angular/core';
import { AppNavigationBeComponent } from './app-navigation-be.component';

@@ -13,2 +13,7 @@ import { CommonModule } from '@angular/common';

import { PaginationModule } from '@farris/ui-pagination';
import { NotifyModule } from '@farris/ui-notify';
import { LoadingModule } from '@farris/ui-loading';
import { MessagerModule } from '@farris/ui-messager';
import { LocaleModule } from '@farris/ui-locale';
const ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
export class AppNavigationBeModule {

@@ -23,8 +28,16 @@ }

HttpClientModule,
PaginationModule
PaginationModule,
LoadingModule.forRoot({ message: '加载中,请稍候...' }),
MessagerModule,
NotifyModule.forRoot(),
LocaleModule.forRoot('')
],
// entryComponents: [PaginationControlsComponent],
exports: [AppNavigationBeComponent]
exports: [AppNavigationBeComponent],
providers: [
{ provide: LOCALE_ID, useValue: ɵ0 }
]
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLW5hdmlnYXRpb24tYmUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGZhcnJpcy9hcHAtbmF2aWdhdGlvbi1iZS8iLCJzb3VyY2VzIjpbImxpYi9hcHAtbmF2aWdhdGlvbi1iZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQWF6RCxNQUFNLE9BQU8scUJBQXFCOzs7WUFYakMsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRSxDQUFDLHdCQUF3QixDQUFDO2dCQUN4QyxPQUFPLEVBQUU7b0JBQ1AsWUFBWTtvQkFDWixnQkFBZ0I7b0JBQ2hCLGdCQUFnQjtvQkFDaEIsZ0JBQWdCO2lCQUNqQjs7Z0JBRUQsT0FBTyxFQUFFLENBQUMsd0JBQXdCLENBQUM7YUFDcEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQXBwTmF2aWdhdGlvbkJlQ29tcG9uZW50IH0gZnJvbSAnLi9hcHAtbmF2aWdhdGlvbi1iZS5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IElucHV0R3JvdXBNb2R1bGUgfSBmcm9tICdAZmFycmlzL3VpLWlucHV0LWdyb3VwJztcbmltcG9ydCB7IEh0dHBDbGllbnRNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24vaHR0cCc7XG5pbXBvcnQgeyBQYWdpbmF0aW9uTW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1wYWdpbmF0aW9uJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbQXBwTmF2aWdhdGlvbkJlQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBJbnB1dEdyb3VwTW9kdWxlLFxuICAgIEh0dHBDbGllbnRNb2R1bGUsXG4gICAgUGFnaW5hdGlvbk1vZHVsZVxuICBdLFxuICAvLyBlbnRyeUNvbXBvbmVudHM6IFtQYWdpbmF0aW9uQ29udHJvbHNDb21wb25lbnRdLFxuICBleHBvcnRzOiBbQXBwTmF2aWdhdGlvbkJlQ29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBBcHBOYXZpZ2F0aW9uQmVNb2R1bGUgeyB9XG4iXX0=
export { ɵ0 };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLW5hdmlnYXRpb24tYmUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGZhcnJpcy9hcHAtbmF2aWdhdGlvbi1iZS8iLCJzb3VyY2VzIjpbImxpYi9hcHAtbmF2aWdhdGlvbi1iZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN6RSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDekQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNuRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO1dBaUJiLFlBQVksQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLElBQUksUUFBUTtBQUdwRixNQUFNLE9BQU8scUJBQXFCOzs7WUFsQmpDLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsQ0FBQyx3QkFBd0IsQ0FBQztnQkFDeEMsT0FBTyxFQUFFO29CQUNQLFlBQVk7b0JBQ1osZ0JBQWdCO29CQUNoQixnQkFBZ0I7b0JBQ2hCLGdCQUFnQjtvQkFDaEIsYUFBYSxDQUFDLE9BQU8sQ0FBQyxFQUFFLE9BQU8sRUFBRSxZQUFZLEVBQUUsQ0FBQztvQkFDaEQsY0FBYztvQkFDZCxZQUFZLENBQUMsT0FBTyxFQUFFO29CQUN0QixZQUFZLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQztpQkFDekI7O2dCQUVELE9BQU8sRUFBRSxDQUFDLHdCQUF3QixDQUFDO2dCQUNuQyxTQUFTLEVBQUU7b0JBQ1QsRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLFFBQVEsSUFBa0QsRUFBRTtpQkFDbkY7YUFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlLCBMT0NBTEVfSUQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEFwcE5hdmlnYXRpb25CZUNvbXBvbmVudCB9IGZyb20gJy4vYXBwLW5hdmlnYXRpb24tYmUuY29tcG9uZW50JztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBJbnB1dEdyb3VwTW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1pbnB1dC1ncm91cCc7XG5pbXBvcnQgeyBIdHRwQ2xpZW50TW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uL2h0dHAnO1xuaW1wb3J0IHsgUGFnaW5hdGlvbk1vZHVsZSB9IGZyb20gJ0BmYXJyaXMvdWktcGFnaW5hdGlvbic7XG5pbXBvcnQgeyBOb3RpZnlNb2R1bGUgfSBmcm9tICdAZmFycmlzL3VpLW5vdGlmeSc7XG5pbXBvcnQgeyBMb2FkaW5nTW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1sb2FkaW5nJztcbmltcG9ydCB7IE1lc3NhZ2VyTW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1tZXNzYWdlcic7XG5pbXBvcnQgeyBMb2NhbGVNb2R1bGUgfSBmcm9tICdAZmFycmlzL3VpLWxvY2FsZSc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0FwcE5hdmlnYXRpb25CZUNvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgSW5wdXRHcm91cE1vZHVsZSxcbiAgICBIdHRwQ2xpZW50TW9kdWxlLFxuICAgIFBhZ2luYXRpb25Nb2R1bGUsXG4gICAgTG9hZGluZ01vZHVsZS5mb3JSb290KHsgbWVzc2FnZTogJ+WKoOi9veS4re+8jOivt+eojeWAmS4uLicgfSksXG4gICAgTWVzc2FnZXJNb2R1bGUsXG4gICAgTm90aWZ5TW9kdWxlLmZvclJvb3QoKSxcbiAgICBMb2NhbGVNb2R1bGUuZm9yUm9vdCgnJylcbiAgXSxcbiAgLy8gZW50cnlDb21wb25lbnRzOiBbUGFnaW5hdGlvbkNvbnRyb2xzQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW0FwcE5hdmlnYXRpb25CZUNvbXBvbmVudF0sXG4gIHByb3ZpZGVyczogW1xuICAgIHsgcHJvdmlkZTogTE9DQUxFX0lELCB1c2VWYWx1ZTogbG9jYWxTdG9yYWdlLmdldEl0ZW0oJ2xhbmd1YWdlQ29kZScpIHx8ICd6aC1DSFMnIH1cbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBBcHBOYXZpZ2F0aW9uQmVNb2R1bGUgeyB9XG4iXX0=

@@ -6,3 +6,3 @@ /**

*/
import { NgModule } from '@angular/core';
import { NgModule, LOCALE_ID } from '@angular/core';
import { AppNavigationBeComponent } from './app-navigation-be.component';

@@ -13,2 +13,7 @@ import { CommonModule } from '@angular/common';

import { PaginationModule } from '@farris/ui-pagination';
import { NotifyModule } from '@farris/ui-notify';
import { LoadingModule } from '@farris/ui-loading';
import { MessagerModule } from '@farris/ui-messager';
import { LocaleModule } from '@farris/ui-locale';
var ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
var AppNavigationBeModule = /** @class */ (function () {

@@ -24,6 +29,13 @@ function AppNavigationBeModule() {

HttpClientModule,
PaginationModule
PaginationModule,
LoadingModule.forRoot({ message: '加载中,请稍候...' }),
MessagerModule,
NotifyModule.forRoot(),
LocaleModule.forRoot('')
],
// entryComponents: [PaginationControlsComponent],
exports: [AppNavigationBeComponent]
exports: [AppNavigationBeComponent],
providers: [
{ provide: LOCALE_ID, useValue: ɵ0 }
]
},] }

@@ -34,2 +46,3 @@ ];

export { AppNavigationBeModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLW5hdmlnYXRpb24tYmUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGZhcnJpcy9hcHAtbmF2aWdhdGlvbi1iZS8iLCJzb3VyY2VzIjpbImxpYi9hcHAtbmF2aWdhdGlvbi1iZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUV6RDtJQUFBO0lBV3FDLENBQUM7O2dCQVhyQyxRQUFRLFNBQUM7b0JBQ1IsWUFBWSxFQUFFLENBQUMsd0JBQXdCLENBQUM7b0JBQ3hDLE9BQU8sRUFBRTt3QkFDUCxZQUFZO3dCQUNaLGdCQUFnQjt3QkFDaEIsZ0JBQWdCO3dCQUNoQixnQkFBZ0I7cUJBQ2pCOztvQkFFRCxPQUFPLEVBQUUsQ0FBQyx3QkFBd0IsQ0FBQztpQkFDcEM7O0lBQ29DLDRCQUFDO0NBQUEsQUFYdEMsSUFXc0M7U0FBekIscUJBQXFCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEFwcE5hdmlnYXRpb25CZUNvbXBvbmVudCB9IGZyb20gJy4vYXBwLW5hdmlnYXRpb24tYmUuY29tcG9uZW50JztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBJbnB1dEdyb3VwTW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1pbnB1dC1ncm91cCc7XG5pbXBvcnQgeyBIdHRwQ2xpZW50TW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uL2h0dHAnO1xuaW1wb3J0IHsgUGFnaW5hdGlvbk1vZHVsZSB9IGZyb20gJ0BmYXJyaXMvdWktcGFnaW5hdGlvbic7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0FwcE5hdmlnYXRpb25CZUNvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgSW5wdXRHcm91cE1vZHVsZSxcbiAgICBIdHRwQ2xpZW50TW9kdWxlLFxuICAgIFBhZ2luYXRpb25Nb2R1bGVcbiAgXSxcbiAgLy8gZW50cnlDb21wb25lbnRzOiBbUGFnaW5hdGlvbkNvbnRyb2xzQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW0FwcE5hdmlnYXRpb25CZUNvbXBvbmVudF1cbn0pXG5leHBvcnQgY2xhc3MgQXBwTmF2aWdhdGlvbkJlTW9kdWxlIHsgfVxuIl19
export { ɵ0 };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLW5hdmlnYXRpb24tYmUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGZhcnJpcy9hcHAtbmF2aWdhdGlvbi1iZS8iLCJzb3VyY2VzIjpbImxpYi9hcHAtbmF2aWdhdGlvbi1iZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN6RSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDekQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNuRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG1CQUFtQixDQUFDO1NBaUJiLFlBQVksQ0FBQyxPQUFPLENBQUMsY0FBYyxDQUFDLElBQUksUUFBUTtBQWZwRjtJQUFBO0lBa0JxQyxDQUFDOztnQkFsQnJDLFFBQVEsU0FBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyx3QkFBd0IsQ0FBQztvQkFDeEMsT0FBTyxFQUFFO3dCQUNQLFlBQVk7d0JBQ1osZ0JBQWdCO3dCQUNoQixnQkFBZ0I7d0JBQ2hCLGdCQUFnQjt3QkFDaEIsYUFBYSxDQUFDLE9BQU8sQ0FBQyxFQUFFLE9BQU8sRUFBRSxZQUFZLEVBQUUsQ0FBQzt3QkFDaEQsY0FBYzt3QkFDZCxZQUFZLENBQUMsT0FBTyxFQUFFO3dCQUN0QixZQUFZLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQztxQkFDekI7O29CQUVELE9BQU8sRUFBRSxDQUFDLHdCQUF3QixDQUFDO29CQUNuQyxTQUFTLEVBQUU7d0JBQ1QsRUFBRSxPQUFPLEVBQUUsU0FBUyxFQUFFLFFBQVEsSUFBa0QsRUFBRTtxQkFDbkY7aUJBQ0Y7O0lBQ29DLDRCQUFDO0NBQUEsQUFsQnRDLElBa0JzQztTQUF6QixxQkFBcUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSwgTE9DQUxFX0lEIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBcHBOYXZpZ2F0aW9uQmVDb21wb25lbnQgfSBmcm9tICcuL2FwcC1uYXZpZ2F0aW9uLWJlLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgSW5wdXRHcm91cE1vZHVsZSB9IGZyb20gJ0BmYXJyaXMvdWktaW5wdXQtZ3JvdXAnO1xuaW1wb3J0IHsgSHR0cENsaWVudE1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbi9odHRwJztcbmltcG9ydCB7IFBhZ2luYXRpb25Nb2R1bGUgfSBmcm9tICdAZmFycmlzL3VpLXBhZ2luYXRpb24nO1xuaW1wb3J0IHsgTm90aWZ5TW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1ub3RpZnknO1xuaW1wb3J0IHsgTG9hZGluZ01vZHVsZSB9IGZyb20gJ0BmYXJyaXMvdWktbG9hZGluZyc7XG5pbXBvcnQgeyBNZXNzYWdlck1vZHVsZSB9IGZyb20gJ0BmYXJyaXMvdWktbWVzc2FnZXInO1xuaW1wb3J0IHsgTG9jYWxlTW9kdWxlIH0gZnJvbSAnQGZhcnJpcy91aS1sb2NhbGUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtBcHBOYXZpZ2F0aW9uQmVDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIElucHV0R3JvdXBNb2R1bGUsXG4gICAgSHR0cENsaWVudE1vZHVsZSxcbiAgICBQYWdpbmF0aW9uTW9kdWxlLFxuICAgIExvYWRpbmdNb2R1bGUuZm9yUm9vdCh7IG1lc3NhZ2U6ICfliqDovb3kuK3vvIzor7fnqI3lgJkuLi4nIH0pLFxuICAgIE1lc3NhZ2VyTW9kdWxlLFxuICAgIE5vdGlmeU1vZHVsZS5mb3JSb290KCksXG4gICAgTG9jYWxlTW9kdWxlLmZvclJvb3QoJycpXG4gIF0sXG4gIC8vIGVudHJ5Q29tcG9uZW50czogW1BhZ2luYXRpb25Db250cm9sc0NvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtBcHBOYXZpZ2F0aW9uQmVDb21wb25lbnRdLFxuICBwcm92aWRlcnM6IFtcbiAgICB7IHByb3ZpZGU6IExPQ0FMRV9JRCwgdXNlVmFsdWU6IGxvY2FsU3RvcmFnZS5nZXRJdGVtKCdsYW5ndWFnZUNvZGUnKSB8fCAnemgtQ0hTJyB9XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgQXBwTmF2aWdhdGlvbkJlTW9kdWxlIHsgfVxuIl19

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"AppNavigationBeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"farris-appNavigationBe","template":"<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n 推荐</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n 全部</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"请输入名称/编号搜索\" style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">最近使用</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">本地元数据</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- 推荐没有数据时的显示内容-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> 未查询到符合条件的数据 </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- 全部没有数据时的显示内容-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> 未查询到符合条件的数据 </div>\n </div>\n</div>\n<!-- 底部区域 -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">取消</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">确定</span>\n </div>\n </div>\n</div>","styles":[":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;position:absolute;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 50px)}.f-navBe-content2{width:100%;min-width:400px;margin-top:44px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-recent{width:100%;min-width:400px;margin-top:44px}.f-navBe-content-local{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]}]}],"members":{"editorParams":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"closeModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":20,"character":3}}]}],"submitModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":22,"character":3}}]}],"modalFooter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":23,"character":3},"arguments":["footer"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":110,"character":21},{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyService","line":111,"character":27},{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingService","line":112,"character":28},{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerService","line":113,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"onPageChange":[{"__symbolic":"method"}],"getAllDataInfo":[{"__symbolic":"method"}],"getRecentDataInfo":[{"__symbolic":"method"}],"getRecommandDataInfo":[{"__symbolic":"method"}],"getFormData":[{"__symbolic":"method"}],"showRecommandData":[{"__symbolic":"method"}],"showAllData":[{"__symbolic":"method"}],"unfoldData":[{"__symbolic":"method"}],"handleSearchedValue":[{"__symbolic":"method"}],"checkValueExists":[{"__symbolic":"method"}],"onSearchValueChanged":[{"__symbolic":"method"}],"getBeDataItem":[{"__symbolic":"method"}],"clickConfirm":[{"__symbolic":"method"}],"onClear":[{"__symbolic":"method"}],"clickCancel":[{"__symbolic":"method"}],"foldInRecent":[{"__symbolic":"method"}],"foldInLocal":[{"__symbolic":"method"}],"getUniqueData":[{"__symbolic":"method"}],"reinvokeInterface":[{"__symbolic":"method"}]}},"AppNavigationBeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"AppNavigationBeComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":4},{"__symbolic":"reference","module":"@farris/ui-input-group","name":"InputGroupModule","line":11,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":12,"character":4},{"__symbolic":"reference","module":"@farris/ui-pagination","name":"PaginationModule","line":13,"character":4}],"exports":[{"__symbolic":"reference","name":"AppNavigationBeComponent"}]}]}],"members":{}}},"origins":{"AppNavigationBeComponent":"./lib/app-navigation-be.component","AppNavigationBeModule":"./lib/app-navigation-be.module"},"importAs":"@farris/app-navigation-be"}
{"__symbolic":"module","version":4,"metadata":{"AppNavigationBeComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"farris-appNavigationBe","template":"<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.recommand}}</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.all }}</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"{{ beMetadataLocale[localeId].beMetadata.search }}\"\n style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.recent }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.localData }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- 推荐没有数据时的显示内容-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- 全部没有数据时的显示内容-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n</div>\n<!-- 底部区域 -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">{{ beMetadataLocale[localeId].beMetadata.cancelBtn }}</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">{{ beMetadataLocale[localeId].beMetadata.sureBtn }}</span>\n </div>\n </div>\n</div>","styles":[":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-recent-text-focus{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 100px)}.f-navBe-content2{width:100%;min-width:400px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-local,.f-navBe-content-recent{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]}]}],"members":{"editorParams":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"closeModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":20,"character":3}}]}],"submitModal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":22,"character":3}}]}],"modalFooter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":23,"character":3},"arguments":["footer"]}]}],"setLocaleData":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":120,"character":21},{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyService","line":121,"character":27},{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingService","line":122,"character":28},{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerService","line":123,"character":28},{"__symbolic":"reference","module":"@farris/ui-locale","name":"LocaleService","line":124,"character":27}]}],"ngOnInit":[{"__symbolic":"method"}],"onPageChange":[{"__symbolic":"method"}],"getAllDataInfo":[{"__symbolic":"method"}],"loadingData":[{"__symbolic":"method"}],"getRecentDataInfo":[{"__symbolic":"method"}],"getRecommandDataInfo":[{"__symbolic":"method"}],"getFormData":[{"__symbolic":"method"}],"showRecommandData":[{"__symbolic":"method"}],"showAllData":[{"__symbolic":"method"}],"unfoldData":[{"__symbolic":"method"}],"handleSearchedValue":[{"__symbolic":"method"}],"checkValueExists":[{"__symbolic":"method"}],"onSearchValueChanged":[{"__symbolic":"method"}],"getBeDataItem":[{"__symbolic":"method"}],"clickConfirm":[{"__symbolic":"method"}],"onClear":[{"__symbolic":"method"}],"clickCancel":[{"__symbolic":"method"}],"foldInRecent":[{"__symbolic":"method"}],"foldInLocal":[{"__symbolic":"method"}],"getUniqueData":[{"__symbolic":"method"}],"reinvokeInterface":[{"__symbolic":"method"}]}},"AppNavigationBeModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"AppNavigationBeComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":14,"character":4},{"__symbolic":"reference","module":"@farris/ui-input-group","name":"InputGroupModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":16,"character":4},{"__symbolic":"reference","module":"@farris/ui-pagination","name":"PaginationModule","line":17,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-loading","name":"LoadingModule","line":18,"character":4},"member":"forRoot"},"arguments":[{"message":"加载中,请稍候..."}]},{"__symbolic":"reference","module":"@farris/ui-messager","name":"MessagerModule","line":19,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-notify","name":"NotifyModule","line":20,"character":4},"member":"forRoot"}},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@farris/ui-locale","name":"LocaleModule","line":21,"character":4},"member":"forRoot"},"arguments":[""]}],"exports":[{"__symbolic":"reference","name":"AppNavigationBeComponent"}],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"LOCALE_ID","line":26,"character":15},"useValue":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"localStorage"},"member":"getItem"},"arguments":["languageCode"]},"right":"zh-CHS"}}]}]}],"members":{}}},"origins":{"AppNavigationBeComponent":"./lib/app-navigation-be.component","AppNavigationBeModule":"./lib/app-navigation-be.module"},"importAs":"@farris/app-navigation-be"}
import { cloneDeep } from 'lodash-es';
import { NotifyService } from '@farris/ui-notify';
import { tap, catchError } from 'rxjs/operators';
import { LoadingService } from '@farris/ui-loading';
import { MessagerService } from '@farris/ui-messager';
import { EMPTY } from 'rxjs';
import { Component, Output, EventEmitter, Input, Injector, ViewChild, NgModule } from '@angular/core';
import { Component, Output, EventEmitter, Input, Injector, ViewChild, NgModule, LOCALE_ID } from '@angular/core';
import { CommonModule } from '@angular/common';

@@ -12,9 +9,78 @@ import { InputGroupModule } from '@farris/ui-input-group';

import { PaginationModule } from '@farris/ui-pagination';
import { NotifyService, NotifyModule } from '@farris/ui-notify';
import { LoadingService, LoadingModule } from '@farris/ui-loading';
import { MessagerService, MessagerModule } from '@farris/ui-messager';
import { LocaleService, LocaleModule } from '@farris/ui-locale';
/**
* @fileoverview added by tsickle
* Generated from: lib/entity/locale.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
const beMetadataLocale = {
'zh-CHS': {
beMetadata: {
recommand: '推荐',
all: '全部',
search: '请输入名称/编号搜索',
recent: '最近使用',
localData: '本地元数据',
noRecommandData: '未查询到符合条件的数据',
cancelBtn: '取消',
sureBtn: '确定',
loading: '加载中,请稍候...',
topic: '选择业务实体',
noBeDataSelected: '未选择业务实体',
noVoDataSelected: '未选择视图对象',
noQoDataSelected: '未选择查询对象',
noWebcmpDataSelected: '未选择Web构件',
noDataSelected: '未选择元数据'
},
},
'zh-CHT': {
beMetadata: {
recommand: '推薦',
all: '全部',
search: '請輸入編號/名稱搜索',
recent: '最近使用',
localData: '本地元數據',
noRecommandData: '未查詢到符合條件的數據',
cancelBtn: '取消',
sureBtn: '確定',
loading: '加載中,請稍候...',
topic: '選擇業務實體',
noBeDataSelected: '未選擇業務實體',
noVoDataSelected: '未選擇視圖對象',
noQoDataSelected: '未選擇查詢對象',
noWebcmpDataSelected: '未選擇Web構件',
noDataSelected: '未選擇元數據'
},
},
en: {
beMetadata: {
recommand: 'Recommand',
all: 'All',
search: 'Search property code or name',
recent: 'Recent',
localData: 'Local Metadata',
noRecommandData: 'No data that meets the requirements was queried',
cancelBtn: 'Cancel',
sureBtn: 'OK',
loading: 'Loading, please wait...',
topic: 'Choose BE Metadata',
noBeDataSelected: 'No bedata selected',
noVoDataSelected: 'No vodata selected',
noQoDataSelected: 'No qodata selected',
noWebcmpDataSelected: 'No webcmpdata selected',
noDataSelected: 'No data selected'
},
}
};
/**
* @fileoverview added by tsickle
* Generated from: lib/app-navigation-be.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// import { timer } from 'rxjs';
class AppNavigationBeComponent {

@@ -26,4 +92,5 @@ /**

* @param {?} messageService
* @param {?} localeService
*/
constructor(injector, notifyService, loadingService, messageService) {
constructor(injector, notifyService, loadingService, messageService, localeService) {
this.injector = injector;

@@ -33,2 +100,3 @@ this.notifyService = notifyService;

this.messageService = messageService;
this.localeService = localeService;
// 模态框关闭

@@ -107,2 +175,3 @@ this.closeModal = new EventEmitter();

this.supportPaging = true;
this.localeId = 'zh-CHS';
/**

@@ -112,3 +181,3 @@ * 弹窗设定内容

this.modalConfig = {
title: '选择业务实体',
title: beMetadataLocale[this.localeId].beMetadata.topic,
width: 900,

@@ -138,3 +207,3 @@ height: 500,

this.noAllData = false;
// public loading: boolean = false;
this.beMetadataLocale = beMetadataLocale;
this.paginationOptions = {

@@ -148,6 +217,18 @@ id: 'Farris-beMetadata-Pagination_',

};
this.setLocaleData();
}
/**
* 设置国际化资源项
* @private
* @return {?}
*/
setLocaleData() {
if (this.localeService && this.localeService.langData && !this.localeService.langData.beMetadata) {
this.localeService.setLocaleData(beMetadataLocale);
}
this.localeId = window.top.localStorage.languageCode || 'zh-CHS';
}
/**
* @return {?}
*/
ngOnInit() {

@@ -179,6 +260,3 @@ this.beData = [];

/** @type {?} */
let loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
const loading = this.loadingData();
/** @type {?} */

@@ -201,3 +279,3 @@ const http = this.injector.get(HttpClient);

data => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -213,3 +291,3 @@ }

err => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -225,2 +303,14 @@ }

/**
* 加载数据
* @return {?}
*/
loadingData() {
if (!this.loadingService) {
this.loadingService = this.injector.get(LoadingService);
}
/** @type {?} */
const loading = this.loadingService.show({ container: 'body', message: beMetadataLocale[this.localeId].beMetadata.loading });
return loading;
}
/**
* 获取最近数据

@@ -231,6 +321,3 @@ * @return {?}

/** @type {?} */
let loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
const loading = this.loadingData();
/** @type {?} */

@@ -259,3 +346,3 @@ const http = this.injector.get(HttpClient);

data => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -275,4 +362,4 @@ }

err => {
if (this.loadingService) {
loading.close();
if (loading) {
this.loading.close();
}

@@ -292,6 +379,3 @@ if (err && this.messageService) {

/** @type {?} */
let loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
const loading = this.loadingData();
/** @type {?} */

@@ -314,3 +398,3 @@ const range = this.editorParams.range || 'Bo';

data => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -330,4 +414,4 @@ }

err => {
if (this.loadingService) {
loading.close();
if (this.loading) {
this.loading.close();
}

@@ -359,14 +443,19 @@ if (err && this.messageService) {

function (beMetadataItem, index) {
// 剔除移动端数据
/** @type {?} */
let beMetadataItemTemp = {
id: index,
name: beMetadataItem.name,
label: beMetadataItem.code,
source: beMetadataItem.nameSpace,
hide: false,
active: false,
data: beMetadataItem,
category: category
};
metadata.push(beMetadataItemTemp);
const isMobileData = beMetadataItem.nameSpace.includes('Inspur.GS.Gsp.Mobile');
if (!isMobileData) {
/** @type {?} */
const beMetadataItemTemp = {
id: index,
name: beMetadataItem.name,
label: beMetadataItem.code,
source: beMetadataItem.nameSpace,
hide: false,
active: false,
data: beMetadataItem,
category: category
};
metadata.push(beMetadataItemTemp);
}
}));

@@ -538,6 +627,3 @@ }

/** @type {?} */
let loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
const loading = this.loadingData();
/** @type {?} */

@@ -561,3 +647,3 @@ const http = this.injector.get(HttpClient);

data => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -572,3 +658,3 @@ }

err => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -588,15 +674,15 @@ }

case 'be':
this.notifyService['info']('未选择业务实体');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noBeDataSelected);
break;
case 'vo':
this.notifyService['info']('未选择视图对象');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noVoDataSelected);
break;
case 'qo':
this.notifyService['info']('未选择查询对象');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noQoDataSelected);
break;
case 'webcmp':
this.notifyService['info']('未选择Web构件');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noWebcmpDataSelected);
break;
default:
this.notifyService['info']('未选择元数据');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noDataSelected);
break;

@@ -711,6 +797,3 @@ }

/** @type {?} */
let loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
const loading = this.loadingData();
/** @type {?} */

@@ -730,3 +813,3 @@ const http = this.injector.get(HttpClient);

data => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -741,3 +824,3 @@ }

err => {
if (this.loadingService) {
if (loading) {
loading.close();

@@ -757,4 +840,4 @@ }

selector: 'farris-appNavigationBe',
template: "<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n \u63A8\u8350</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n \u5168\u90E8</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0/\u7F16\u53F7\u641C\u7D22\" style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">\u6700\u8FD1\u4F7F\u7528</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">\u672C\u5730\u5143\u6570\u636E</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- \u63A8\u8350\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> \u672A\u67E5\u8BE2\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- \u5168\u90E8\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> \u672A\u67E5\u8BE2\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E </div>\n </div>\n</div>\n<!-- \u5E95\u90E8\u533A\u57DF -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">\u53D6\u6D88</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">\u786E\u5B9A</span>\n </div>\n </div>\n</div>",
styles: [":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;position:absolute;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 50px)}.f-navBe-content2{width:100%;min-width:400px;margin-top:44px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-recent{width:100%;min-width:400px;margin-top:44px}.f-navBe-content-local{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]
template: "<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.recommand}}</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.all }}</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"{{ beMetadataLocale[localeId].beMetadata.search }}\"\n style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.recent }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.localData }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- \u63A8\u8350\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- \u5168\u90E8\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n</div>\n<!-- \u5E95\u90E8\u533A\u57DF -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">{{ beMetadataLocale[localeId].beMetadata.cancelBtn }}</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">{{ beMetadataLocale[localeId].beMetadata.sureBtn }}</span>\n </div>\n </div>\n</div>",
styles: [":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-recent-text-focus{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 100px)}.f-navBe-content2{width:100%;min-width:400px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-local,.f-navBe-content-recent{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]
}] }

@@ -767,3 +850,4 @@ ];

{ type: LoadingService },
{ type: MessagerService }
{ type: MessagerService },
{ type: LocaleService }
];

@@ -782,2 +866,3 @@ AppNavigationBeComponent.propDecorators = {

*/
const ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
class AppNavigationBeModule {

@@ -792,6 +877,13 @@ }

HttpClientModule,
PaginationModule
PaginationModule,
LoadingModule.forRoot({ message: '加载中,请稍候...' }),
MessagerModule,
NotifyModule.forRoot(),
LocaleModule.forRoot('')
],
// entryComponents: [PaginationControlsComponent],
exports: [AppNavigationBeComponent]
exports: [AppNavigationBeComponent],
providers: [
{ provide: LOCALE_ID, useValue: ɵ0 }
]
},] }

@@ -798,0 +890,0 @@ ];

import { cloneDeep } from 'lodash-es';
import { NotifyService } from '@farris/ui-notify';
import { tap, catchError } from 'rxjs/operators';
import { LoadingService } from '@farris/ui-loading';
import { MessagerService } from '@farris/ui-messager';
import { EMPTY } from 'rxjs';
import { Component, Output, EventEmitter, Input, Injector, ViewChild, NgModule } from '@angular/core';
import { Component, Output, EventEmitter, Input, Injector, ViewChild, NgModule, LOCALE_ID } from '@angular/core';
import { CommonModule } from '@angular/common';

@@ -12,11 +9,80 @@ import { InputGroupModule } from '@farris/ui-input-group';

import { PaginationModule } from '@farris/ui-pagination';
import { NotifyService, NotifyModule } from '@farris/ui-notify';
import { LoadingService, LoadingModule } from '@farris/ui-loading';
import { MessagerService, MessagerModule } from '@farris/ui-messager';
import { LocaleService, LocaleModule } from '@farris/ui-locale';
/**
* @fileoverview added by tsickle
* Generated from: lib/entity/locale.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var beMetadataLocale = {
'zh-CHS': {
beMetadata: {
recommand: '推荐',
all: '全部',
search: '请输入名称/编号搜索',
recent: '最近使用',
localData: '本地元数据',
noRecommandData: '未查询到符合条件的数据',
cancelBtn: '取消',
sureBtn: '确定',
loading: '加载中,请稍候...',
topic: '选择业务实体',
noBeDataSelected: '未选择业务实体',
noVoDataSelected: '未选择视图对象',
noQoDataSelected: '未选择查询对象',
noWebcmpDataSelected: '未选择Web构件',
noDataSelected: '未选择元数据'
},
},
'zh-CHT': {
beMetadata: {
recommand: '推薦',
all: '全部',
search: '請輸入編號/名稱搜索',
recent: '最近使用',
localData: '本地元數據',
noRecommandData: '未查詢到符合條件的數據',
cancelBtn: '取消',
sureBtn: '確定',
loading: '加載中,請稍候...',
topic: '選擇業務實體',
noBeDataSelected: '未選擇業務實體',
noVoDataSelected: '未選擇視圖對象',
noQoDataSelected: '未選擇查詢對象',
noWebcmpDataSelected: '未選擇Web構件',
noDataSelected: '未選擇元數據'
},
},
en: {
beMetadata: {
recommand: 'Recommand',
all: 'All',
search: 'Search property code or name',
recent: 'Recent',
localData: 'Local Metadata',
noRecommandData: 'No data that meets the requirements was queried',
cancelBtn: 'Cancel',
sureBtn: 'OK',
loading: 'Loading, please wait...',
topic: 'Choose BE Metadata',
noBeDataSelected: 'No bedata selected',
noVoDataSelected: 'No vodata selected',
noQoDataSelected: 'No qodata selected',
noWebcmpDataSelected: 'No webcmpdata selected',
noDataSelected: 'No data selected'
},
}
};
/**
* @fileoverview added by tsickle
* Generated from: lib/app-navigation-be.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// import { timer } from 'rxjs';
var AppNavigationBeComponent = /** @class */ (function () {
function AppNavigationBeComponent(injector, notifyService, loadingService, messageService) {
function AppNavigationBeComponent(injector, notifyService, loadingService, messageService, localeService) {
this.injector = injector;

@@ -26,2 +92,3 @@ this.notifyService = notifyService;

this.messageService = messageService;
this.localeService = localeService;
// 模态框关闭

@@ -100,2 +167,3 @@ this.closeModal = new EventEmitter();

this.supportPaging = true;
this.localeId = 'zh-CHS';
/**

@@ -105,3 +173,3 @@ * 弹窗设定内容

this.modalConfig = {
title: '选择业务实体',
title: beMetadataLocale[this.localeId].beMetadata.topic,
width: 900,

@@ -131,3 +199,3 @@ height: 500,

this.noAllData = false;
// public loading: boolean = false;
this.beMetadataLocale = beMetadataLocale;
this.paginationOptions = {

@@ -141,6 +209,26 @@ id: 'Farris-beMetadata-Pagination_',

};
this.setLocaleData();
}
/**
* 设置国际化资源项
*/
/**
* 设置国际化资源项
* @private
* @return {?}
*/
AppNavigationBeComponent.prototype.setLocaleData = /**
* 设置国际化资源项
* @private
* @return {?}
*/
function () {
if (this.localeService && this.localeService.langData && !this.localeService.langData.beMetadata) {
this.localeService.setLocaleData(beMetadataLocale);
}
this.localeId = window.top.localStorage.languageCode || 'zh-CHS';
};
/**
* @return {?}
*/
AppNavigationBeComponent.prototype.ngOnInit = /**

@@ -187,6 +275,3 @@ * @return {?}

/** @type {?} */
var loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
var loading = this.loadingData();
/** @type {?} */

@@ -209,3 +294,3 @@ var http = this.injector.get(HttpClient);

function (data) {
if (_this.loadingService) {
if (loading) {
loading.close();

@@ -221,3 +306,3 @@ }

function (err) {
if (_this.loadingService) {
if (loading) {
loading.close();

@@ -232,2 +317,19 @@ }

};
/** 加载数据 */
/**
* 加载数据
* @return {?}
*/
AppNavigationBeComponent.prototype.loadingData = /**
* 加载数据
* @return {?}
*/
function () {
if (!this.loadingService) {
this.loadingService = this.injector.get(LoadingService);
}
/** @type {?} */
var loading = this.loadingService.show({ container: 'body', message: beMetadataLocale[this.localeId].beMetadata.loading });
return loading;
};
/** 获取最近数据 */

@@ -245,6 +347,3 @@ /**

/** @type {?} */
var loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
var loading = this.loadingData();
/** @type {?} */

@@ -273,3 +372,3 @@ var http = this.injector.get(HttpClient);

function (data) {
if (_this.loadingService) {
if (loading) {
loading.close();

@@ -289,4 +388,4 @@ }

function (err) {
if (_this.loadingService) {
loading.close();
if (loading) {
_this.loading.close();
}

@@ -312,6 +411,3 @@ if (err && _this.messageService) {

/** @type {?} */
var loading;
if (this.loadingService) {
loading = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
var loading = this.loadingData();
/** @type {?} */

@@ -334,3 +430,3 @@ var range = this.editorParams.range || 'Bo';

function (data) {
if (_this.loadingService) {
if (loading) {
loading.close();

@@ -350,4 +446,4 @@ }

function (err) {
if (_this.loadingService) {
loading.close();
if (_this.loading) {
_this.loading.close();
}

@@ -386,14 +482,19 @@ if (err && _this.messageService) {

function (beMetadataItem, index) {
// 剔除移动端数据
/** @type {?} */
var beMetadataItemTemp = {
id: index,
name: beMetadataItem.name,
label: beMetadataItem.code,
source: beMetadataItem.nameSpace,
hide: false,
active: false,
data: beMetadataItem,
category: category
};
metadata.push(beMetadataItemTemp);
var isMobileData = beMetadataItem.nameSpace.includes('Inspur.GS.Gsp.Mobile');
if (!isMobileData) {
/** @type {?} */
var beMetadataItemTemp = {
id: index,
name: beMetadataItem.name,
label: beMetadataItem.code,
source: beMetadataItem.nameSpace,
hide: false,
active: false,
data: beMetadataItem,
category: category
};
metadata.push(beMetadataItemTemp);
}
}));

@@ -630,6 +731,3 @@ }

/** @type {?} */
var loading_1;
if (this.loadingService) {
loading_1 = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
var loading_1 = this.loadingData();
/** @type {?} */

@@ -653,3 +751,3 @@ var http = this.injector.get(HttpClient);

function (data) {
if (_this.loadingService) {
if (loading_1) {
loading_1.close();

@@ -664,3 +762,3 @@ }

function (err) {
if (_this.loadingService) {
if (loading_1) {
loading_1.close();

@@ -680,15 +778,15 @@ }

case 'be':
this.notifyService['info']('未选择业务实体');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noBeDataSelected);
break;
case 'vo':
this.notifyService['info']('未选择视图对象');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noVoDataSelected);
break;
case 'qo':
this.notifyService['info']('未选择查询对象');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noQoDataSelected);
break;
case 'webcmp':
this.notifyService['info']('未选择Web构件');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noWebcmpDataSelected);
break;
default:
this.notifyService['info']('未选择元数据');
this.notifyService['info'](beMetadataLocale[this.localeId].beMetadata.noDataSelected);
break;

@@ -830,6 +928,3 @@ }

/** @type {?} */
var loading_2;
if (this.loadingService) {
loading_2 = this.loadingService.show({ container: 'body', message: '加载中,请稍候...' });
}
var loading_2 = this.loadingData();
/** @type {?} */

@@ -849,3 +944,3 @@ var http = this.injector.get(HttpClient);

function (data) {
if (_this.loadingService) {
if (loading_2) {
loading_2.close();

@@ -860,3 +955,3 @@ }

function (err) {
if (_this.loadingService) {
if (loading_2) {
loading_2.close();

@@ -875,4 +970,4 @@ }

selector: 'farris-appNavigationBe',
template: "<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n \u63A8\u8350</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n \u5168\u90E8</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"\u8BF7\u8F93\u5165\u540D\u79F0/\u7F16\u53F7\u641C\u7D22\" style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">\u6700\u8FD1\u4F7F\u7528</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">\u672C\u5730\u5143\u6570\u636E</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- \u63A8\u8350\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> \u672A\u67E5\u8BE2\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">{{beDataItem.name}} ({{beDataItem.label}})</div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- \u5168\u90E8\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> \u672A\u67E5\u8BE2\u5230\u7B26\u5408\u6761\u4EF6\u7684\u6570\u636E </div>\n </div>\n</div>\n<!-- \u5E95\u90E8\u533A\u57DF -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">\u53D6\u6D88</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">\u786E\u5B9A</span>\n </div>\n </div>\n</div>",
styles: [":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;position:absolute;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 50px)}.f-navBe-content2{width:100%;min-width:400px;margin-top:44px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-recent{width:100%;min-width:400px;margin-top:44px}.f-navBe-content-local{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]
template: "<div class=\"f-navBe\">\n <div class=\"f-navBe-header\">\n <div class=\"f-navBe-recent\" (click)=\"showRecommandData()\">\n <div [ngClass]=\"{'f-navBe-recent-text-focus':chooseRecommand,'f-navBe-recent-text':!chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.recommand}}</div>\n </div>\n <div class=\"f-navBe-allData\" (click)=\"showAllData()\">\n <div [ngClass]=\"{'f-navBe-allData-text-focus':!chooseRecommand,'f-navBe-allData-text':chooseRecommand}\">\n {{ beMetadataLocale[localeId].beMetadata.all }}</div>\n </div>\n <div class=\"f-navBe-remainder\">\n <div class=\"f-navBe-search\">\n <input-group [groupText]=\"groupIcon\" [(value)]=\"searchValue\"\n (clickHandle)=\"onSearchValueChanged($event)\" (valueChange)=\"onSearchValueChanged($event)\"\n (clear)=\"onClear()\" placeholder=\"{{ beMetadataLocale[localeId].beMetadata.search }}\"\n style=\"font-size:2px;\"></input-group>\n </div>\n </div>\n </div>\n <div class=\"f-navBe-content\" *ngIf=\"chooseRecommand && !noRecommandData\">\n <div class=\"f-navBe-content-recent\" *ngIf=\"chooseRecommand && !recentFoldIn\">\n <div class=\"f-navBe-recentHeader\" *ngIf=\"showRecent\" (click)=\"foldInRecent()\">\n <div *ngIf=\"foldRecent\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldRecent\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.recent }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'recent'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"f-navBe-content-local\" *ngIf=\"chooseRecommand && !localFoldIn\">\n <div class=\"f-navBe-localHeader\" *ngIf=\"showLocal\" (click)=\"foldInLocal()\">\n <div *ngIf=\"foldLocal\" class=\"f-icon f-icon-arrow-60-right\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div *ngIf=\"!foldLocal\" class=\"f-icon f-icon-arrow-60-down\"\n style=\"color:#6E7088;font-size:12px;margin:0px 7px 0 0;\"></div>\n <div class=\"f-navBe-recommandLabel\">{{ beMetadataLocale[localeId].beMetadata.localData }}</div>\n </div>\n <ng-container *ngFor=\"let beDataItem of beData\">\n <ng-container *ngIf=\"!beDataItem.hide && beDataItem.category == 'local'\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 1px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n <!-- \u63A8\u8350\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content1\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex;justify-content: center;align-items: center;\"\n *ngIf=\"chooseRecommand && noRecommandData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n <div class=\"f-navBe-content2\" *ngIf=\"!chooseRecommand && !noAllData\">\n <div *ngFor=\"let beDataItem of (supportPaging ? (beData | paginate: paginationOptions) : beData)\">\n <ng-container *ngIf=\"!beDataItem.hide\">\n <div [ngClass]=\"{'f-navBe-item':!beDataItem.active,'f-navBe-item-active':beDataItem.active}\"\n (click)=\"getBeDataItem(beDataItem)\">\n <div class=\"f-navBe-itemIcon\">\n <div class=\"f-icon f-icon-window\"\n style=\"color:#2BA85E;font-size:13px; width: 12px;height: 12px;padding: 0px 0px 2px 0px;\">\n </div>\n </div>\n <div class=\"f-navBe-name\">\n <!-- {{localeId == 'en' ? beDataItem.label:\n beDataItem.name + '(' + beDataItem.label + ')'}} -->\n {{ beDataItem.name ?\n beDataItem.name + '(' + beDataItem.label + ')':\n beDataItem.label}}\n </div>\n <div class=\"f-navBe-source\">{{beDataItem.source}}</div>\n </div>\n </ng-container>\n </div>\n <div *ngIf=\"supportPaging\" class=\"f-navBe-content2-paging\">\n <pagination-controls #pager [id]=\"paginationOptions?.id\" [maxSize]=\"pagerLabelSize\" [directionLinks]=\"true\"\n [autoHide]=\"false\" [responsive]=\"true\" [previousLabel]=\"' '\" [nextLabel]=\"' '\"\n [showPageInfo]=\"showPageInfo\" [showPageNumber]=\"showPageNumber\" [showPageList]=\"showPageList\"\n (pageChange)=\"onPageChange($event)\">\n </pagination-controls>\n </div>\n </div>\n <!-- \u5168\u90E8\u6CA1\u6709\u6570\u636E\u65F6\u7684\u663E\u793A\u5185\u5BB9-->\n <div class=\"f-navBe-content3\"\n style=\"width: 100%; min-width: 400px; height: 50%; display: flex; justify-content:center; align-items:center; \"\n *ngIf=\"!chooseRecommand && noAllData\">\n <div> {{beMetadataLocale[localeId].beMetadata.noRecommandData }} </div>\n </div>\n</div>\n<!-- \u5E95\u90E8\u533A\u57DF -->\n<div class=\"f-page-bottom\">\n <div class=\"f-page-button\">\n <div class=\"f-page-cancel-btn\" (click)=\"clickCancel()\">\n <span class=\"textCancel\">{{ beMetadataLocale[localeId].beMetadata.cancelBtn }}</span>\n </div>\n <div class=\"f-page-sure-btn\" (click)=\"clickConfirm()\">\n <span class=\"textSure\">{{ beMetadataLocale[localeId].beMetadata.sureBtn }}</span>\n </div>\n </div>\n</div>",
styles: [":host{overflow:hidden;position:absolute;top:0;left:0;right:0;bottom:0}.f-page-bottom{margin-top:0;height:60px;width:100%;border:1px solid #dee1ea;background-color:#fff;z-index:2000;bottom:0;left:0;position:absolute;display:flex;justify-content:flex-end;align-items:center}.f-page-button{float:right;width:175px;display:flex}.f-page-cancel-btn{width:72px;height:32px;background:#fff;border:1px solid #d8dce6;box-shadow:0 1px 0 0 rgb(0 0 0 / 4%);border-radius:3px;margin-right:14px;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.f-page-sure-btn{width:72px;height:32px;display:flex;background:#2a87ff;border-radius:3px;text-align:center;cursor:pointer;align-items:center;justify-content:center;flex-wrap:wrap}.textCancel{font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33}.textSure{font-family:PingFangSC-Regular;font-size:13px;color:#fff}.f-navBe{background-color:#fff;height:100%}.f-navBe-header{display:flex;min-width:400px;width:100%;height:44px;align-items:center;border:1px solid #e5e9ef;background:#f9f9fc;top:0;z-index:2}.f-navBe-allData{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-allData-text{width:32px;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-allData-text-focus{width:32px;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer}.f-navBe-recent{flex:2;text-align:center;display:flex;justify-content:center;align-items:center}.f-navBe-recent-text{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;font-family:PingFangSC-Medium;font-size:16px;color:#2d2f33;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-recent-text-focus{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:44px;color:#2a87ff;border-bottom:3px solid #00f;font-family:PingFangSC-Medium;font-size:16px;font-weight:500;padding-top:12px;cursor:pointer;margin-left:15px}.f-navBe-remainder{flex:12}.f-navBe-search{width:220px;height:26.6px;background:#fff;border-radius:6px;float:right;margin-right:40px}.f-navBe-content{width:100%;min-width:400px;overflow:scroll;height:calc(100% - 100px)}.f-navBe-content2{width:100%;min-width:400px;height:calc(100% - 130px);overflow:scroll}.f-navBe-content2-paging{position:absolute;bottom:55px;right:50px}.f-navBe-content-local,.f-navBe-content-recent{width:100%;min-width:400px}.f-navBe-recommandLabel{height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#3d4c6b;font-weight:400;cursor:pointer}.f-navBe-localHeader,.f-navBe-recentHeader{height:32px;background:#fafaff;width:100%;display:flex;align-items:center;padding-left:10px;cursor:pointer;border:1px solid rgba(233,236,243,1)}.f-navBe-item{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef}.f-navBe-item:hover{background-color:#edf5fc!important;cursor:pointer}.f-navBe-item-active{height:62px;padding:15px 0 8px 18px;border:1px solid #e5e9ef;background-color:#edf5fc!important;cursor:pointer}.f-navBe-itemIcon{width:16px;height:16px;padding:1px;margin-right:6px;background-color:#dcf4e8;display:inline-block}.f-navBe-name{width:80%;height:18px;font-family:PingFangSC-Regular;font-size:13px;color:#2d2f33;font-weight:400;overflow:hidden;display:inline-block;vertical-align:top}.f-navBe-source{width:100%;height:17px;font-family:PingFangSC-Regular;font-size:12px;color:#949ba7;font-weight:400}"]
}] }

@@ -885,3 +980,4 @@ ];

{ type: LoadingService },
{ type: MessagerService }
{ type: MessagerService },
{ type: LocaleService }
]; };

@@ -902,2 +998,3 @@ AppNavigationBeComponent.propDecorators = {

*/
var ɵ0 = localStorage.getItem('languageCode') || 'zh-CHS';
var AppNavigationBeModule = /** @class */ (function () {

@@ -913,6 +1010,13 @@ function AppNavigationBeModule() {

HttpClientModule,
PaginationModule
PaginationModule,
LoadingModule.forRoot({ message: '加载中,请稍候...' }),
MessagerModule,
NotifyModule.forRoot(),
LocaleModule.forRoot('')
],
// entryComponents: [PaginationControlsComponent],
exports: [AppNavigationBeComponent]
exports: [AppNavigationBeComponent],
providers: [
{ provide: LOCALE_ID, useValue: ɵ0 }
]
},] }

@@ -919,0 +1023,0 @@ ];

@@ -5,2 +5,3 @@ import { OnInit, EventEmitter, Injector, TemplateRef } from '@angular/core';

import { MessagerService } from '@farris/ui-messager';
import { LocaleService } from '@farris/ui-locale';
export declare class AppNavigationBeComponent implements OnInit {

@@ -11,2 +12,3 @@ injector: Injector;

private messageService;
private localeService;
/** 入参 */

@@ -66,5 +68,10 @@ editorParams: any;

supportPaging: boolean;
localeId: string;
/**
* 设置国际化资源项
*/
private setLocaleData;
/** 弹窗设定内容 */
modalConfig: {
title: string;
title: any;
width: number;

@@ -88,2 +95,62 @@ height: number;

envType: string;
beMetadataLocale: {
'zh-CHS': {
beMetadata: {
recommand: string;
all: string;
search: string;
recent: string;
localData: string;
noRecommandData: string;
cancelBtn: string;
sureBtn: string;
loading: string;
topic: string;
noBeDataSelected: string;
noVoDataSelected: string;
noQoDataSelected: string;
noWebcmpDataSelected: string;
noDataSelected: string;
};
};
'zh-CHT': {
beMetadata: {
recommand: string;
all: string;
search: string;
recent: string;
localData: string;
noRecommandData: string;
cancelBtn: string;
sureBtn: string;
loading: string;
topic: string;
noBeDataSelected: string;
noVoDataSelected: string; /** 搜索框输入值 */
noQoDataSelected: string;
noWebcmpDataSelected: string;
noDataSelected: string;
};
};
en: {
beMetadata: {
recommand: string;
all: string;
search: string;
recent: string;
localData: string;
noRecommandData: string;
cancelBtn: string;
sureBtn: string;
loading: string;
topic: string;
noBeDataSelected: string;
noVoDataSelected: string;
noQoDataSelected: string;
noWebcmpDataSelected: string;
noDataSelected: string;
}; /** 显示页码 */
};
};
loading: any;
paginationOptions: {

@@ -97,3 +164,3 @@ id: string;

};
constructor(injector: Injector, notifyService: NotifyService, loadingService: LoadingService, messageService: MessagerService);
constructor(injector: Injector, notifyService: NotifyService, loadingService: LoadingService, messageService: MessagerService, localeService: LocaleService);
ngOnInit(): void;

@@ -107,2 +174,4 @@ onPageChange(page: {

getAllDataInfo(): import("rxjs").Subscription;
/** 加载数据 */
loadingData(): import("@farris/ui-loading").LoadingComponent;
/** 获取最近数据 */

@@ -109,0 +178,0 @@ getRecentDataInfo(): import("rxjs").Subscription;

{
"name": "@farris/app-navigation-be",
"version": "0.0.13",
"version": "0.0.14",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public",

@@ -26,1 +26,5 @@ ## 0.0.2

2. 增加 loading service/message service/notify service 验证条件
## 0.0.14
1. 国际化
2. 修复bug

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc