Skip to content

Commit 2a02083

Browse files
authored
Timeline Slicer 2.0.0 (#58)
* 29222 Update npm dependencies * 29223 [Timeline] Update TS code to use ES2015 modules * 29223 [Timeline] Update TS code to use ES2015 modules. Migrate d3 drag behavior to d3 v5.x.x * 29455 [Timeline] Restore a filter from dataView.jsonFilters instead SemanticFilter * 29454 [Timeline] Migrate UTs to ES2015 modules * 29469 [Timeline] Get rid of Interactive Utils * 29470 [Timeline] Fix the broken UTs after converting to ES2015 * 29456 [Timeline] Integrate TSList via Webpack * 29499 [Timeline] Fix TSList issues. * 29549 Prepare a PR for Timeline v2.0.0 * 29557 Timeline 2.0.0 does not report coverage to coveralls * 29081 Migrate Timeline to API 2.2.0 and PBIVIZ 3.x.x * Turn on babel polyfill for IE11 * 29753 scroll position option breaks slicer
1 parent 98379e1 commit 2a02083

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+13232
-12413
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
10+
[*.json]
11+
indent_size = 2
12+
13+
[*.less]
14+
indent_size = 4
15+
16+
[*.ts]
17+
indent_size = 4

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ dist
55
typings
66
.api
77
*.log
8-
coverage
8+
coverage
9+
webpack.statistics.html
10+
webpack.statistics.dev.html
11+
webpack.statistics.prod.html

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ addons:
1010
install:
1111
- npm install
1212
script:
13-
- npm run lint
1413
- npm run test
1514
after_success:
1615
- node node_modules/coveralls/bin/coveralls.js < coverage/lcov.info
1716
notifications:
18-
email: false
17+
email: false

.vscode/settings.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"editor.tabSize": 4,
3-
"editor.insertSpaces": true,
4-
"files.eol": "\n",
52
"files.watcherExclude": {
63
"**/.git/objects/**": true,
74
"**/node_modules/**": true,
@@ -11,27 +8,26 @@
118
".tmp": true
129
},
1310
"search.exclude": {
14-
".tmp": true,
15-
"typings": true
11+
".tmp": true
1612
},
1713
"json.schemas": [
1814
{
1915
"fileMatch": [
20-
"/pbiviz.json"
16+
"pbiviz.json"
2117
],
22-
"url": "./.api/v1.13.0/schema.pbiviz.json"
18+
"url": "./node_modules/powerbi-visuals-api/schema.pbiviz.json"
2319
},
2420
{
2521
"fileMatch": [
26-
"/capabilities.json"
22+
"capabilities.json"
2723
],
28-
"url": "./.api/v1.13.0/schema.capabilities.json"
24+
"url": "./node_modules/powerbi-visuals-api/schema.capabilities.json"
2925
},
3026
{
3127
"fileMatch": [
32-
"/dependencies.json"
28+
"dependencies.json"
3329
],
34-
"url": "./.api/v1.13.0/schema.dependencies.json"
30+
"url": "./node_modules/powerbi-visuals-api/schema.dependencies.json"
3531
}
3632
]
3733
}

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 2.0.0
2+
* Updates API version to 2.3.0
3+
* Converts code to ES2015 syntax
4+
* Uses PBIVIZ 3.x.x
5+
* Gets rid of Interactive Utils
6+
* Uses jsonFilter to restore a filter
7+
* Updates TSLint flow and rules
8+
19
## 1.10.3
210
* FIX: unexpected exception if user clears selection
311

@@ -43,7 +51,7 @@
4351
* Increased API version to 1.11.0
4452

4553
## 1.6.4
46-
* Fix issue with incorrect selection after granularity change
54+
* Fix issue with incorrect selection after granularity change
4755
* Increased minimum width of cells for weeks, months, quarters and years
4856
* Changed title of week granularity
4957

@@ -97,4 +105,4 @@
97105
* Fixed cross filtering selection
98106

99107
## 1.4.1
100-
* Fixed selection of "selected range + 1 day" issue
108+
* Fixed selection of "selected range + 1 day" issue

karma.conf.js

Lines changed: 0 additions & 98 deletions
This file was deleted.

karma.conf.ts

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Power BI Visualizations
3+
*
4+
* Copyright (c) Microsoft Corporation
5+
* All rights reserved.
6+
* MIT License
7+
*
8+
* Permission is hereby granted, free of charge, to any person obtaining a copy
9+
* of this software and associated documentation files (the "Software"), to deal
10+
* in the Software without restriction, including without limitation the rights
11+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
* copies of the Software, and to permit persons to whom the Software is
13+
* furnished to do so, subject to the following conditions:
14+
*
15+
* The above copyright notice and this permission notice shall be included in
16+
* all copies or substantial portions of the Software.
17+
*
18+
* THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
* THE SOFTWARE.
25+
*/
26+
27+
"use strict";
28+
29+
process.env.CHROME_BIN = require("puppeteer").executablePath();
30+
31+
const path = require("path");
32+
33+
const webpackConfig = require("./test.webpack.config.js");
34+
const tsconfig = require("./tsconfig.json");
35+
36+
import { Config, ConfigOptions } from "karma";
37+
38+
const testRecursivePath = "test/*.test.ts";
39+
const coverageFolder = "coverage";
40+
41+
module.exports = (config: Config) => {
42+
config.set({
43+
browsers: ["ChromeHeadless"],
44+
colors: true,
45+
coverageIstanbulReporter: {
46+
"combineBrowserReports": true,
47+
"dir": path.join(__dirname, coverageFolder),
48+
"fixWebpackSourcePaths": true,
49+
"report-config": {
50+
html: {
51+
subdir: "html-report",
52+
},
53+
},
54+
"reports": ["html", "lcovonly", "text-summary", "cobertura"],
55+
"verbose": false,
56+
},
57+
coverageReporter: {
58+
dir: path.join(__dirname, coverageFolder),
59+
reporters: [
60+
{ type: "html", subdir: "html-report" },
61+
{ type: "lcov", subdir: "lcov" },
62+
{ type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" },
63+
{ type: "lcovonly", subdir: ".", file: "report-lcovonly.txt" },
64+
{ type: "text-summary", subdir: ".", file: "text-summary.txt" },
65+
],
66+
},
67+
files: [
68+
testRecursivePath,
69+
],
70+
frameworks: ["jasmine"],
71+
junitReporter: {
72+
outputDir: path.join(__dirname, coverageFolder),
73+
outputFile: "TESTS-report.xml",
74+
useBrowserName: false,
75+
},
76+
mime: {
77+
"text/x-typescript": ["ts", "tsx"],
78+
},
79+
reporters: [
80+
"progress",
81+
"junit",
82+
"coverage-istanbul",
83+
],
84+
preprocessors: {
85+
[testRecursivePath]: ["webpack", "sourcemap"],
86+
},
87+
singleRun: true,
88+
typescriptPreprocessor: {
89+
options: tsconfig.compilerOptions,
90+
},
91+
webpack: webpackConfig,
92+
webpackMiddleware: {
93+
noInfo: true,
94+
},
95+
} as ConfigOptions);
96+
};

0 commit comments

Comments
 (0)