all files / document-editor/implementation/dialogs/ form-field-drop-down-dialog.js

93.51% Statements 317/339
87.5% Branches 91/104
80% Functions 24/30
93.51% Lines 317/339
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486   508× 508× 508× 508× 508× 508× 508×   508×       508×   508×   508×   508×     508×   508×   508×   508×     41×         14479×                                                                                                                                       10× 10× 10×                                                                               757× 757×     757× 757× 757× 757× 757×   757×   757×   757×   757×   757×   757× 757× 757×   757×   757×   757×   757×   757×   757×       757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×   757×          
define(["require", "exports", "@syncfusion/ej2-base", "@syncfusion/ej2-buttons", "../viewer/page", "@syncfusion/ej2-lists", "@syncfusion/ej2-inputs"], function (require, exports, ej2_base_1, ej2_buttons_1, page_1, ej2_lists_1, ej2_inputs_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var DropDownFormFieldDialog = (function () {
        function DropDownFormFieldDialog(owner) {
            var _this = this;
            this.moveDownItemClickHandler = this.onMouseDownItemClick.bind(this);
            this.keyUpOnTextBoxClickHandler = this.onKeyUpOnTextBoxClick.bind(this);
            this.addItemtoListClickHandler = this.onAddItemtoListClick.bind(this);
            this.moveUpItemClickHandler = this.onMoveUpItemClick.bind(this);
            this.removeItemFromListClickHandler = this.onRemoveItemFromListClick.bind(this);
            this.addItemtoList = function () {
                _this.dropDownItems.push(_this.drpDownItemsInput.value);
                _this.currentSelectedItem = _this.drpDownItemsInput.value;
                _this.drpDownItemsInput.value = '';
                _this.enableOrDisableButton();
                _this.updateList();
            };
            this.removeItemFromList = function () {
                for (var i = 0; i < _this.dropDownItems.length; i++) {
                    if (_this.dropDownItems[i] === _this.currentSelectedItem) {
                        _this.dropDownItems.splice(i, 1);
                    }
                }
                _this.updateList();
            };
            this.selectHandler = function (args) {
                _this.currentSelectedItem = args.text;
            };
            this.moveUpItem = function () {
                var index = _this.getSelectedIndex();
                _this.moveUp(index, (index - 1));
                _this.updateList();
            };
            this.moveDownItem = function () {
                var index = _this.getSelectedIndex();
                _this.moveDown(index, (index + 1));
                _this.updateList();
            };
            this.onKeyUpOnTextBox = function () {
                _this.enableOrDisableButton();
            };
            this.onCancelButtonClick = function () {
                _this.documentHelper.dialog.hide();
            };
            this.insertDropDownField = function () {
                var dropDownField = new page_1.DropDownFormField();
                dropDownField.dropdownItems = _this.dropDownItems;
                dropDownField.selectedIndex = 0;
                dropDownField.name = _this.bookmarkInput.value;
                dropDownField.helpText = _this.tooltipInput.value;
                dropDownField.enabled = _this.dropDownEnable.checked;
                _this.owner.editorModule.editFormField('DropDown', dropDownField);
                _this.closeDropDownField();
            };
            this.closeDropDownField = function () {
                _this.documentHelper.dialog.hide();
                _this.documentHelper.dialog.element.style.pointerEvents = '';
            };
            this.owner = owner;
        }
        Object.defineProperty(DropDownFormFieldDialog.prototype, "documentHelper", {
            get: function () {
                return this.owner.documentHelper;
            },
            enumerable: true,
            configurable: true
        });
        DropDownFormFieldDialog.prototype.getModuleName = function () {
            return 'DropDownFormFieldDialog';
        };
        DropDownFormFieldDialog.prototype.initTextDialog = function (localValue, isRtl) {
            this.target = ej2_base_1.createElement('div');
            this.dialogDiv = ej2_base_1.createElement('div');
            this.firstDiv = ej2_base_1.createElement('div', { className: 'e-de-drp-dwn-frst-div' });
            this.drpDownItemsInput = ej2_base_1.createElement('input', {
                className: 'e-input e-bookmark-textbox-input',
                id: 'fielditems_text_box'
            });
            this.drpDownItemsInput.addEventListener('keyup', this.keyUpOnTextBoxClickHandler);
            this.secondDiv = ej2_base_1.createElement('div', { className: 'e-de-ff-drpdwn-dlg-scndiv' });
            this.itemsDrpItemsLabel = ej2_base_1.createElement('div', {
                className: 'e-de-ff-dlg-drpdwn-heading',
                innerHTML: localValue.getConstant('Items in dropdown list')
            });
            this.listviewDiv = ej2_base_1.createElement('div', {
                className: 'e-bookmark-listViewDiv e-de-ff-drpdwn-listview',
                attrs: { style: 'height:100%' }
            });
            this.listviewInstance = new ej2_lists_1.ListView({
                cssClass: 'e-bookmark-listview',
                select: this.selectHandler
            });
            this.buttonDiv = ej2_base_1.createElement('div');
            this.addButtonDiv = ej2_base_1.createElement('div', { className: 'e-bookmark-addbutton' });
            this.addButtonEle = ej2_base_1.createElement('button', {
                innerHTML: localValue.getConstant('ADD'),
                attrs: { type: 'button', style: 'height:36px;width:100%' }
            });
            this.addButton = new ej2_buttons_1.Button({ cssClass: 'e-button-custom' });
            this.addButton.disabled = true;
            this.addButtonEle.setAttribute('aria-label', localValue.getConstant('ADD'));
            this.addButtonEle.addEventListener('click', this.addItemtoListClickHandler);
            this.editButtonDiv = ej2_base_1.createElement('div', { className: 'e-bookmark-addbutton' });
            this.editButtonDiv.style.display = 'none';
            this.editButtonEle = ej2_base_1.createElement('button', {
                innerHTML: 'EDIT',
                attrs: { type: 'button', style: 'height:36px;width:100%' }
            });
            this.editButton = new ej2_buttons_1.Button({ cssClass: 'e-button-custom' });
            this.editButtonEle.setAttribute('aria-label', 'EDIT');
            this.removeButtonDiv = ej2_base_1.createElement('div', { className: 'e-bookmark-addbutton' });
            this.removeButtonEle = ej2_base_1.createElement('button', {
                innerHTML: localValue.getConstant('REMOVE'),
                attrs: { type: 'button', style: 'height:36px;width:100%' }
            });
            this.removeButtonEle.setAttribute('aria-label', localValue.getConstant('REMOVE'));
            this.removeButton = new ej2_buttons_1.Button({ cssClass: 'e-button-custom' });
            this.removeButtonEle.addEventListener('click', this.removeItemFromListClickHandler);
            this.moveBtnDiv = ej2_base_1.createElement('div', { attrs: { style: 'display:inline-flex' } });
            this.moveUpButtonDiv = ej2_base_1.createElement('div', { className: 'e-bookmark-addbutton' });
            this.moveUpButtonEle = ej2_base_1.createElement('button', {
                attrs: { type: 'button', style: 'height:36px;width:40px' },
                className: 'e-de-ff-drpdwn-mvup'
            });
            this.moveUpButtonEle.setAttribute('aria-label', 'moveUp');
            this.moveUpButton = new ej2_buttons_1.Button({ cssClass: 'e-button-custom', iconCss: 'e-de-arrow-up' });
            this.moveUpButtonEle.addEventListener('click', this.moveUpItemClickHandler);
            this.moveDownButtonDiv = ej2_base_1.createElement('div', { className: 'e-bookmark-addbutton' });
            this.moveDownButtonEle = ej2_base_1.createElement('button', {
                attrs: { type: 'button', style: 'height:36px;width:40px' },
                className: 'e-de-ff-drpdwn-mvdn'
            });
            this.moveDownButtonEle.setAttribute('aria-label', 'moveDown');
            this.moveDownButton = new ej2_buttons_1.Button({ cssClass: 'e-button-custom', iconCss: 'e-de-arrow-down' });
            this.moveDownButtonEle.addEventListener('click', this.moveDownItemClickHandler);
            this.fileSettingsLabel = ej2_base_1.createElement('div', {
                className: 'e-de-para-dlg-heading',
                innerHTML: localValue.getConstant('Field settings')
            });
            this.thirdDiv = ej2_base_1.createElement('div', { className: 'e-de-container-row' });
            this.toolTipDiv = ej2_base_1.createElement('div', { className: 'e-de-subcontainer-left' });
            this.bookmarkDiv = ej2_base_1.createElement('div', { className: 'e-de-subcontainer-right' });
            this.tooltipInput = ej2_base_1.createElement('input', { className: 'e-input e-bookmark-textbox-input' });
            this.bookmarkInput = ej2_base_1.createElement('input', { className: 'e-input e-bookmark-textbox-input' });
            this.dropDownEnableDiv = ej2_base_1.createElement('div');
            this.dropDownEnableEle = ej2_base_1.createElement('input', { attrs: { type: 'checkbox' } });
            this.dropDownEnable = new ej2_buttons_1.CheckBox({
                cssClass: 'e-de-ff-dlg-check',
                label: localValue.getConstant('Dropdown enabled'),
                enableRtl: isRtl
            });
            Iif (isRtl) {
                this.listviewDiv.classList.add('e-de-rtl');
                this.moveUpButtonEle.classList.add('e-de-rtl');
                this.toolTipDiv.classList.add('e-de-rtl');
                this.bookmarkDiv.classList.add('e-de-rtl');
            }
            this.dropDownEnableDiv.setAttribute('aria-label', localValue.getConstant('Dropdown enabled'));
            this.target.appendChild(this.dialogDiv);
            this.dialogDiv.appendChild(this.firstDiv);
            this.firstDiv.appendChild(this.drpDownItemsInput);
            this.dialogDiv.appendChild(this.itemsDrpItemsLabel);
            this.dialogDiv.appendChild(this.secondDiv);
            this.secondDiv.appendChild(this.listviewDiv);
            this.listviewInstance.appendTo(this.listviewDiv);
            this.secondDiv.appendChild(this.buttonDiv);
            this.buttonDiv.appendChild(this.addButtonDiv);
            this.addButtonDiv.appendChild(this.addButtonEle);
            this.addButton.appendTo(this.addButtonEle);
            this.buttonDiv.appendChild(this.editButtonDiv);
            this.editButtonDiv.appendChild(this.editButtonEle);
            this.editButton.appendTo(this.editButtonEle);
            this.buttonDiv.appendChild(this.removeButtonDiv);
            this.removeButtonDiv.appendChild(this.removeButtonEle);
            this.removeButton.appendTo(this.removeButtonEle);
            this.buttonDiv.appendChild(this.moveBtnDiv);
            this.moveBtnDiv.appendChild(this.moveUpButtonDiv);
            this.moveUpButtonDiv.appendChild(this.moveUpButtonEle);
            this.moveUpButton.appendTo(this.moveUpButtonEle);
            this.moveBtnDiv.appendChild(this.moveDownButtonDiv);
            this.moveDownButtonDiv.appendChild(this.moveDownButtonEle);
            this.moveDownButton.appendTo(this.moveDownButtonEle);
            this.dialogDiv.appendChild(this.fileSettingsLabel);
            this.dialogDiv.appendChild(this.thirdDiv);
            this.thirdDiv.appendChild(this.toolTipDiv);
            this.toolTipDiv.appendChild(this.tooltipInput);
            this.thirdDiv.appendChild(this.bookmarkDiv);
            this.bookmarkDiv.appendChild(this.bookmarkInput);
            this.dialogDiv.appendChild(this.dropDownEnableDiv);
            this.dropDownEnableDiv.appendChild(this.dropDownEnableEle);
            this.dropDownEnable.appendTo(this.dropDownEnableEle);
            new ej2_inputs_1.TextBox({ placeholder: localValue.getConstant('Tooltip'), floatLabelType: 'Always' }, this.tooltipInput);
            new ej2_inputs_1.TextBox({ placeholder: localValue.getConstant('Name'), floatLabelType: 'Always' }, this.bookmarkInput);
            new ej2_inputs_1.TextBox({ placeholder: localValue.getConstant('Dropdown items'), floatLabelType: 'Always' }, this.drpDownItemsInput);
            this.tooltipInput.setAttribute('aria-labelledby', localValue.getConstant('Tooltip'));
            this.bookmarkInput.setAttribute('aria-labelledby', localValue.getConstant('Name'));
            this.drpDownItemsInput.setAttribute('aria-labelledby', localValue.getConstant('Dropdown items'));
        };
        DropDownFormFieldDialog.prototype.show = function () {
            var localObj = new ej2_base_1.L10n('documenteditor', this.documentHelper.owner.defaultLocale);
            localObj.setLocale(this.documentHelper.owner.locale);
            if (ej2_base_1.isNullOrUndefined(this.target)) {
                this.initTextDialog(localObj, this.documentHelper.owner.enableRtl);
            }
            this.loadDropDownDialog();
            this.documentHelper.dialog.header = localObj.getConstant('Drop Down Form Field');
            this.documentHelper.dialog.position = { X: 'center', Y: 'center' };
            this.documentHelper.dialog.height = 'auto';
            this.documentHelper.dialog.width = '448px';
            this.documentHelper.dialog.content = this.target;
            this.documentHelper.dialog.buttons = [{
                    click: this.insertDropDownField,
                    buttonModel: { content: localObj.getConstant('Ok'), cssClass: 'e-flat e-table-cell-margin-okay', isPrimary: true }
                },
                {
                    click: this.onCancelButtonClick,
                    buttonModel: { content: localObj.getConstant('Cancel'), cssClass: 'e-flat e-table-cell-margin-cancel' }
                }];
            this.documentHelper.dialog.show();
        };
        DropDownFormFieldDialog.prototype.loadDropDownDialog = function () {
            var inline = this.owner.selectionModule.getCurrentFormField();
            Eif (inline instanceof page_1.FieldElementBox) {
                this.fieldBegin = inline;
                this.dropDownInstance = inline.formFieldData;
                Iif (this.dropDownInstance.dropdownItems.length > 0) {
                    var index = this.dropDownInstance.selectedIndex;
                    this.currentSelectedItem = this.dropDownInstance.dropdownItems[index];
                }
                Eif (this.dropDownInstance.enabled) {
                    this.dropDownEnable.checked = true;
                }
                else {
                    this.dropDownEnable.disabled = false;
                }
                Iif (this.dropDownInstance.helpText !== '') {
                    this.tooltipInput.value = this.dropDownInstance.helpText;
                }
                else {
                    this.tooltipInput.value = '';
                }
                Eif (this.dropDownInstance.name !== '') {
                    this.bookmarkInput.value = this.dropDownInstance.name;
                }
                else {
                    this.bookmarkInput.value = '';
                }
                this.dropDownItems = this.dropDownInstance.dropdownItems.slice();
                this.updateList();
            }
        };
        DropDownFormFieldDialog.prototype.updateList = function () {
            this.listviewInstance.dataSource = this.dropDownItems.slice();
            this.listviewInstance.dataBind();
            if (this.currentSelectedItem) {
                var toSelectItem = this.currentSelectedItem;
                this.listviewInstance.selectItem(toSelectItem);
            }
        };
        DropDownFormFieldDialog.prototype.onAddItemtoListClick = function () {
            this.addItemtoList();
        };
        DropDownFormFieldDialog.prototype.onRemoveItemFromListClick = function () {
            this.removeItemFromList();
        };
        DropDownFormFieldDialog.prototype.onMoveUpItemClick = function () {
            this.moveUpItem();
        };
        DropDownFormFieldDialog.prototype.onMouseDownItemClick = function () {
            this.moveDownItem();
        };
        DropDownFormFieldDialog.prototype.getSelectedIndex = function () {
            for (var i = 0; i < this.dropDownItems.length; i++) {
                Eif (this.dropDownItems[i] === this.currentSelectedItem) {
                    return i;
                }
            }
            return 0;
        };
        DropDownFormFieldDialog.prototype.moveUp = function (fromIndex, toIndex) {
            var tempData = [];
            if (fromIndex === 0) {
                for (var i = 0; i < this.dropDownItems.length; i++) {
                    Iif (i < (this.dropDownItems.length - 1)) {
                        tempData[i] = this.dropDownItems[i + 1];
                    }
                    else {
                        tempData[i] = this.dropDownItems[0];
                    }
                }
                this.dropDownItems = tempData;
            }
            else {
                var temp = this.dropDownItems[fromIndex];
                this.dropDownItems[fromIndex] = this.dropDownItems[toIndex];
                this.dropDownItems[toIndex] = temp;
            }
        };
        DropDownFormFieldDialog.prototype.moveDown = function (fromIndex, toIndex) {
            var tempData = [];
            Iif (fromIndex === (this.dropDownItems.length - 1)) {
                for (var i = 0; i < this.dropDownItems.length; i++) {
                    if (i !== 0) {
                        tempData[i] = this.dropDownItems[i - 1];
                    }
                    else {
                        tempData[i] = this.dropDownItems[(this.dropDownItems.length - 1)];
                    }
                }
                this.dropDownItems = tempData;
            }
            else {
                var temp = this.dropDownItems[fromIndex];
                this.dropDownItems[fromIndex] = this.dropDownItems[toIndex];
                this.dropDownItems[toIndex] = temp;
            }
        };
        DropDownFormFieldDialog.prototype.onKeyUpOnTextBoxClick = function () {
            this.onKeyUpOnTextBox();
        };
        DropDownFormFieldDialog.prototype.enableOrDisableButton = function () {
            Eif (!ej2_base_1.isNullOrUndefined(this.addButton)) {
                this.addButton.disabled = (this.drpDownItemsInput.value === '');
            }
        };
        DropDownFormFieldDialog.prototype.destroy = function () {
            var dropDownDialogTarget = this.target;
            if (dropDownDialogTarget) {
                if (dropDownDialogTarget.parentElement) {
                    dropDownDialogTarget.parentElement.removeChild(dropDownDialogTarget);
                }
                this.target = undefined;
            }
            this.owner = undefined;
            this.drpDownItemsInput = undefined;
            this.removeEvents();
            this.removeElements();
            if (this.listviewInstance) {
                this.listviewInstance.destroy();
                this.listviewInstance = undefined;
            }
            if (this.addButton) {
                this.addButton.destroy();
                this.addButton = undefined;
            }
            if (this.editButton) {
                this.editButton.destroy();
                this.editButton = undefined;
            }
            if (this.removeButton) {
                this.removeButton.destroy();
                this.removeButton = undefined;
            }
            if (this.moveUpButton) {
                this.moveUpButton.destroy();
                this.moveUpButton = undefined;
            }
            if (this.moveDownButton) {
                this.moveDownButton.destroy();
                this.moveDownButton = undefined;
            }
            this.tooltipInput = undefined;
            this.bookmarkInput = undefined;
            if (this.dropDownEnable) {
                this.dropDownEnable.destroy();
                this.dropDownEnable = undefined;
            }
            this.dropDownInstance = undefined;
        };
        DropDownFormFieldDialog.prototype.removeEvents = function () {
            if (this.addButtonEle) {
                this.addButtonEle.removeEventListener('click', this.addItemtoListClickHandler);
            }
            if (this.removeButtonEle) {
                this.removeButtonEle.removeEventListener('click', this.removeItemFromListClickHandler);
            }
            if (this.moveUpButtonEle) {
                this.moveUpButtonEle.removeEventListener('click', this.moveUpItemClickHandler);
            }
            if (this.moveDownButtonEle) {
                this.moveDownButtonEle.removeEventListener('click', this.moveDownItemClickHandler);
            }
            Iif (this.drpDownItemsInput) {
                this.drpDownItemsInput.removeEventListener('keyup', this.keyUpOnTextBoxClickHandler);
            }
        };
        DropDownFormFieldDialog.prototype.removeElements = function () {
            if (this.dialogDiv) {
                this.dialogDiv.remove();
                this.dialogDiv = undefined;
            }
            if (this.firstDiv) {
                this.firstDiv.remove();
                this.firstDiv = undefined;
            }
            if (this.secondDiv) {
                this.secondDiv.remove();
                this.secondDiv = undefined;
            }
            if (this.itemsDrpItemsLabel) {
                this.itemsDrpItemsLabel.remove();
                this.itemsDrpItemsLabel = undefined;
            }
            if (this.listviewDiv) {
                this.listviewDiv.remove();
                this.listviewDiv = undefined;
            }
            if (this.buttonDiv) {
                this.buttonDiv.remove();
                this.buttonDiv = undefined;
            }
            if (this.addButtonDiv) {
                this.addButtonDiv.remove();
                this.addButtonDiv = undefined;
            }
            if (this.addButtonEle) {
                this.addButtonEle.remove();
                this.addButtonEle = undefined;
            }
            if (this.editButtonDiv) {
                this.editButtonDiv.remove();
                this.editButtonDiv = undefined;
            }
            if (this.editButtonEle) {
                this.editButtonEle.remove();
                this.editButtonEle = undefined;
            }
            if (this.removeButtonDiv) {
                this.removeButtonDiv.remove();
                this.removeButtonDiv = undefined;
            }
            if (this.removeButtonEle) {
                this.removeButtonEle.remove();
                this.removeButtonEle = undefined;
            }
            if (this.moveBtnDiv) {
                this.moveBtnDiv.remove();
                this.moveBtnDiv = undefined;
            }
            if (this.moveUpButtonDiv) {
                this.moveUpButtonDiv.remove();
                this.moveUpButtonDiv = undefined;
            }
            if (this.moveUpButtonEle) {
                this.moveUpButtonEle.remove();
                this.moveUpButtonEle = undefined;
            }
            if (this.moveDownButtonDiv) {
                this.moveDownButtonDiv.remove();
                this.moveDownButtonDiv = undefined;
            }
            if (this.moveDownButtonEle) {
                this.moveDownButtonEle.remove();
                this.moveDownButtonEle = undefined;
            }
            if (this.fileSettingsLabel) {
                this.fileSettingsLabel.remove();
                this.fileSettingsLabel = undefined;
            }
            if (this.thirdDiv) {
                this.thirdDiv.remove();
                this.thirdDiv = undefined;
            }
            if (this.toolTipDiv) {
                this.toolTipDiv.remove();
                this.toolTipDiv = undefined;
            }
            if (this.bookmarkDiv) {
                this.bookmarkDiv.remove();
                this.bookmarkDiv = undefined;
            }
            if (this.dropDownEnableDiv) {
                this.dropDownEnableDiv.remove();
                this.dropDownEnableDiv = undefined;
            }
            if (this.dropDownEnableEle) {
                this.dropDownEnableEle.remove();
                this.dropDownEnableEle = undefined;
            }
        };
        return DropDownFormFieldDialog;
    }());
    exports.DropDownFormFieldDialog = DropDownFormFieldDialog;
});