all files / workbook/common/ module.js

100% Statements 46/46
100% Branches 38/38
100% Functions 2/2
100% Lines 45/45
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   4313× 4313×       4313×       4313× 4304×         4313× 4312×         4313× 4303×         4313× 4294×       4294×         4313× 4298×         4313× 4306×         4313× 4300×   4313× 4301×   4313× 4296×   4313× 4301×   4313× 4288×   4313× 4289×   4313× 4300×   4313× 4299×   4313× 4306×   4313× 4291×   4313× 4296×   4313× 4299×   4313×      
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    function getWorkbookRequiredModules(context, modules) {
        if (modules === void 0) { modules = []; }
        modules.push({
            member: 'dataBind',
            args: [context]
        });
        modules.push({
            member: 'workbookProtectSheet',
            args: [context]
        });
        if (context.allowSave) {
            modules.push({
                member: 'workbookSave',
                args: [context]
            });
        }
        if (context.allowPrint) {
            modules.push({
                member: 'print',
                args: [context]
            });
        }
        if (context.allowOpen) {
            modules.push({
                member: 'workbookOpen',
                args: [context]
            });
        }
        if (context.allowEditing) {
            modules.push({
                member: 'workbookEdit',
                args: [context]
            });
            modules.push({
                member: 'workbookFormula',
                args: [context]
            });
        }
        if (context.allowNumberFormatting) {
            modules.push({
                member: 'workbookNumberFormat',
                args: [context]
            });
        }
        if (context.allowCellFormatting) {
            modules.push({
                member: 'workbookcellformat',
                args: [context]
            });
        }
        if (context.allowSorting) {
            modules.push({ member: 'workbookSort', args: [context] });
        }
        if (context.allowHyperlink) {
            modules.push({ member: 'workbookHyperlink', args: [context] });
        }
        if (context.allowFiltering) {
            modules.push({ member: 'workbookFilter', args: [context] });
        }
        if (context.allowFindAndReplace) {
            modules.push({ member: 'workbookfindAndReplace', args: [context] });
        }
        if (context.allowInsert) {
            modules.push({ member: 'workbookinsert', args: [context] });
        }
        if (context.allowDelete) {
            modules.push({ member: 'workbookdelete', args: [context] });
        }
        if (context.allowDataValidation) {
            modules.push({ member: 'workbookDataValidation', args: [context] });
        }
        if (context.allowMerge) {
            modules.push({ member: 'workbookmerge', args: [context] });
        }
        if (context.allowCellFormatting) {
            modules.push({ member: 'workbookConditionalFormatting', args: [context] });
        }
        if (context.allowImage) {
            modules.push({ member: 'workbookImage', args: [context] });
        }
        if (context.allowChart) {
            modules.push({ member: 'workbookChart', args: [context] });
        }
        if (context.allowAutoFill) {
            modules.push({ member: 'workbookautofill', args: [context] });
        }
        return modules;
    }
    exports.getWorkbookRequiredModules = getWorkbookRequiredModules;
});