[{"__symbolic":"module","version":4,"metadata":{"NavDefineComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":68,"character":1},"arguments":[{"selector":"zx-nav-define","template":"<zx-header-block [title]=\"'导航定义'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\"><p>应用导航定义</p></zx-header-block><zx-content-block siderWidth=\"300\"><ng-template #sider><zx-tree-view style=\"max-height:600px;min-height:350px\" [dataUrl]=\"treeViewDataUrl\" (dataLoaded)=\"treeViewDataLoaded($event)\" (headerClicked)=\"treeViewHeaderClick($event)\" [enableHeaderClick]=\"app!=null\" [deselectOnHeaderClick]=\"app!=null\" [accordion]=\"true\" [enableCheckbox]=\"false\" [enableHeader]=\"true\" (selectChange)=\"treeViewSelectChange($event)\" (inited)=\"treeViewInited($event)\"><ng-template #treeViewHeader let-treeView=\"treeView\"><span *ngIf=\"!app\"><i class=\"anticon anticon-appstore-o\"></i> 所有应用</span><nz-dropdown *ngIf=\"app\"><a class=\"ant-dropdown-link\" nz-dropdown><i class=\"anticon anticon-appstore-o\"></i> <span>{{app.label}}</span> <i class=\"anticon anticon-down\"></i></a><ul nz-menu><li nz-menu-item (click)=\"treeViewShowAllApp()\">所有应用</li></ul></nz-dropdown></ng-template></zx-tree-view></ng-template><ng-template #operations><button nz-button [nzType]=\"'primary'\" (click)=\"insert()\" [disabled]=\"nonNAV\"><i class=\"anticon anticon-plus\"></i> <span>添加导航</span></button></ng-template><ng-template #extra><nz-input [nzDisabled]=\"nonNAV\" [nzType]=\"'search'\" [(ngModel)]=\"listView.params.queryString\" [nzPlaceHolder]=\"'请输入编码或名称查询'\" style=\"width: 250px;\" (nzOnSearch)=\"search($event)\" [nzSize]=\"'large'\"></nz-input></ng-template><ng-template #content><zx-list-view [listView]=\"listView\" (loadData)=\"query($event)\" *ngIf=\"!nonNAV\"><ng-template #headColumn let-field=\"field\"><div *ngIf=\"field.name == 'label'\"><span><zx-list-view-th [field]=\"listView.fields['label']\"></zx-list-view-th></span><span>/</span> <span><zx-list-view-th [field]=\"listView.fields['action']\"></zx-list-view-th></span></div></ng-template><ng-template #dataColumn let-dataRow=\"dataRow\" let-field=\"field\" let-value=\"value\"><div *ngIf=\"field.name == 'name'\"><nz-tag *ngIf=\"dataRow.resourceType === 'NAV'\" [nzColor]=\"'purple'\">NAV</nz-tag><a [routerLink]=\"['../nav', dataRow.id ]\">{{dataRow.name}}</a></div><div *ngIf=\"field.name == 'icon'\"><i [ngClass]=\"dataRow.icon\"></i></div><div *ngIf=\"field.name == 'label'\"><div>{{dataRow.label}}</div><div style=\"white-space: normal;\"><nz-tag [nzColor]=\"dataRow.actionType === 'HREF' ? 'green' : 'blue'\" *ngIf=\"dataRow.actionType || dataRow.action\">{{dataRow.actionType}}</nz-tag><span>{{dataRow.action}}</span></div></div><div *ngIf=\"field.name == 'visible'\"><i class=\"anticon anticon-check-square-o\" *ngIf=\"dataRow.visible\"></i> <i class=\"anticon anticon-close-square-o\" *ngIf=\"!dataRow.visible\"></i></div></ng-template><ng-template #dataOperations let-dataRow=\"dataRow\"><div class=\"operation\"><a [routerLink]=\"['../nav', dataRow.id ]\">详情</a> <a (click)=\"dialog(dataRow)\">修改</a> <a (click)=\"delete(dataRow)\">删除</a></div></ng-template></zx-list-view><div *ngIf=\"nonNAV\"><br><nz-alert [nzType]=\"'info'\" nzShowIcon><span alert-body class=\"alert-info\"><i>提示：</i> <i>请选择应用或导航节点以管理导航定义。</i></span></nz-alert></div></ng-template></zx-content-block><zx-nav-dialog #navDialog (clickSave)=\"onSave($event)\"></zx-nav-dialog>","styles":["\n        :host .operation > a{\n            padding: 0 5px;\n        }\n\n        :host .operation > a::after{\n            content:\"|\";\n            padding-left: 15px;\n            color: #999;\n        }\n\n        :host .operation > a:last-child::after{\n            content:\"\";\n        }\n        "]}]}],"members":{"navDialog":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":91,"character":5},"arguments":["navDialog"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../service/data-source.helper","name":"DataSourceHelper","line":105,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":106,"character":26},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":107,"character":24},{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"UserContextService","line":108,"character":29},{"__symbolic":"reference","module":"@wjya/ngx-webapp-fx","name":"DataCacheService","line":109,"character":27},{"__symbolic":"reference","module":"ng-zorro-antd","name":"NzModalService","line":110,"character":29},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":111,"character":29}]}],"ngOnInit":[{"__symbolic":"method"}],"initData":[{"__symbolic":"method"}],"loadAll":[{"__symbolic":"method"}],"loadResourceDef":[{"__symbolic":"method"}],"insert":[{"__symbolic":"method"}],"dialog":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"onSave":[{"__symbolic":"method"}],"treeViewDataLoaded":[{"__symbolic":"method"}],"setTreeNodeAttributes":[{"__symbolic":"method"}],"parseIcon":[{"__symbolic":"method"}],"treeViewInited":[{"__symbolic":"method"}],"treeViewHeaderClick":[{"__symbolic":"method"}],"treeViewShowAllApp":[{"__symbolic":"method"}],"treeViewSelectChange":[{"__symbolic":"method"}],"changeButtonState":[{"__symbolic":"method"}],"search":[{"__symbolic":"method"}],"query":[{"__symbolic":"method"}]}}}}]