powerbi-visuals-tools 4.0.5 → 4.0.7

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.
Files changed (51) hide show
  1. package/Changelog.md +11 -0
  2. package/bin/pbiviz-start.js +3 -1
  3. package/certs/PowerBICustomVisualTest_private.key +28 -0
  4. package/certs/PowerBICustomVisualTest_public.crt +19 -0
  5. package/config.json +35 -1
  6. package/lib/VisualGenerator.js +0 -95
  7. package/package.json +19 -16
  8. package/spec/.jshintrc +5 -0
  9. package/spec/clean-tests.js +31 -0
  10. package/spec/e2e/pbivizCertSpec.js +56 -0
  11. package/spec/e2e/pbivizInfoSpec.js +82 -0
  12. package/spec/e2e/pbivizNewSpec.js +265 -0
  13. package/spec/e2e/pbivizPackageSpec.js +670 -0
  14. package/spec/e2e/pbivizStartSpec.js +380 -0
  15. package/spec/e2e/pbivizWebpackVerSpec.js +102 -0
  16. package/spec/e2e/utils.js +63 -0
  17. package/spec/helpers/FileSystem.js +173 -0
  18. package/spec/jasmine-runner.js +36 -0
  19. package/spec/support/jasmine.json +11 -0
  20. package/templates/visuals/default/capabilities.json +2 -7
  21. package/templates/visuals/default/package.json +2 -2
  22. package/templates/visuals/default/pbiviz.json +1 -1
  23. package/templates/visuals/default/src/settings.ts +54 -3
  24. package/templates/visuals/default/src/visual.ts +14 -17
  25. package/templates/visuals/rhtml/capabilities.json +2 -1
  26. package/templates/visuals/rhtml/package.json +2 -2
  27. package/templates/visuals/rhtml/pbiviz.json +1 -1
  28. package/templates/visuals/rhtml/src/settings.ts +28 -3
  29. package/templates/visuals/rhtml/src/visual.ts +29 -23
  30. package/templates/visuals/rvisual/capabilities.json +2 -1
  31. package/templates/visuals/rvisual/package.json +2 -2
  32. package/templates/visuals/rvisual/pbiviz.json +1 -1
  33. package/templates/visuals/rvisual/src/settings.ts +28 -3
  34. package/templates/visuals/rvisual/src/visual.ts +13 -15
  35. package/templates/visuals/slicer/capabilities.json +2 -1
  36. package/templates/visuals/slicer/package.json +2 -2
  37. package/templates/visuals/slicer/pbiviz.json +1 -1
  38. package/templates/visuals/slicer/src/settings.ts +29 -3
  39. package/templates/visuals/slicer/src/visual.ts +14 -17
  40. package/templates/visuals/table/capabilities.json +2 -1
  41. package/templates/visuals/table/package.json +2 -2
  42. package/templates/visuals/table/pbiviz.json +1 -1
  43. package/templates/visuals/table/src/settings.ts +23 -3
  44. package/templates/visuals/table/src/visual.ts +18 -16
  45. package/.eslintrc.json +0 -313
  46. package/.gitattributes +0 -4
  47. package/.github/workflows/build.yml +0 -32
  48. package/.github/workflows/codeql-analysis.yml +0 -54
  49. package/.snyk +0 -4
  50. package/.vscode/launch.json +0 -74
  51. package/.vscode/settings.json +0 -3
