@oncehub/knowledgeowl-angular 0.0.0
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/.eslintrc.json +82 -0
- package/.github/workflows/codeql-analysis.yml +71 -0
- package/.github/workflows/npm-publish.yml +23 -0
- package/.lighthouse/jenkins-x/Kptfile +11 -0
- package/.lighthouse/jenkins-x/pullrequest.yaml +278 -0
- package/.lighthouse/jenkins-x/release.yaml +269 -0
- package/.lighthouse/jenkins-x/triggers.yaml +19 -0
- package/.prettierignore +2 -0
- package/.prettierrc +3 -0
- package/.travis.yml +3 -0
- package/CHANGELOG.md +250 -0
- package/LICENSE +21 -0
- package/OWNERS +4 -0
- package/OWNERS_ALIASES +25 -0
- package/README.md +104 -0
- package/angular.json +47 -0
- package/deploy.sh +19 -0
- package/package-deploy/npm-login.js +14 -0
- package/package.json +61 -0
- package/src/README.md +5 -0
- package/src/lib/index.ts +2 -0
- package/src/lib/knowledge-owl-link/index.ts +1 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-link-module.ts +10 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-link.spec.ts +51 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-link.ts +97 -0
- package/src/lib/knowledge-owl-link/knowledge-owl-widget-errors.ts +3 -0
- package/src/lib/knowledge-owl-link/public-api.ts +2 -0
- package/src/lib/knowledge-owl-widget/index.ts +1 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget-errors.ts +6 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget-module.ts +11 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget.spec.ts +66 -0
- package/src/lib/knowledge-owl-widget/knowledge-owl-widget.ts +162 -0
- package/src/lib/knowledge-owl-widget/public-api.ts +2 -0
- package/src/lib/tsconfig.json +10 -0
- package/src/ng-package.json +7 -0
- package/src/package-lock.json +117 -0
- package/src/package.json +14 -0
- package/src/polyfills.ts +76 -0
- package/src/public_api.ts +1 -0
- package/src/tsconfig.lib.json +31 -0
- package/src/tsconfig.spec.json +18 -0
- package/test/karma.conf.js +44 -0
- package/test/test.ts +24 -0
- package/tsconfig.json +34 -0
- package/tsconfig.lib.prod.json +9 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "knowledgeowl-angular",
|
|
3
|
+
"version": "4.1.3",
|
|
4
|
+
"lockfileVersion": 2,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "knowledgeowl-angular",
|
|
9
|
+
"version": "4.1.3",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@angular/common": "14.2.12",
|
|
13
|
+
"@angular/core": "14.2.12"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"node_modules/@angular/common": {
|
|
17
|
+
"version": "14.2.12",
|
|
18
|
+
"resolved": "https://registry.npmjs.org/@angular/common/-/common-14.2.12.tgz",
|
|
19
|
+
"integrity": "sha512-oZunh9wfInFWhNO1P8uoEs/o4u8kerKMhw8GruywKm1TV7gHDP2Fi5WHGjFqq3XYptgBTPCTSEfyLX6Cwq1PUw==",
|
|
20
|
+
"peer": true,
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"tslib": "^2.3.0"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": "^14.15.0 || >=16.10.0"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@angular/core": "14.2.12",
|
|
29
|
+
"rxjs": "^6.5.3 || ^7.4.0"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"node_modules/@angular/core": {
|
|
33
|
+
"version": "14.2.12",
|
|
34
|
+
"resolved": "https://registry.npmjs.org/@angular/core/-/core-14.2.12.tgz",
|
|
35
|
+
"integrity": "sha512-sGQxU5u4uawwvJa6jOTmGoisJiQ5HIN/RoBw99CmoqZIVyUSg9IRJJC1KVdH8gbpWBNLkElZv21lwJTL/msWyg==",
|
|
36
|
+
"peer": true,
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"tslib": "^2.3.0"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": "^14.15.0 || >=16.10.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"rxjs": "^6.5.3 || ^7.4.0",
|
|
45
|
+
"zone.js": "~0.11.4 || ~0.12.0"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"node_modules/rxjs": {
|
|
49
|
+
"version": "7.8.1",
|
|
50
|
+
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
|
|
51
|
+
"integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
|
|
52
|
+
"peer": true,
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"tslib": "^2.1.0"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"node_modules/tslib": {
|
|
58
|
+
"version": "2.6.0",
|
|
59
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz",
|
|
60
|
+
"integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==",
|
|
61
|
+
"peer": true
|
|
62
|
+
},
|
|
63
|
+
"node_modules/zone.js": {
|
|
64
|
+
"version": "0.12.0",
|
|
65
|
+
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.12.0.tgz",
|
|
66
|
+
"integrity": "sha512-XtC+I5dXU14HrzidAKBNMqneIVUykLEAA1x+v4KVrd6AUPWlwYORF8KgsVqvgdHiKZ4BkxxjvYi/ksEixTPR0Q==",
|
|
67
|
+
"peer": true,
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"tslib": "^2.3.0"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@angular/common": {
|
|
75
|
+
"version": "14.2.12",
|
|
76
|
+
"resolved": "https://registry.npmjs.org/@angular/common/-/common-14.2.12.tgz",
|
|
77
|
+
"integrity": "sha512-oZunh9wfInFWhNO1P8uoEs/o4u8kerKMhw8GruywKm1TV7gHDP2Fi5WHGjFqq3XYptgBTPCTSEfyLX6Cwq1PUw==",
|
|
78
|
+
"peer": true,
|
|
79
|
+
"requires": {
|
|
80
|
+
"tslib": "^2.3.0"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"@angular/core": {
|
|
84
|
+
"version": "14.2.12",
|
|
85
|
+
"resolved": "https://registry.npmjs.org/@angular/core/-/core-14.2.12.tgz",
|
|
86
|
+
"integrity": "sha512-sGQxU5u4uawwvJa6jOTmGoisJiQ5HIN/RoBw99CmoqZIVyUSg9IRJJC1KVdH8gbpWBNLkElZv21lwJTL/msWyg==",
|
|
87
|
+
"peer": true,
|
|
88
|
+
"requires": {
|
|
89
|
+
"tslib": "^2.3.0"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"rxjs": {
|
|
93
|
+
"version": "7.8.1",
|
|
94
|
+
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
|
|
95
|
+
"integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
|
|
96
|
+
"peer": true,
|
|
97
|
+
"requires": {
|
|
98
|
+
"tslib": "^2.1.0"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"tslib": {
|
|
102
|
+
"version": "2.6.0",
|
|
103
|
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz",
|
|
104
|
+
"integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==",
|
|
105
|
+
"peer": true
|
|
106
|
+
},
|
|
107
|
+
"zone.js": {
|
|
108
|
+
"version": "0.12.0",
|
|
109
|
+
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.12.0.tgz",
|
|
110
|
+
"integrity": "sha512-XtC+I5dXU14HrzidAKBNMqneIVUykLEAA1x+v4KVrd6AUPWlwYORF8KgsVqvgdHiKZ4BkxxjvYi/ksEixTPR0Q==",
|
|
111
|
+
"peer": true,
|
|
112
|
+
"requires": {
|
|
113
|
+
"tslib": "^2.3.0"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
package/src/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@oncehub/knowledgeowl-angular",
|
|
3
|
+
"description": "KnowledgeOwl widget integration for Angular",
|
|
4
|
+
"version": "4.1.8",
|
|
5
|
+
"author": "https://github.com/scheduleonce/knowledgeowl-angular/graphs/contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/scheduleonce/knowledgeowl-angular.git"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"@angular/common": "14.2.12",
|
|
12
|
+
"@angular/core": "14.2.12"
|
|
13
|
+
}
|
|
14
|
+
}
|
package/src/polyfills.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
+
* You can add your own extra polyfills to this file.
|
|
4
|
+
*
|
|
5
|
+
* This file is divided into 2 sections:
|
|
6
|
+
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
+
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
+
* file.
|
|
9
|
+
*
|
|
10
|
+
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
+
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
+
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
+
*
|
|
14
|
+
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************************************
|
|
18
|
+
* BROWSER POLYFILLS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
|
22
|
+
// import 'core-js/es6/symbol';
|
|
23
|
+
// import 'core-js/es6/object';
|
|
24
|
+
// import 'core-js/es6/function';
|
|
25
|
+
// import 'core-js/es6/parse-int';
|
|
26
|
+
// import 'core-js/es6/parse-float';
|
|
27
|
+
// import 'core-js/es6/number';
|
|
28
|
+
// import 'core-js/es6/math';
|
|
29
|
+
// import 'core-js/es6/string';
|
|
30
|
+
// import 'core-js/es6/date';
|
|
31
|
+
// import 'core-js/es6/array';
|
|
32
|
+
// import 'core-js/es6/regexp';
|
|
33
|
+
// import 'core-js/es6/map';
|
|
34
|
+
// import 'core-js/es6/weak-map';
|
|
35
|
+
// import 'core-js/es6/set';
|
|
36
|
+
|
|
37
|
+
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
38
|
+
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
39
|
+
|
|
40
|
+
/** IE10 and IE11 requires the following for the Reflect API. */
|
|
41
|
+
// import 'core-js/es6/reflect';
|
|
42
|
+
|
|
43
|
+
/** Evergreen browsers require these. **/
|
|
44
|
+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
|
45
|
+
import 'core-js/es7/reflect';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Web Animations `@angular/platform-browser/animations`
|
|
49
|
+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
50
|
+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
51
|
+
**/
|
|
52
|
+
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
56
|
+
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
60
|
+
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
61
|
+
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
65
|
+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
66
|
+
*/
|
|
67
|
+
// (window as any).__Zone_enable_cross_context_check = true;
|
|
68
|
+
|
|
69
|
+
/***************************************************************************************************
|
|
70
|
+
* Zone JS is required by default for Angular itself.
|
|
71
|
+
*/
|
|
72
|
+
import 'zone.js'; // Included with Angular CLI.
|
|
73
|
+
|
|
74
|
+
/***************************************************************************************************
|
|
75
|
+
* APPLICATION IMPORTS
|
|
76
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/index';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../out-tsc/lib",
|
|
5
|
+
"declarationMap": true,
|
|
6
|
+
"target": "es2020",
|
|
7
|
+
"module": "es2015",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"inlineSources": true,
|
|
12
|
+
"emitDecoratorMetadata": true,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"importHelpers": true,
|
|
15
|
+
"types": [],
|
|
16
|
+
"lib": [
|
|
17
|
+
"dom",
|
|
18
|
+
"es2015"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"angularCompilerOptions": {
|
|
22
|
+
"skipTemplateCodegen": true,
|
|
23
|
+
"strictMetadataEmit": true,
|
|
24
|
+
"fullTemplateTypeCheck": true,
|
|
25
|
+
"strictInjectionParameters": true,
|
|
26
|
+
"enableResourceInlining": true
|
|
27
|
+
},
|
|
28
|
+
"exclude": [
|
|
29
|
+
"**/*.spec.ts"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../out-tsc/spec",
|
|
5
|
+
"types": [
|
|
6
|
+
"jasmine",
|
|
7
|
+
"node"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"../test/test.ts",
|
|
12
|
+
"polyfills.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"**/*.spec.ts",
|
|
16
|
+
"**/*.d.ts"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
process.env.CHROME_BIN = require('puppeteer').executablePath();
|
|
4
|
+
|
|
5
|
+
module.exports = function (config) {
|
|
6
|
+
config.set({
|
|
7
|
+
basePath: '',
|
|
8
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
9
|
+
plugins: [
|
|
10
|
+
require('karma-jasmine'),
|
|
11
|
+
require('karma-chrome-launcher'),
|
|
12
|
+
require('karma-jasmine-html-reporter'),
|
|
13
|
+
require('karma-coverage-istanbul-reporter'),
|
|
14
|
+
require('@angular-devkit/build-angular/plugins/karma'),
|
|
15
|
+
require('karma-junit-reporter'),
|
|
16
|
+
],
|
|
17
|
+
files: [
|
|
18
|
+
{
|
|
19
|
+
pattern: '../node_modules/zone.js/dist/zone.min.js',
|
|
20
|
+
included: true,
|
|
21
|
+
watched: false,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
client: {
|
|
25
|
+
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
|
26
|
+
},
|
|
27
|
+
junitReporter: {
|
|
28
|
+
outputDir: require('path').join(__dirname, '../../reports'),
|
|
29
|
+
outputFile: 'knowledge-owl-angular-test-results.xml',
|
|
30
|
+
},
|
|
31
|
+
coverageIstanbulReporter: {
|
|
32
|
+
dir: require('path').join(__dirname, '../../coverage'),
|
|
33
|
+
reports: ['html', 'lcovonly'],
|
|
34
|
+
fixWebpackSourcePaths: true,
|
|
35
|
+
},
|
|
36
|
+
reporters: ['dots', 'junit'],
|
|
37
|
+
port: 9876,
|
|
38
|
+
colors: true,
|
|
39
|
+
logLevel: config.LOG_INFO,
|
|
40
|
+
autoWatch: true,
|
|
41
|
+
browsers: ['ChromeHeadless'],
|
|
42
|
+
singleRun: true,
|
|
43
|
+
});
|
|
44
|
+
};
|
package/test/test.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js';
|
|
4
|
+
import 'zone.js/testing';
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import {
|
|
7
|
+
BrowserDynamicTestingModule,
|
|
8
|
+
platformBrowserDynamicTesting,
|
|
9
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
+
|
|
11
|
+
declare const require: any;
|
|
12
|
+
|
|
13
|
+
// First, initialize the Angular testing environment.
|
|
14
|
+
getTestBed().initTestEnvironment(
|
|
15
|
+
BrowserDynamicTestingModule,
|
|
16
|
+
platformBrowserDynamicTesting(),
|
|
17
|
+
{
|
|
18
|
+
teardown: { destroyAfterEach: false },
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
// Then we find all the tests.
|
|
22
|
+
const context = require.context('../src/', true, /\.spec\.ts$/);
|
|
23
|
+
// And load the modules.
|
|
24
|
+
context.keys().map(context);
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": "./",
|
|
5
|
+
"downlevelIteration": true,
|
|
6
|
+
"importHelpers": true,
|
|
7
|
+
"outDir": "./dist/out-tsc",
|
|
8
|
+
"sourceMap": true,
|
|
9
|
+
"declaration": false,
|
|
10
|
+
"module": "es2020",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"emitDecoratorMetadata": true,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"target": "es2020",
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"typeRoots": [
|
|
18
|
+
"node_modules/@types"
|
|
19
|
+
],
|
|
20
|
+
"lib": [
|
|
21
|
+
"es2017",
|
|
22
|
+
"dom"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"include": [
|
|
26
|
+
"src/**/*.ts",
|
|
27
|
+
"test/**/*.ts"
|
|
28
|
+
],
|
|
29
|
+
"exclude": [
|
|
30
|
+
// IDEs should not type-check the different node_modules directories of the different packages.
|
|
31
|
+
// This would cause the IDEs to be slower and also linters would check the node_modules.
|
|
32
|
+
"node_modules/"
|
|
33
|
+
]
|
|
34
|
+
}
|