UNPKG

iv-3d-lib

Version:

A reusable ThreeJS library providing features for Ivee 3D Editor.

26 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormInstance = void 0; const wgl_util_cfgs_1 = require("../wgl-util-cfgs"); const form_meta_view_1 = require("./form-meta-view"); class FormInstance { constructor() { this.list = []; this.css = new wgl_util_cfgs_1.CssCfg(); this.checkboxFix = (e) => { e.stopImmediatePropagation(); }; this.datepickerFix = (e) => { e.stopImmediatePropagation(); }; this.dataSourceValues = {}; this.hasForm = () => { return this.meta && this.meta.views.filter(v => v.sType == form_meta_view_1.ViewType[form_meta_view_1.ViewType.form] && !v.isInactive).length > 0 ? true : false; }; this.hasGrid = () => { return this.meta && this.meta.views.filter(v => v.sType == form_meta_view_1.ViewType[form_meta_view_1.ViewType.grid] && !v.isInactive).length > 0 ? true : false; }; this.getKey = () => { if (!this.meta || !this.meta.fields) return null; return this.meta.fields.find(fld => fld.isKey); }; this.openItem = (item) => { }; this.deleteItem = (item) => { }; } } exports.FormInstance = FormInstance; ; //# sourceMappingURL=form-instance.js.map