@microsoft/connected-workbooks 3.1.1-beta.1 → 3.1.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generators.js +9 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +29 -4
- package/dist/main.js +106 -187
- package/dist/types.js +9 -6
- package/dist/utils/arrayUtils.js +5 -2
- package/dist/utils/constants.js +69 -59
- package/dist/utils/documentUtils.js +42 -27
- package/dist/utils/gridUtils.js +10 -8
- package/dist/utils/htmlUtils.js +3 -1
- package/dist/utils/index.js +22 -8
- package/dist/utils/mashupDocumentParser.js +70 -47
- package/dist/utils/pqUtils.js +19 -15
- package/dist/utils/tableUtils.js +69 -63
- package/dist/utils/xmlInnerPartsUtils.js +80 -74
- package/dist/utils/xmlPartsUtils.js +31 -26
- package/dist/workbookManager.js +65 -48
- package/dist/workbookTemplate.js +5 -2
- package/package.json +4 -3
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Copyright (c) Microsoft Corporation.
|
|
2
3
|
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.generateCustomXmlFilePath = exports.generateSingleQueryMashup = exports.generateMashupXMLTemplate = void 0;
|
|
6
|
+
var generateMashupXMLTemplate = function (base64) {
|
|
4
7
|
return "<?xml version=\"1.0\" encoding=\"utf-16\"?><DataMashup xmlns=\"http://schemas.microsoft.com/DataMashup\">".concat(base64, "</DataMashup>");
|
|
5
8
|
};
|
|
6
|
-
|
|
9
|
+
exports.generateMashupXMLTemplate = generateMashupXMLTemplate;
|
|
10
|
+
var generateSingleQueryMashup = function (queryName, query) {
|
|
7
11
|
return "section Section1;\n \n shared #\"".concat(queryName, "\" = \n ").concat(query, ";");
|
|
8
12
|
};
|
|
9
|
-
|
|
13
|
+
exports.generateSingleQueryMashup = generateSingleQueryMashup;
|
|
14
|
+
var generateCustomXmlFilePath = function (i) { return "customXml/item".concat(i, ".xml"); };
|
|
15
|
+
exports.generateCustomXmlFilePath = generateCustomXmlFilePath;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as workbookManager from "./workbookManager";
|
|
2
1
|
import { DataTypes } from "./types";
|
|
3
2
|
import type { QueryInfo, FileConfigs, Grid, DocProps } from "./types";
|
|
4
3
|
export { DataTypes };
|
|
5
4
|
export type { QueryInfo, FileConfigs, Grid, DocProps };
|
|
6
|
-
export
|
|
5
|
+
export * as workbookManager from "./workbookManager";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Copyright (c) Microsoft Corporation.
|
|
2
3
|
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.workbookManager = exports.DataTypes = void 0;
|
|
29
|
+
var types_1 = require("./types");
|
|
30
|
+
Object.defineProperty(exports, "DataTypes", { enumerable: true, get: function () { return types_1.DataTypes; } });
|
|
31
|
+
exports.workbookManager = __importStar(require("./workbookManager"));
|