@@ -1,32 +0,0 @@
1
- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
-
4
- name: build
5
-
6
- on:
7
- push:
8
- branches: [ main ]
9
- pull_request:
10
- branches: [ main ]
11
-
12
- jobs:
13
- build:
14
-
15
- runs-on: ubuntu-latest
16
-
17
- strategy:
18
- matrix:
19
- node-version: [12.x]
20
-
21
- steps:
22
- - uses: actions/checkout@v2
23
- - name: Use Node.js ${{ matrix.node-version }}
24
- uses: actions/setup-node@v1
25
- with:
26
- node-version: ${{ matrix.node-version }}
27
- - run: npm ci
28
- - run: npm run build --if-present
29
- - run: npm run lint
30
- - run: npm test
31
- env:
32
- CI: true
@@ -1,54 +0,0 @@
1
- name: "CodeQL"
2
-
3
- on:
4
- push:
5
- branches: [main, ]
6
- pull_request:
7
- # The branches below must be a subset of the branches above
8
- branches: [main]
9
- schedule:
10
- - cron: '0 16 * * 6'
11
-
12
- jobs:
13
- analyse:
14
- name: Analyse
15
- runs-on: ubuntu-latest
16
-
17
- steps:
18
- - name: Checkout repository
19
- uses: actions/checkout@v2
20
- with:
21
- # We must fetch at least the immediate parents so that if this is
22
- # a pull request then we can checkout the head.
23
- fetch-depth: 2
24
-
25
- # If this run was triggered by a pull request event, then checkout
26
- # the head of the pull request instead of the merge commit.
27
- - run: git checkout HEAD^2
28
- if: ${{ github.event_name == 'pull_request' }}
29
-
30
- # Initializes the CodeQL tools for scanning.
31
- - name: Initialize CodeQL
32
- uses: github/codeql-action/init@v1
33
- # Override language selection by uncommenting this and choosing your languages
34
- # with:
35
- # languages: go, javascript, csharp, python, cpp, java
36
-
37
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38
- # If this step fails, then you should remove it and run the build manually (see below)
39
- - name: Autobuild
40
- uses: github/codeql-action/autobuild@v1
41
-
42
- # ℹ️ Command-line programs to run using the OS shell.
43
- # 📚 https://git.io/JvXDl
44
-
45
- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46
- # and modify them (or add more) to build your code if your project
47
- # uses a compiled language
48
-
49
- #- run: |
50
- # make bootstrap
51
- # make release
52
-
53
- - name: Perform CodeQL Analysis
54
- uses: github/codeql-action/analyze@v1
package/.snyk DELETED
@@ -1,4 +0,0 @@
1
- # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2
- version: v1.14.1
3
- ignore: {}
4
- patch: {}
@@ -1,74 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible Node.js debug attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "type": "node",
9
- "request": "launch",
10
- "name": "Launch Program",
11
- "cwd": "${workspaceRoot}",
12
- "program": "${workspaceFolder}\\bin\\pbiviz-new.js",
13
- "args": [
14
- "-t",
15
- "circlecard",
16
- "mynewsample"
17
- ]
18
- },
19
- {
20
- "type": "node",
21
- "request": "launch",
22
- "name": "pbiviz-start t1",
23
- "cwd": "${workspaceFolder}\\testGround\\t1",
24
- "program": "${workspaceFolder}\\bin\\pbiviz.js",
25
- "args": [
26
- "start"
27
- ]
28
- },
29
- {
30
- "type": "node",
31
- "request": "launch",
32
- "name": "pbiviz-start t1 Linux",
33
- "cwd": "${workspaceFolder}/testGround/t1",
34
- "program": "${workspaceFolder}/bin/pbiviz.js",
35
- "args": ["start"]
36
- },
37
- {
38
- "type": "node",
39
- "request": "launch",
40
- "name": "pbiviz-package t1",
41
- "cwd": "${workspaceFolder}\\testGround\\t1",
42
- "program": "${workspaceFolder}\\bin\\pbiviz.js",
43
- "args": ["package"]
44
- },
45
- {
46
- "type": "node",
47
- "request": "launch",
48
- "name": "pbiviz-new circle",
49
- "cwd": "${workspaceFolder}\\testGround",
50
- "program": "${workspaceFolder}\\bin\\pbiviz.js",
51
- "args": [
52
- "new",
53
- "-t",
54
- "circlecard",
55
- "circlecard-sample",
56
- "-f"
57
- ]
58
- },
59
- {
60
- "type": "node",
61
- "request": "launch",
62
- "name": "test pbiviz-start",
63
- "cwd": "${workspaceRoot}",
64
- "program": "${workspaceFolder}\\bin\\pbiviz.js",
65
- "args": [
66
- "new",
67
- "-t",
68
- "circlecard",
69
- "mynewsample",
70
- "-f"
71
- ]
72
- }
73
- ]
74
- }
@@ -1,3 +0,0 @@
1
- {
2
- "files.eol": "\n"
3
- }