@bcweed/dynamic-form-lib 0.0.1

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 (63) hide show
  1. package/.editorconfig +17 -0
  2. package/.postcssrc.json +5 -0
  3. package/.vscode/extensions.json +4 -0
  4. package/.vscode/launch.json +20 -0
  5. package/.vscode/tasks.json +42 -0
  6. package/AngularDynamicFormLibrary.esproj +13 -0
  7. package/CHANGELOG.md +16 -0
  8. package/README.md +59 -0
  9. package/angular.json +169 -0
  10. package/aspnetcore-https.js +37 -0
  11. package/karma.conf.js +44 -0
  12. package/obj/Debug/AngularDynamicFormLibrary.esproj.CoreCompileInputs.cache +0 -0
  13. package/obj/Debug/AngularDynamicFormLibrary.esproj.FileListAbsolute.txt +1 -0
  14. package/obj/Debug/package.g.props +56 -0
  15. package/package.json +65 -0
  16. package/postcss.config.js +6 -0
  17. package/projects/dynamic-form-lib/.postcssrc.json +5 -0
  18. package/projects/dynamic-form-lib/README.md +63 -0
  19. package/projects/dynamic-form-lib/ng-package.json +10 -0
  20. package/projects/dynamic-form-lib/package.json +27 -0
  21. package/projects/dynamic-form-lib/src/lib/README.md +424 -0
  22. package/projects/dynamic-form-lib/src/lib/SUMMARY.md +159 -0
  23. package/projects/dynamic-form-lib/src/lib/directives/dynamic-ref-directive.ts +13 -0
  24. package/projects/dynamic-form-lib/src/lib/dynamic-form-demo/dynamic-form-demo.component.html +75 -0
  25. package/projects/dynamic-form-lib/src/lib/dynamic-form-demo/dynamic-form-demo.component.scss +127 -0
  26. package/projects/dynamic-form-lib/src/lib/dynamic-form-demo/dynamic-form-demo.component.ts +50 -0
  27. package/projects/dynamic-form-lib/src/lib/dynamic-form-field/dynamic-form-field.component.html +234 -0
  28. package/projects/dynamic-form-lib/src/lib/dynamic-form-field/dynamic-form-field.component.scss +315 -0
  29. package/projects/dynamic-form-lib/src/lib/dynamic-form-field/dynamic-form-field.component.ts +219 -0
  30. package/projects/dynamic-form-lib/src/lib/dynamic-form.component.html +137 -0
  31. package/projects/dynamic-form-lib/src/lib/dynamic-form.component.scss +141 -0
  32. package/projects/dynamic-form-lib/src/lib/dynamic-form.component.ts +366 -0
  33. package/projects/dynamic-form-lib/src/lib/helpers/component-helper.ts +54 -0
  34. package/projects/dynamic-form-lib/src/lib/index.ts +10 -0
  35. package/projects/dynamic-form-lib/src/lib/models/dynamic-form-interfaces.ts +117 -0
  36. package/projects/dynamic-form-lib/src/lib/services/dynamic-form.service.spec.ts +302 -0
  37. package/projects/dynamic-form-lib/src/lib/services/dynamic-form.service.ts +325 -0
  38. package/projects/dynamic-form-lib/src/lib/style.css +4 -0
  39. package/projects/dynamic-form-lib/src/lib/style.scss +3 -0
  40. package/projects/dynamic-form-lib/src/lib/tailwind-output.css +0 -0
  41. package/projects/dynamic-form-lib/src/lib/validators/compare-validator.ts +26 -0
  42. package/projects/dynamic-form-lib/src/public-api.css +1 -0
  43. package/projects/dynamic-form-lib/src/public-api.ts +10 -0
  44. package/projects/dynamic-form-lib/tailwind.config.js +10 -0
  45. package/projects/dynamic-form-lib/tsconfig.lib.json +15 -0
  46. package/projects/dynamic-form-lib/tsconfig.lib.prod.json +11 -0
  47. package/projects/dynamic-form-lib/tsconfig.spec.json +15 -0
  48. package/public/favicon.ico +0 -0
  49. package/src/app/app-routing.module.ts +10 -0
  50. package/src/app/app.component.css +0 -0
  51. package/src/app/app.component.html +18 -0
  52. package/src/app/app.component.spec.ts +35 -0
  53. package/src/app/app.component.ts +1038 -0
  54. package/src/app/app.config.ts +45 -0
  55. package/src/app/app.module.ts +46 -0
  56. package/src/app/app.routes.ts +8 -0
  57. package/src/index.html +13 -0
  58. package/src/main.ts +16 -0
  59. package/src/styles.css +2 -0
  60. package/tailwind.config.js +10 -0
  61. package/tsconfig.app.json +15 -0
  62. package/tsconfig.json +32 -0
  63. package/tsconfig.spec.json +15 -0
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/lib",
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "inlineSources": true,
10
+ "types": []
11
+ },
12
+ "exclude": [
13
+ "**/*.spec.ts"
14
+ ]
15
+ }
@@ -0,0 +1,11 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "./tsconfig.lib.json",
5
+ "compilerOptions": {
6
+ "declarationMap": false
7
+ },
8
+ "angularCompilerOptions": {
9
+ "compilationMode": "partial"
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/spec",
7
+ "types": [
8
+ "jasmine"
9
+ ]
10
+ },
11
+ "include": [
12
+ "**/*.spec.ts",
13
+ "**/*.d.ts"
14
+ ]
15
+ }
Binary file
@@ -0,0 +1,10 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { RouterModule, Routes } from '@angular/router';
3
+
4
+ const routes: Routes = [];
5
+
6
+ @NgModule({
7
+ imports: [RouterModule.forRoot(routes)],
8
+ exports: [RouterModule]
9
+ })
10
+ export class AppRoutingModule { }
File without changes
@@ -0,0 +1,18 @@
1
+ <h4 #topElement>BaseNewRegistryVesselInformationForm</h4>
2
+ <hr />
3
+
4
+
5
+ <div class="card-style card-corner-style p-1 mt-2 m-1 new-vessel">
6
+
7
+ <app-dynamic-form [config]="formConfig"
8
+ [initialValues]="formValues"
9
+ (formSubmit)="onFormSubmit($event)"
10
+ (formCancel)="onFormCancel()"
11
+ (formStateChange)="onFormStateChange($event)"
12
+ [allowHelpOverlay]="true"
13
+ [allowHelpSideBar]="true"></app-dynamic-form>
14
+
15
+
16
+
17
+
18
+ </div>
@@ -0,0 +1,35 @@
1
+ import { TestBed } from '@angular/core/testing';
2
+ import { RouterModule } from '@angular/router';
3
+ import { AppComponent } from './app.component';
4
+
5
+ describe('AppComponent', () => {
6
+ beforeEach(async () => {
7
+ await TestBed.configureTestingModule({
8
+ imports: [
9
+ RouterModule.forRoot([])
10
+ ],
11
+ declarations: [
12
+ AppComponent
13
+ ],
14
+ }).compileComponents();
15
+ });
16
+
17
+ it('should create the app', () => {
18
+ const fixture = TestBed.createComponent(AppComponent);
19
+ const app = fixture.componentInstance;
20
+ expect(app).toBeTruthy();
21
+ });
22
+
23
+ it(`should have as title 'DynamicForms'`, () => {
24
+ const fixture = TestBed.createComponent(AppComponent);
25
+ const app = fixture.componentInstance;
26
+ expect(app.title).toEqual('DynamicForms');
27
+ });
28
+
29
+ it('should render title', () => {
30
+ const fixture = TestBed.createComponent(AppComponent);
31
+ fixture.detectChanges();
32
+ const compiled = fixture.nativeElement as HTMLElement;
33
+ expect(compiled.querySelector('h1')?.textContent).toContain('Hello, DynamicForms');
34
+ });
35
+ });