all files / pivotview/model/ gridsettings.js

98.84% Statements 85/86
92.31% Branches 36/39
91.67% Functions 11/12
98.75% Lines 79/80
18 statements, 7 functions, 29 branches Ignored     
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                                                129×                                                                                                                                                                                        
/* istanbul ignore next */ 
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* istanbul ignore next */ 
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
define(["require", "exports", "@syncfusion/ej2-base"], function (require, exports, ej2_base_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PivotSelectionSettings = (function (_super) {
        __extends(PivotSelectionSettings, _super);
        function PivotSelectionSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('Row')
        ], PivotSelectionSettings.prototype, "mode", void 0);
        __decorate([
            ej2_base_1.Property('Flow')
        ], PivotSelectionSettings.prototype, "cellSelectionMode", void 0);
        __decorate([
            ej2_base_1.Property('Single')
        ], PivotSelectionSettings.prototype, "type", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], PivotSelectionSettings.prototype, "checkboxOnly", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], PivotSelectionSettings.prototype, "persistSelection", void 0);
        __decorate([
            ej2_base_1.Property('Default')
        ], PivotSelectionSettings.prototype, "checkboxMode", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], PivotSelectionSettings.prototype, "enableSimpleMultiRowSelection", void 0);
        return PivotSelectionSettings;
    }(ej2_base_1.ChildProperty));
    exports.PivotSelectionSettings = PivotSelectionSettings;
    var GridSettings = (function (_super) {
        __extends(GridSettings, _super);
        function GridSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('auto')
        ], GridSettings.prototype, "height", void 0);
        __decorate([
            ej2_base_1.Property('auto')
        ], GridSettings.prototype, "width", void 0);
        __decorate([
            ej2_base_1.Property('Both')
        ], GridSettings.prototype, "gridLines", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], GridSettings.prototype, "allowTextWrap", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], GridSettings.prototype, "allowReordering", void 0);
        __decorate([
            ej2_base_1.Property(true)
        ], GridSettings.prototype, "allowResizing", void 0);
        __decorate([
            ej2_base_1.Property(true)
        ], GridSettings.prototype, "allowAutoResizing", void 0);
        __decorate([
            ej2_base_1.Property(null)
        ], GridSettings.prototype, "rowHeight", void 0);
        __decorate([
            ej2_base_1.Property(110)
        ], GridSettings.prototype, "columnWidth", void 0);
        __decorate([
            ej2_base_1.Property('Ellipsis')
        ], GridSettings.prototype, "clipMode", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], GridSettings.prototype, "allowSelection", void 0);
        __decorate([
            ej2_base_1.Property(-1)
        ], GridSettings.prototype, "selectedRowIndex", void 0);
        __decorate([
            ej2_base_1.Property({ mode: 'Row', cellSelectionMode: 'Flow', type: 'Single' })
        ], GridSettings.prototype, "selectionSettings", void 0);
        __decorate([
            ej2_base_1.Property({ wrapMode: 'Both' })
        ], GridSettings.prototype, "textWrapSettings", void 0);
        __decorate([
            ej2_base_1.Property('AllPages')
        ], GridSettings.prototype, "printMode", void 0);
        __decorate([
            ej2_base_1.Property()
        ], GridSettings.prototype, "contextMenuItems", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "beforeCopy", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "printComplete", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "beforePrint", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "beforePdfExport", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "beforeExcelExport", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "contextMenuOpen", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "contextMenuClick", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "queryCellInfo", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "headerCellInfo", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "rowSelecting", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "rowSelected", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "rowDeselecting", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "rowDeselected", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "cellSelecting", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "cellSelected", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "cellDeselecting", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "cellDeselected", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "resizeStart", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "resizing", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "resizeStop", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "pdfHeaderQueryCellInfo", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "pdfQueryCellInfo", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "excelHeaderQueryCellInfo", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "excelQueryCellInfo", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "columnDragStart", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "columnDrag", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "columnDrop", void 0);
        __decorate([
            ej2_base_1.Event()
        ], GridSettings.prototype, "columnRender", void 0);
        return GridSettings;
    }(ej2_base_1.ChildProperty));
    exports.GridSettings = GridSettings;
});