@echo-blue/ng-jsoneditor 18.0.5
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/.editorconfig +13 -0
- package/.eslintrc.json +86 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/workflows/npm-publish.yml +26 -0
- package/.travis.yml +24 -0
- package/LICENSE +21 -0
- package/README.md +188 -0
- package/angular.json +132 -0
- package/e2e/app.e2e-spec.ts +17 -0
- package/e2e/app.po.ts +11 -0
- package/e2e/tsconfig.e2e.json +12 -0
- package/package.json +73 -0
- package/projects/ng-jsoneditor/.eslintrc.json +37 -0
- package/projects/ng-jsoneditor/README.md +184 -0
- package/projects/ng-jsoneditor/ng-package.json +7 -0
- package/projects/ng-jsoneditor/package.json +28 -0
- package/projects/ng-jsoneditor/src/lib/jsoneditor.component.spec.ts +26 -0
- package/projects/ng-jsoneditor/src/lib/jsoneditor.component.ts +258 -0
- package/projects/ng-jsoneditor/src/lib/jsoneditoroptions.ts +166 -0
- package/projects/ng-jsoneditor/src/public-api.ts +5 -0
- package/projects/ng-jsoneditor/tsconfig.lib.json +14 -0
- package/projects/ng-jsoneditor/tsconfig.lib.prod.json +10 -0
- package/projects/ng-jsoneditor/tsconfig.spec.json +29 -0
- package/renovate.json +38 -0
- package/src/app/app.component.css +0 -0
- package/src/app/app.component.html +6 -0
- package/src/app/app.component.spec.ts +27 -0
- package/src/app/app.component.ts +13 -0
- package/src/app/app.config.ts +8 -0
- package/src/app/app.routes.ts +7 -0
- package/src/app/demo/demo.component.css +1 -0
- package/src/app/demo/demo.component.html +65 -0
- package/src/app/demo/demo.component.spec.ts +32 -0
- package/src/app/demo/demo.component.ts +211 -0
- package/src/app/demo/schema.value.ts +111 -0
- package/src/app/demo/show.component.ts +15 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/printDemo.png +0 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +8 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +14 -0
- package/src/main.ts +6 -0
- package/src/styles.scss +2 -0
- package/tsconfig.json +53 -0
- package/tsconfig.spec.json +27 -0
- package/vitest.config.mts +36 -0
- package/vitest.setup.ts +14 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"compileOnSave": true,
|
|
4
|
+
"angularCompilerOptions": {
|
|
5
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
6
|
+
"strictInjectionParameters": true,
|
|
7
|
+
"strictInputAccessModifiers": true,
|
|
8
|
+
"strictTemplates": true
|
|
9
|
+
},
|
|
10
|
+
"compilerOptions": {
|
|
11
|
+
"outDir": "./dist/out-tsc",
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"noImplicitOverride": true,
|
|
16
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
17
|
+
"strictPropertyInitialization": false,
|
|
18
|
+
"noImplicitReturns": true,
|
|
19
|
+
"noFallthroughCasesInSwitch": true,
|
|
20
|
+
"esModuleInterop": true,
|
|
21
|
+
"sourceMap": true,
|
|
22
|
+
"declaration": false,
|
|
23
|
+
"downlevelIteration": true,
|
|
24
|
+
"experimentalDecorators": true,
|
|
25
|
+
"moduleResolution": "node",
|
|
26
|
+
"importHelpers": true,
|
|
27
|
+
"target": "ES2022",
|
|
28
|
+
"module": "ES2022",
|
|
29
|
+
"useDefineForClassFields": false,
|
|
30
|
+
"lib": [
|
|
31
|
+
"ES2022",
|
|
32
|
+
"dom"
|
|
33
|
+
],
|
|
34
|
+
"paths": {
|
|
35
|
+
"@echo-blue/ng-jsoneditor": [
|
|
36
|
+
"./dist/ng-jsoneditor"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve',
|
|
41
|
+
// and the 'target' option is set to 'es2017' or higher.
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"src/main.ts"
|
|
45
|
+
],
|
|
46
|
+
"include": [
|
|
47
|
+
"src/**/*.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"exclude": [
|
|
50
|
+
"src/**/*.spec.ts",
|
|
51
|
+
"projects/ng-jsoneditor/**/*.spec.ts"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "./tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "./out-tsc/spec",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"target": "ES2022",
|
|
8
|
+
"module": "ES2022",
|
|
9
|
+
"lib": [
|
|
10
|
+
"ES2022",
|
|
11
|
+
"dom",
|
|
12
|
+
"esnext.disposable"
|
|
13
|
+
],
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"types": [
|
|
16
|
+
"vitest/globals",
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"include": [
|
|
20
|
+
"src/**/*.spec.ts",
|
|
21
|
+
"src/**/*.d.ts",
|
|
22
|
+
"projects/ng-jsoneditor/**/*.spec.ts",
|
|
23
|
+
"projects/ng-jsoneditor/**/*.d.ts",
|
|
24
|
+
"vitest.setup.ts"
|
|
25
|
+
],
|
|
26
|
+
"exclude": []
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
import angular from '@analogjs/vite-plugin-angular';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { resolve } from 'node:path';
|
|
5
|
+
|
|
6
|
+
const rootDir = fileURLToPath(new URL('.', import.meta.url));
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
plugins: [
|
|
10
|
+
angular({
|
|
11
|
+
tsconfig: resolve(rootDir, 'tsconfig.spec.json')
|
|
12
|
+
})
|
|
13
|
+
],
|
|
14
|
+
resolve: {
|
|
15
|
+
alias: {
|
|
16
|
+
'@echo-blue/ng-jsoneditor': resolve(
|
|
17
|
+
rootDir,
|
|
18
|
+
'projects/ng-jsoneditor/src/public-api.ts'
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
test: {
|
|
23
|
+
globals: true,
|
|
24
|
+
environment: 'jsdom',
|
|
25
|
+
setupFiles: ['./vitest.setup.ts'],
|
|
26
|
+
include: [
|
|
27
|
+
'src/**/*.spec.ts',
|
|
28
|
+
'projects/**/*.spec.ts',
|
|
29
|
+
],
|
|
30
|
+
coverage: {
|
|
31
|
+
provider: 'v8',
|
|
32
|
+
reporter: ['text', 'lcov'],
|
|
33
|
+
reportsDirectory: resolve(rootDir, 'coverage/vitest')
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
package/vitest.setup.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@analogjs/vite-plugin-angular/setup-vitest';
|
|
2
|
+
|
|
3
|
+
import { getTestBed } from '@angular/core/testing';
|
|
4
|
+
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
|
|
5
|
+
import { afterEach } from 'vitest';
|
|
6
|
+
|
|
7
|
+
getTestBed().initTestEnvironment(
|
|
8
|
+
BrowserDynamicTestingModule,
|
|
9
|
+
platformBrowserDynamicTesting()
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
afterEach(() => {
|
|
13
|
+
getTestBed().resetTestingModule();
|
|
14
|
+
});
|