UNPKG

armisa-models

Version:
21 lines (20 loc) 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DateBoxesFactory = void 0; const DateBoxFactory_1 = require("./DateBoxFactory"); class DateBoxesFactory { constructor(mainStateFactory, fieldName, _showHasChangeFlag, required, caption, fromCaption, fromPlaceHolder, toCaption, toPlaceHolder, tabIndex, pageData, fromPayLoadKey, toPayLoadKey, fromResponseKey, toResponseKey) { this.mainStateFactory = mainStateFactory; this.fieldName = fieldName; this.caption = caption; this.pageData = pageData; this.forceUpdate = () => { }; const fromTabIndex = typeof tabIndex === 'number' ? tabIndex : undefined; const toTabIndex = typeof tabIndex === 'number' ? tabIndex + .1 : undefined; const disposeFrom = () => { }; const disposeTo = () => { }; this.fromDateBoxFactory = new DateBoxFactory_1.DateBoxFactory(mainStateFactory, `dateBoxFrom${fieldName}`, disposeFrom, required, _showHasChangeFlag, fromCaption, fromPlaceHolder, fromTabIndex, undefined, fromPayLoadKey, fromResponseKey); this.toDateBoxFactory = new DateBoxFactory_1.DateBoxFactory(mainStateFactory, `dateBoxTo${fieldName}`, disposeTo, required, _showHasChangeFlag, toCaption, toPlaceHolder, toTabIndex, undefined, toPayLoadKey, toResponseKey); } } exports.DateBoxesFactory = DateBoxesFactory;