all files / pivotview/model/ flatsettings.js

100% Statements 92/92
100% Branches 42/42
100% Functions 14/14
100% Lines 86/86
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 196 197 198 199 200 201 202 203  1× 1× 1× 1× 1× 1×   1× 1× 1× 1×       1× 1× 1× 1× 1×   1×   1× 1× 1× 1× 378×   1×     1×     1×     1×     1×   1× 1× 1× 1× 378×   1×     1×     1×     1×     1×     1×   1× 1× 1× 1× 381×   1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×     1×   1×    
/* 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", "@syncfusion/ej2-grids", "@syncfusion/ej2-grids", "@syncfusion/ej2-grids"], function (require, exports, ej2_base_1, ej2_grids_1, ej2_grids_2, ej2_grids_3) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var FlatPageSettings = (function (_super) {
        __extends(FlatPageSettings, _super);
        function FlatPageSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(12)
        ], FlatPageSettings.prototype, "pageSize", void 0);
        __decorate([
            ej2_base_1.Property(1)
        ], FlatPageSettings.prototype, "currentPage", void 0);
        __decorate([
            ej2_base_1.Property(8)
        ], FlatPageSettings.prototype, "pageCount", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatPageSettings.prototype, "pageSizes", void 0);
        return FlatPageSettings;
    }(ej2_base_1.ChildProperty));
    exports.FlatPageSettings = FlatPageSettings;
    var FlatColumnChooserSettings = (function (_super) {
        __extends(FlatColumnChooserSettings, _super);
        function FlatColumnChooserSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property('startsWith')
        ], FlatColumnChooserSettings.prototype, "operator", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatColumnChooserSettings.prototype, "ignoreAccent", void 0);
        __decorate([
            ej2_base_1.Property(true)
        ], FlatColumnChooserSettings.prototype, "enableSearching", void 0);
        __decorate([
            ej2_base_1.Property('Default')
        ], FlatColumnChooserSettings.prototype, "mode", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], FlatColumnChooserSettings.prototype, "immediateModeDelay", void 0);
        return FlatColumnChooserSettings;
    }(ej2_base_1.ChildProperty));
    exports.FlatColumnChooserSettings = FlatColumnChooserSettings;
    var FlatSettings = (function (_super) {
        __extends(FlatSettings, _super);
        function FlatSettings() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "rowSelecting", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "rowSelected", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "rowDeselecting", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "rowDeselected", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "cellSelecting", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "cellSelected", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "cellDeselecting", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "cellDeselected", void 0);
        __decorate([
            ej2_base_1.Property([])
        ], FlatSettings.prototype, "toolbar", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "showColumnChooser", void 0);
        __decorate([
            ej2_base_1.Complex({}, FlatColumnChooserSettings)
        ], FlatSettings.prototype, "columnChooserSettings", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "queryCellInfo", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "headerCellInfo", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "columns", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowSorting", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowMultiSorting", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowFiltering", void 0);
        __decorate([
            ej2_base_1.Complex({}, ej2_grids_1.SortSettings)
        ], FlatSettings.prototype, "sortSettings", void 0);
        __decorate([
            ej2_base_1.Complex({ type: 'Menu' }, ej2_grids_1.FilterSettings)
        ], FlatSettings.prototype, "filterSettings", void 0);
        __decorate([
            ej2_base_1.Complex({}, ej2_grids_2.SearchSettings)
        ], FlatSettings.prototype, "searchSettings", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowAdvancedFiltering", void 0);
        __decorate([
            ej2_base_1.Complex({}, ej2_grids_2.AdvancedFilterSettings)
        ], FlatSettings.prototype, "advancedFilterSettings", void 0);
        __decorate([
            ej2_base_1.Property(0)
        ], FlatSettings.prototype, "frozenColumns", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "showColumnMenu", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "columnMenuItems", void 0);
        __decorate([
            ej2_base_1.Property([])
        ], FlatSettings.prototype, "aggregates", void 0);
        __decorate([
            ej2_base_1.Property('None')
        ], FlatSettings.prototype, "totalsPosition", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowPaging", void 0);
        __decorate([
            ej2_base_1.Complex({}, FlatPageSettings)
        ], FlatSettings.prototype, "pageSettings", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "enableVirtualization", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "enableColumnVirtualization", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowSelection", void 0);
        __decorate([
            ej2_base_1.Complex({}, ej2_grids_3.SelectionSettings)
        ], FlatSettings.prototype, "selectionSettings", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowResizing", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowReordering", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowTextWrap", void 0);
        __decorate([
            ej2_base_1.Complex({}, ej2_grids_3.TextWrapSettings)
        ], FlatSettings.prototype, "textWrapSettings", void 0);
        __decorate([
            ej2_base_1.Property(undefined)
        ], FlatSettings.prototype, "rowHeight", void 0);
        __decorate([
            ej2_base_1.Property('Default')
        ], FlatSettings.prototype, "gridLines", void 0);
        __decorate([
            ej2_base_1.Property('Ellipsis')
        ], FlatSettings.prototype, "clipMode", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowExcelExport", void 0);
        __decorate([
            ej2_base_1.Property(false)
        ], FlatSettings.prototype, "allowPdfExport", void 0);
        return FlatSettings;
    }(ej2_base_1.ChildProperty));
    exports.FlatSettings = FlatSettings;
});