import { ExpBarControlBase } from './expbar-control-base';
/**
 * 列表导航栏部件基类
 *
 * @export
 * @class ListExpBarControlBase
 * @extends {MainControlBase}
 */
export class ListExpBarControlBase extends ExpBarControlBase {
    /**
     * 处理数据部件参数
     *
     * @memberof GridExpBarControlBase
     */
    async handleXDataCtrlOptions() {
        var _a, _b, _c;
        //TODO 导航关系
        const navPSAppView = await ((_b = (_a = this.$xDataControl) === null || _a === void 0 ? void 0 : _a.getNavPSAppView()) === null || _b === void 0 ? void 0 : _b.fill());
        if (navPSAppView) {
            this.navViewName = navPSAppView.modelFilePath;
        }
        this.navFilter = ((_c = this.$xDataControl) === null || _c === void 0 ? void 0 : _c.navFilter) ? this.$xDataControl.navFilter : "";
        // this.navPSDer = this.$xDataControl?.getNavPSDER ? this.$xDataControl.navPSDer : "";
    }
    /**
    * 执行搜索
    *
    * @memberof ListExpBarControlBase
    */
    onSearch() {
        if (this.Environment && this.Environment.isPreviewMode) {
            return;
        }
        const list = this.$refs[`${this.xDataControlName.toLowerCase()}`].ctrl;
        if (list) {
            this.viewState.next({ tag: this.xDataControlName, action: "load", data: { query: this.searchText } });
        }
    }
}
