import { __awaiter } from "tslib";
import { Component, EventEmitter, Injector, Input, Output } from '@angular/core';
import { ComponentContextService } from '../../app-context/component-context.service';
import { DataListBase } from '../../classes/base/data-list-base';
import { ColumnSchemaBase, ModelSchema, Operator } from '../../classes/form-schema';
import { DmLoaiCongViecService } from './services/dm-loai-congviec.service';
export class BaseDmLoaiCongViecComponent extends DataListBase {
    constructor(_injector, _dmLoaiCongViecService) {
        super(_injector);
        this._injector = _injector;
        this._dmLoaiCongViecService = _dmLoaiCongViecService;
        this.inCauHinhWorkflow = false;
        this.onRowSelect = new EventEmitter();
        this.searchSchema = {};
        this.searchData = {};
    }
    ngOnInit() {
        this.setting.baseService = this._dmLoaiCongViecService;
        if (this.inCauHinhWorkflow) {
            this.setting.hiddenButtons = true;
            this.setting.hiddenFunctionColumn = true;
            this.setting.hiddenCheckbox = true;
            this.setting.multipleCheckWhenClickRow = false;
        }
        this.setting.modelSchemas = [
            new ModelSchema({ field: 'code', name: 'Mã loại', fullName: 'Mã loại', description: 'Mã loại' }),
            new ModelSchema({ field: 'ten', name: 'Tên loại', fullName: 'Tên loại', description: 'Tên loại' })
        ];
        this.setting.cols = [
            new ColumnSchemaBase({
                field: 'code',
                width: '150px',
                sort: false
            }),
            new ColumnSchemaBase({
                field: 'ten',
                dataType: 'ten',
                cellClass: 'no-padding',
                sort: false
            })
        ];
        this.setting.fieldSearchText = ['ten', 'code'];
        this.setting.objectName = ' loại công việc';
        super.ngOnInit();
    }
    getPromiseGetData(gridInfo) {
        return this._dmLoaiCongViecService.baseGetTreeData(gridInfo);
    }
    modifyGridInfo(gridInfo) {
        return __awaiter(this, void 0, void 0, function* () {
            gridInfo.sorts = [{ field: 'maPhanCap', dir: 1 }];
            gridInfo.filters.push(this.newFilter('soThuTu', Operator.equal, 'soThuTu', true));
        });
    }
    beforeRenderDataSource(dataSource) {
        return __awaiter(this, void 0, void 0, function* () {
            const lstParent = [];
            let itemParentBefore = null;
            let itemLastChild = null;
            const dicParentChild = {};
            dataSource.forEach(item => {
                item.level = item.maPhanCap.length / 6;
                // Là cấp 1
                if (!item.idParent) {
                    itemParentBefore = item;
                    lstParent.forEach(itemParent => {
                        itemParent.isLast = true;
                        this.setIsLastParentForChild(dicParentChild, itemParent, dataSource);
                    });
                    lstParent.splice(0, lstParent.length);
                    lstParent[0] = item;
                    dicParentChild[item.id] = [];
                    if (itemLastChild != null) {
                        itemLastChild.isLast = true;
                    }
                }
                else {
                    if (itemLastChild && itemLastChild.id == item.idParent) {
                        lstParent.push(itemLastChild);
                        dicParentChild[itemLastChild.id] = [item];
                        itemParentBefore = itemLastChild;
                        itemParentBefore.hasChild = true;
                        itemLastChild = item;
                        itemLastChild.indexParents = [];
                        for (let i = 0; i < itemParentBefore.level - 1; i++) {
                            itemLastChild.indexParents.push(1);
                        }
                    }
                    else if (itemParentBefore) {
                        while (item.idParent != itemParentBefore.id) {
                            if (itemLastChild != null) {
                                itemLastChild.isLast = true;
                            }
                            lstParent.splice(lstParent.length - 1, 1);
                            if (lstParent.length == 0) {
                                itemParentBefore = null;
                                break;
                            }
                            itemParentBefore = lstParent[lstParent.length - 1];
                        }
                        if (itemParentBefore == null) {
                            item.alone = true;
                            itemLastChild = item;
                        }
                        else {
                            itemParentBefore.hasChild = true;
                            itemLastChild = item;
                            dicParentChild[itemParentBefore.id].push(item);
                            itemLastChild.indexParents = [];
                            for (let i = 0; i < itemParentBefore.level - 1; i++) {
                                itemLastChild.indexParents.push(1);
                            }
                        }
                    }
                    else {
                        item.alone = true;
                        itemLastChild = item;
                    }
                }
            });
            if (lstParent.length > 0) {
                lstParent.forEach(itemParent => {
                    itemParent.isLast = true;
                });
                for (let i = lstParent.length - 1; i >= 0; i--) {
                    this.setIsLastParentForChild(dicParentChild, lstParent[i], dataSource);
                }
            }
            if (itemLastChild != null) {
                itemLastChild.isLast = true;
            }
        });
    }
    setIsLastParentForChild(dicParentChild, itemParent, dataSource) {
        if (dicParentChild[itemParent.id]) {
            const indexMax = itemParent.level - 1;
            dicParentChild[itemParent.id].forEach(child => {
                let tmpParent = Object.assign({}, itemParent);
                for (let i = 0; i < indexMax; i++) {
                    if (tmpParent == null) {
                        child.indexParents[indexMax - i - 1] = 0;
                    }
                    else {
                        child.indexParents[indexMax - i - 1] = tmpParent.isLast ? 0 : 1;
                        tmpParent = dataSource.find(q => q.id == tmpParent.idParent);
                    }
                }
                this.setIsLastParentForChild(dicParentChild, child, dataSource);
            });
        }
    }
    handleRowSelect(evt) {
        this.onRowSelect.emit(evt);
    }
}
BaseDmLoaiCongViecComponent.decorators = [
    { type: Component, args: [{
                selector: 'base-dm-loai-congviec',
                template: "<crud-list #crudList [model]=\"model\" [setting]=\"setting\" [dataSource]=\"model.dataSource\"\n    (onCopyLink)=\"_copyLink($event)\" (onCopyLinkMultiple)=\"_copyLinkMultiple()\" (onReload)=\"_triggerProcessData($event)\"\n    (onAdd)=\"_add($event)\" (onEdit)=\"_edit($event)\" (onView)=\"_view($event)\" (onDelete)=\"_delete($event)\"\n    (onDeleteMultiple)=\"_deleteMultiple($event)\" (onReloaded)=\"_unmarkLoading()\"\n    (onRowSelect)=\"handleRowSelect($event)\">\n    <ng-template *ngIf=\"inCauHinhWorkflow\" #toolbar></ng-template>\n    <ng-template #ten let-rowData=\"rowData\">\n        <div [attr.level]=\"rowData.level\" class=\"cell-ten-lhp\" [class.has-child]=\"rowData.hasChild\"\n            [class.last-child]=\"rowData.isLast\" [class.alone]=\"rowData.alone\">\n            <span class=\"content\">{{rowData.ten}} ({{rowData.code}})</span>\n            <span class=\"for-child\"></span>\n            <span>\n                <span *ngFor=\"let i of rowData.indexParents\" [attr.show]=\"i\" class=\"for-parent\"></span>\n            </span>\n        </div>\n    </ng-template>\n</crud-list>\n\n<tn-dialog *ngIf=\"showDetailForm\" #dialog [styleClass]=\"'dm-loai-congviec-form tn-form-dialog'\"\n    [header]=\"setting.popupHeader | translate\" [popupSize]=\"setting.popupSize\" (onHide)=\"showDetailForm = false\">\n    <base-dm-loai-congviec-form #formBase [parentModel]=\"model\" [parentContext]=\"context\" [model]=\"formModel\"\n        (onSaved)=\"showDetailForm = false;crudList.reload()\" (onCancel)=\"_handleCancel($event)\">\n    </base-dm-loai-congviec-form>\n</tn-dialog>",
                providers: [ComponentContextService],
                styles: [".container-task-info .percent-done{position:relative;border-radius:2px;background-color:#f0f0f0;height:5px;margin-top:5px;overflow:hidden}.container-task-info .percent-done .detail{position:absolute;left:0;top:0;height:5px;border-radius:2px;font-size:13px;text-align:center;color:#fff}::ng-deep base-dm-loai-congviec .cell-ten-lhp{padding:10px 0 10px 10px;top:0;left:0;width:100%;height:100%;display:flex;align-items:center}::ng-deep base-dm-loai-congviec .cell-ten-lhp:after,::ng-deep base-dm-loai-congviec .cell-ten-lhp:before{content:\"\";position:absolute}::ng-deep base-dm-loai-congviec .cell-ten-lhp>span.content{z-index:1;background-color:#fff;padding:5px 0}::ng-deep base-dm-loai-congviec .cell-ten-lhp.has-child .for-child{position:absolute;width:1px;background:#cdcdcd;height:50%;top:50%;left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp .for-parent[show=\"0\"]{display:none}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]{padding-left:30px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]:not(.alone):after{top:50%;left:15px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"]:not(.alone) .for-parent:nth-child(0){left:-15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"2\"].has-child .for-child{left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"]{padding-left:60px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"]:not(.alone):after{top:50%;left:45px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"3\"].has-child .for-child{left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]{padding-left:90px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]:not(.alone):after{top:50%;left:75px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"4\"].has-child .for-child{left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]{padding-left:120px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone):after{top:50%;left:105px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"5\"].has-child .for-child{left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]{padding-left:150px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone):after{top:50%;left:135px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"6\"].has-child .for-child{left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]{padding-left:180px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone):after{top:50%;left:165px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"7\"].has-child .for-child{left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]{padding-left:210px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone):after{top:50%;left:195px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"8\"].has-child .for-child{left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]{padding-left:240px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone):after{top:50%;left:225px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"9\"].has-child .for-child{left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]{padding-left:270px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone):after{top:50%;left:255px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"]:not(.alone) .for-parent:nth-child(8){left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"10\"].has-child .for-child{left:285px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]{padding-left:300px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:285px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone):after{top:50%;left:285px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(8){left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"]:not(.alone) .for-parent:nth-child(9){left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"11\"].has-child .for-child{left:315px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]{padding-left:330px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:315px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone):after{top:50%;left:315px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(8){left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(9){left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"]:not(.alone) .for-parent:nth-child(10){left:285px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"12\"].has-child .for-child{left:345px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]{padding-left:360px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:345px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone):after{top:50%;left:345px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(8){left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(9){left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(10){left:285px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"]:not(.alone) .for-parent:nth-child(11){left:315px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"13\"].has-child .for-child{left:375px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]{padding-left:390px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:375px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone):after{top:50%;left:375px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(8){left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(9){left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(10){left:285px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(11){left:315px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"]:not(.alone) .for-parent:nth-child(12){left:345px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"14\"].has-child .for-child{left:405px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]{padding-left:420px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone):before{width:1px;background:#cdcdcd;height:100%;top:0;left:405px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone):after{top:50%;left:405px;height:1px;width:10px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone).last-child:before{height:50%}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent{position:absolute;height:100%;top:0;width:1px;background:#cdcdcd}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:first-child{left:15px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(2){left:45px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(3){left:75px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(4){left:105px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(5){left:135px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(6){left:165px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(7){left:195px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(8){left:225px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(9){left:255px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(10){left:285px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(11){left:315px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(12){left:345px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"]:not(.alone) .for-parent:nth-child(13){left:375px}::ng-deep base-dm-loai-congviec .cell-ten-lhp[level=\"15\"].has-child .for-child{left:435px}::ng-deep base-dm-loai-congviec .p-datatable .p-datatable-thead tr th{z-index:5}::ng-deep base-dm-loai-congviec .p-datatable .p-datatable-tbody tr:hover .cell-ten-lhp>span.content{background-color:#ffffeb}::ng-deep base-dm-loai-congviec .p-datatable .p-datatable-tbody tr.ui-state-highlight .cell-ten-lhp>span.content{background-color:#e3f2fd!important}::ng-deep base-dm-loai-congviec .title-group{font-weight:700}"]
            },] }
];
BaseDmLoaiCongViecComponent.ctorParameters = () => [
    { type: Injector },
    { type: DmLoaiCongViecService }
];
BaseDmLoaiCongViecComponent.propDecorators = {
    inCauHinhWorkflow: [{ type: Input }],
    onRowSelect: [{ type: Output }]
};
//# sourceMappingURL=data:application/json;base64, 