@ajsf/material 0.2.0-beta.1 → 0.4.0-beta.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 (95) hide show
  1. package/LICENSE +21 -0
  2. package/ajsf-material.d.ts +4 -0
  3. package/ajsf-material.metadata.json +1 -0
  4. package/bundles/ajsf-material.umd.js +1431 -0
  5. package/bundles/ajsf-material.umd.js.map +1 -0
  6. package/bundles/ajsf-material.umd.min.js +16 -0
  7. package/bundles/ajsf-material.umd.min.js.map +1 -0
  8. package/esm2015/ajsf-material.js +5 -0
  9. package/esm2015/lib/angular-flex-monkey-patch.js +12 -0
  10. package/esm2015/lib/material-design-framework.component.js +101 -0
  11. package/esm2015/lib/material-design-framework.module.js +80 -0
  12. package/esm2015/lib/material-design.framework.js +54 -0
  13. package/esm2015/lib/widgets/flex-layout-root.component.js +55 -0
  14. package/esm2015/lib/widgets/flex-layout-section.component.js +221 -0
  15. package/esm2015/lib/widgets/material-add-reference.component.js +53 -0
  16. package/esm2015/lib/widgets/material-button-group.component.js +63 -0
  17. package/esm2015/lib/widgets/material-button.component.js +60 -0
  18. package/esm2015/lib/widgets/material-checkbox.component.js +109 -0
  19. package/esm2015/lib/widgets/material-checkboxes.component.js +101 -0
  20. package/esm2015/lib/widgets/material-chip-list.component.js +33 -0
  21. package/esm2015/lib/widgets/material-datepicker.component.js +101 -0
  22. package/esm2015/lib/widgets/material-file.component.js +33 -0
  23. package/esm2015/lib/widgets/material-input.component.js +95 -0
  24. package/esm2015/lib/widgets/material-number.component.js +97 -0
  25. package/esm2015/lib/widgets/material-one-of.component.js +33 -0
  26. package/esm2015/lib/widgets/material-radios.component.js +84 -0
  27. package/esm2015/lib/widgets/material-select.component.js +115 -0
  28. package/esm2015/lib/widgets/material-slider.component.js +60 -0
  29. package/esm2015/lib/widgets/material-stepper.component.js +33 -0
  30. package/esm2015/lib/widgets/material-tabs.component.js +69 -0
  31. package/esm2015/lib/widgets/material-textarea.component.js +88 -0
  32. package/esm2015/lib/widgets/public_api.js +52 -0
  33. package/esm2015/public_api.js +8 -0
  34. package/fesm2015/ajsf-material.js +1721 -0
  35. package/fesm2015/ajsf-material.js.map +1 -0
  36. package/lib/angular-flex-monkey-patch.d.ts +1 -0
  37. package/lib/material-design-framework.component.d.ts +25 -0
  38. package/lib/material-design-framework.module.d.ts +12 -0
  39. package/lib/material-design.framework.d.ts +41 -0
  40. package/lib/widgets/flex-layout-root.component.d.ts +12 -0
  41. package/lib/widgets/flex-layout-section.component.d.ts +22 -0
  42. package/lib/widgets/material-add-reference.component.d.ts +17 -0
  43. package/lib/widgets/material-button-group.component.d.ts +20 -0
  44. package/lib/widgets/material-button.component.d.ts +18 -0
  45. package/lib/widgets/material-checkbox.component.d.ts +22 -0
  46. package/lib/widgets/material-checkboxes.component.d.ts +24 -0
  47. package/lib/widgets/material-chip-list.component.d.ts +18 -0
  48. package/lib/widgets/material-datepicker.component.d.ts +22 -0
  49. package/lib/widgets/material-file.component.d.ts +18 -0
  50. package/lib/widgets/material-input.component.d.ts +20 -0
  51. package/lib/widgets/material-number.component.d.ts +23 -0
  52. package/lib/widgets/material-one-of.component.d.ts +18 -0
  53. package/lib/widgets/material-radios.component.d.ts +20 -0
  54. package/lib/widgets/material-select.component.d.ts +21 -0
  55. package/lib/widgets/material-slider.component.d.ts +22 -0
  56. package/lib/widgets/material-stepper.component.d.ts +18 -0
  57. package/lib/widgets/material-tabs.component.d.ts +17 -0
  58. package/lib/widgets/material-textarea.component.d.ts +19 -0
  59. package/{src/lib/widgets/public_api.ts → lib/widgets/public_api.d.ts} +1 -14
  60. package/package.json +25 -7
  61. package/{src/public_api.ts → public_api.d.ts} +0 -4
  62. package/karma.conf.js +0 -37
  63. package/ng-package.json +0 -16
  64. package/src/lib/angular-flex-monkey-patch.ts +0 -13
  65. package/src/lib/material-design-framework.component.html +0 -20
  66. package/src/lib/material-design-framework.component.scss +0 -51
  67. package/src/lib/material-design-framework.component.spec.ts +0 -37
  68. package/src/lib/material-design-framework.component.ts +0 -121
  69. package/src/lib/material-design-framework.module.ts +0 -84
  70. package/src/lib/material-design.framework.ts +0 -75
  71. package/src/lib/widgets/flex-layout-root.component.html +0 -11
  72. package/src/lib/widgets/flex-layout-root.component.ts +0 -52
  73. package/src/lib/widgets/flex-layout-section.component.ts +0 -216
  74. package/src/lib/widgets/material-add-reference.component.ts +0 -56
  75. package/src/lib/widgets/material-button-group.component.ts +0 -68
  76. package/src/lib/widgets/material-button.component.ts +0 -59
  77. package/src/lib/widgets/material-checkbox.component.ts +0 -112
  78. package/src/lib/widgets/material-checkboxes.component.ts +0 -109
  79. package/src/lib/widgets/material-chip-list.component.ts +0 -35
  80. package/src/lib/widgets/material-datepicker.component.ts +0 -105
  81. package/src/lib/widgets/material-file.component.ts +0 -35
  82. package/src/lib/widgets/material-input.component.ts +0 -99
  83. package/src/lib/widgets/material-number.component.ts +0 -97
  84. package/src/lib/widgets/material-one-of.component.ts +0 -35
  85. package/src/lib/widgets/material-radios.component.ts +0 -89
  86. package/src/lib/widgets/material-select.component.ts +0 -120
  87. package/src/lib/widgets/material-slider.component.ts +0 -61
  88. package/src/lib/widgets/material-stepper.component.ts +0 -35
  89. package/src/lib/widgets/material-tabs.component.ts +0 -69
  90. package/src/lib/widgets/material-textarea.component.ts +0 -90
  91. package/src/test.ts +0 -21
  92. package/tsconfig.lib.json +0 -25
  93. package/tsconfig.lib.prod.json +0 -6
  94. package/tsconfig.spec.json +0 -17
  95. package/tslint.json +0 -11
@@ -1,120 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import {Component, Inject, Input, OnInit, Optional} from '@angular/core';
3
- import { JsonSchemaFormService, buildTitleMap, isArray } from '@ajsf/core';
4
- import { MAT_LABEL_GLOBAL_OPTIONS } from '@angular/material/core';
5
- import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
6
-
7
- @Component({
8
- // tslint:disable-next-line:component-selector
9
- selector: 'material-select-widget',
10
- template: `
11
- <mat-form-field
12
- [appearance]="options?.appearance || matFormFieldDefaultOptions?.appearance || 'standard'"
13
- [class]="options?.htmlClass || ''"
14
- [floatLabel]="options?.floatLabel || matLabelGlobalOptions?.float || (options?.notitle ? 'never' : 'auto')"
15
- [hideRequiredMarker]="options?.hideRequired ? 'true' : 'false'"
16
- [style.width]="'100%'">
17
- <mat-label *ngIf="!options?.notitle">{{options?.title}}</mat-label>
18
- <span matPrefix *ngIf="options?.prefix || options?.fieldAddonLeft"
19
- [innerHTML]="options?.prefix || options?.fieldAddonLeft"></span>
20
- <mat-select *ngIf="boundControl"
21
- [formControl]="formControl"
22
- [attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
23
- [attr.name]="controlName"
24
- [id]="'control' + layoutNode?._id"
25
- [multiple]="options?.multiple"
26
- [placeholder]="options?.notitle ? options?.placeholder : options?.title"
27
- [required]="options?.required"
28
- [style.width]="'100%'"
29
- (blur)="options.showErrors = true">
30
- <ng-template ngFor let-selectItem [ngForOf]="selectList">
31
- <mat-option *ngIf="!isArray(selectItem?.items)"
32
- [value]="selectItem?.value">
33
- <span [innerHTML]="selectItem?.name"></span>
34
- </mat-option>
35
- <mat-optgroup *ngIf="isArray(selectItem?.items)"
36
- [label]="selectItem?.group">
37
- <mat-option *ngFor="let subItem of selectItem.items"
38
- [value]="subItem?.value">
39
- <span [innerHTML]="subItem?.name"></span>
40
- </mat-option>
41
- </mat-optgroup>
42
- </ng-template>
43
- </mat-select>
44
- <mat-select *ngIf="!boundControl"
45
- [attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
46
- [attr.name]="controlName"
47
- [disabled]="controlDisabled || options?.readonly"
48
- [id]="'control' + layoutNode?._id"
49
- [multiple]="options?.multiple"
50
- [placeholder]="options?.notitle ? options?.placeholder : options?.title"
51
- [required]="options?.required"
52
- [style.width]="'100%'"
53
- [value]="controlValue"
54
- (blur)="options.showErrors = true"
55
- (change)="updateValue($event)">
56
- <ng-template ngFor let-selectItem [ngForOf]="selectList">
57
- <mat-option *ngIf="!isArray(selectItem?.items)"
58
- [attr.selected]="selectItem?.value === controlValue"
59
- [value]="selectItem?.value">
60
- <span [innerHTML]="selectItem?.name"></span>
61
- </mat-option>
62
- <mat-optgroup *ngIf="isArray(selectItem?.items)"
63
- [label]="selectItem?.group">
64
- <mat-option *ngFor="let subItem of selectItem.items"
65
- [attr.selected]="subItem?.value === controlValue"
66
- [value]="subItem?.value">
67
- <span [innerHTML]="subItem?.name"></span>
68
- </mat-option>
69
- </mat-optgroup>
70
- </ng-template>
71
- </mat-select>
72
- <span matSuffix *ngIf="options?.suffix || options?.fieldAddonRight"
73
- [innerHTML]="options?.suffix || options?.fieldAddonRight"></span>
74
- <mat-hint *ngIf="options?.description && (!options?.showErrors || !options?.errorMessage)"
75
- align="end" [innerHTML]="options?.description"></mat-hint>
76
- </mat-form-field>
77
- <mat-error *ngIf="options?.showErrors && options?.errorMessage"
78
- [innerHTML]="options?.errorMessage"></mat-error>`,
79
- styles: [`
80
- mat-error { font-size: 75%; margin-top: -1rem; margin-bottom: 0.5rem; }
81
- ::ng-deep json-schema-form mat-form-field .mat-form-field-wrapper .mat-form-field-flex
82
- .mat-form-field-infix { width: initial; }
83
- `],
84
- })
85
- export class MaterialSelectComponent implements OnInit {
86
- formControl: AbstractControl;
87
- controlName: string;
88
- controlValue: any;
89
- controlDisabled = false;
90
- boundControl = false;
91
- options: any;
92
- selectList: any[] = [];
93
- isArray = isArray;
94
- @Input() layoutNode: any;
95
- @Input() layoutIndex: number[];
96
- @Input() dataIndex: number[];
97
-
98
- constructor(
99
- @Inject(MAT_FORM_FIELD_DEFAULT_OPTIONS) @Optional() public matFormFieldDefaultOptions,
100
- @Inject(MAT_LABEL_GLOBAL_OPTIONS) @Optional() public matLabelGlobalOptions,
101
- private jsf: JsonSchemaFormService
102
- ) { }
103
-
104
- ngOnInit() {
105
- this.options = this.layoutNode.options || {};
106
- this.selectList = buildTitleMap(
107
- this.options.titleMap || this.options.enumNames,
108
- this.options.enum, !!this.options.required, !!this.options.flatList
109
- );
110
- this.jsf.initializeControl(this, !this.options.readonly);
111
- if (!this.options.notitle && !this.options.description && this.options.placeholder) {
112
- this.options.description = this.options.placeholder;
113
- }
114
- }
115
-
116
- updateValue(event) {
117
- this.options.showErrors = true;
118
- this.jsf.updateValue(this, event.value);
119
- }
120
- }
@@ -1,61 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { Component, Input, OnInit } from '@angular/core';
3
- import { JsonSchemaFormService } from '@ajsf/core';
4
-
5
- @Component({
6
- // tslint:disable-next-line:component-selector
7
- selector: 'material-slider-widget',
8
- template: `
9
- <mat-slider thumbLabel *ngIf="boundControl"
10
- [formControl]="formControl"
11
- [attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
12
- [id]="'control' + layoutNode?._id"
13
- [max]="options?.maximum"
14
- [min]="options?.minimum"
15
- [step]="options?.multipleOf || options?.step || 'any'"
16
- [style.width]="'100%'"
17
- (blur)="options.showErrors = true"></mat-slider>
18
- <mat-slider thumbLabel *ngIf="!boundControl"
19
- [attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
20
- [disabled]="controlDisabled || options?.readonly"
21
- [id]="'control' + layoutNode?._id"
22
- [max]="options?.maximum"
23
- [min]="options?.minimum"
24
- [step]="options?.multipleOf || options?.step || 'any'"
25
- [style.width]="'100%'"
26
- [value]="controlValue"
27
- (blur)="options.showErrors = true"
28
- (change)="updateValue($event)"></mat-slider>
29
- <mat-error *ngIf="options?.showErrors && options?.errorMessage"
30
- [innerHTML]="options?.errorMessage"></mat-error>`,
31
- styles: [` mat-error { font-size: 75%; } `],
32
- })
33
- export class MaterialSliderComponent implements OnInit {
34
- formControl: AbstractControl;
35
- controlName: string;
36
- controlValue: any;
37
- controlDisabled = false;
38
- boundControl = false;
39
- options: any;
40
- allowNegative = true;
41
- allowDecimal = true;
42
- allowExponents = false;
43
- lastValidNumber = '';
44
- @Input() layoutNode: any;
45
- @Input() layoutIndex: number[];
46
- @Input() dataIndex: number[];
47
-
48
- constructor(
49
- private jsf: JsonSchemaFormService
50
- ) { }
51
-
52
- ngOnInit() {
53
- this.options = this.layoutNode.options || {};
54
- this.jsf.initializeControl(this, !this.options.readonly);
55
- }
56
-
57
- updateValue(event) {
58
- this.options.showErrors = true;
59
- this.jsf.updateValue(this, event.value);
60
- }
61
- }
@@ -1,35 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { Component, Input, OnInit } from '@angular/core';
3
- import { JsonSchemaFormService } from '@ajsf/core';
4
-
5
- // TODO: Add this control
6
-
7
- @Component({
8
- // tslint:disable-next-line:component-selector
9
- selector: 'material-stepper-widget',
10
- template: ``,
11
- })
12
- export class MaterialStepperComponent implements OnInit {
13
- formControl: AbstractControl;
14
- controlName: string;
15
- controlValue: any;
16
- controlDisabled = false;
17
- boundControl = false;
18
- options: any;
19
- @Input() layoutNode: any;
20
- @Input() layoutIndex: number[];
21
- @Input() dataIndex: number[];
22
-
23
- constructor(
24
- private jsf: JsonSchemaFormService
25
- ) { }
26
-
27
- ngOnInit() {
28
- this.options = this.layoutNode.options || {};
29
- this.jsf.initializeControl(this);
30
- }
31
-
32
- updateValue(event) {
33
- this.jsf.updateValue(this, event.target.value);
34
- }
35
- }
@@ -1,69 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import { JsonSchemaFormService } from '@ajsf/core';
3
-
4
- @Component({
5
- // tslint:disable-next-line:component-selector
6
- selector: 'material-tabs-widget',
7
- template: `
8
- <nav mat-tab-nav-bar
9
- [attr.aria-label]="options?.label || options?.title || ''"
10
- [style.width]="'100%'">
11
- <a mat-tab-link *ngFor="let item of layoutNode?.items; let i = index"
12
- [active]="selectedItem === i"
13
- (click)="select(i)">
14
- <span *ngIf="showAddTab || item.type !== '$ref'"
15
- [innerHTML]="setTabTitle(item, i)"></span>
16
- </a>
17
- </nav>
18
- <div *ngFor="let layoutItem of layoutNode?.items; let i = index"
19
- [class]="options?.htmlClass || ''">
20
- <select-framework-widget *ngIf="selectedItem === i"
21
- [class]="(options?.fieldHtmlClass || '') + ' ' + (options?.activeClass || '') + ' ' + (options?.style?.selected || '')"
22
- [dataIndex]="layoutNode?.dataType === 'array' ? (dataIndex || []).concat(i) : dataIndex"
23
- [layoutIndex]="(layoutIndex || []).concat(i)"
24
- [layoutNode]="layoutItem"></select-framework-widget>
25
- </div>`,
26
- styles: [` a { cursor: pointer; } `],
27
- })
28
- export class MaterialTabsComponent implements OnInit {
29
- options: any;
30
- itemCount: number;
31
- selectedItem = 0;
32
- showAddTab = true;
33
- @Input() layoutNode: any;
34
- @Input() layoutIndex: number[];
35
- @Input() dataIndex: number[];
36
-
37
- constructor(
38
- private jsf: JsonSchemaFormService
39
- ) { }
40
-
41
- ngOnInit() {
42
- this.options = this.layoutNode.options || {};
43
- this.itemCount = this.layoutNode.items.length - 1;
44
- this.updateControl();
45
- }
46
-
47
- select(index) {
48
- if (this.layoutNode.items[index].type === '$ref') {
49
- this.jsf.addItem({
50
- layoutNode: this.layoutNode.items[index],
51
- layoutIndex: this.layoutIndex.concat(index),
52
- dataIndex: this.dataIndex.concat(index)
53
- });
54
- this.updateControl();
55
- }
56
- this.selectedItem = index;
57
- }
58
-
59
- updateControl() {
60
- this.itemCount = this.layoutNode.items.length - 1;
61
- const lastItem = this.layoutNode.items[this.layoutNode.items.length - 1];
62
- this.showAddTab = lastItem.type === '$ref' &&
63
- this.itemCount < (lastItem.options.maxItems || 1000);
64
- }
65
-
66
- setTabTitle(item: any, index: number): string {
67
- return this.jsf.setArrayItemTitle(this, item, index);
68
- }
69
- }
@@ -1,90 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import {Component, Inject, Input, OnInit, Optional} from '@angular/core';
3
- import { JsonSchemaFormService } from '@ajsf/core';
4
- import { MAT_LABEL_GLOBAL_OPTIONS } from '@angular/material/core';
5
- import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
6
-
7
- @Component({
8
- // tslint:disable-next-line:component-selector
9
- selector: 'material-textarea-widget',
10
- template: `
11
- <mat-form-field [appearance]="options?.appearance || matFormFieldDefaultOptions?.appearance || 'standard'"
12
- [class]="options?.htmlClass || ''"
13
- [floatLabel]="options?.floatLabel || matLabelGlobalOptions?.float || (options?.notitle ? 'never' : 'auto')"
14
- [hideRequiredMarker]="options?.hideRequired ? 'true' : 'false'"
15
- [style.width]="'100%'">
16
- <mat-label *ngIf="!options?.notitle">{{options?.title}}</mat-label>
17
- <span matPrefix *ngIf="options?.prefix || options?.fieldAddonLeft"
18
- [innerHTML]="options?.prefix || options?.fieldAddonLeft"></span>
19
- <textarea matInput *ngIf="boundControl"
20
- [formControl]="formControl"
21
- [attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
22
- [attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
23
- [attr.maxlength]="options?.maxLength"
24
- [attr.minlength]="options?.minLength"
25
- [attr.pattern]="options?.pattern"
26
- [required]="options?.required"
27
- [id]="'control' + layoutNode?._id"
28
- [name]="controlName"
29
- [placeholder]="options?.notitle ? options?.placeholder : options?.title"
30
- [readonly]="options?.readonly ? 'readonly' : null"
31
- [style.width]="'100%'"
32
- (blur)="options.showErrors = true"></textarea>
33
- <textarea matInput *ngIf="!boundControl"
34
- [attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
35
- [attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
36
- [attr.maxlength]="options?.maxLength"
37
- [attr.minlength]="options?.minLength"
38
- [attr.pattern]="options?.pattern"
39
- [required]="options?.required"
40
- [disabled]="controlDisabled"
41
- [id]="'control' + layoutNode?._id"
42
- [name]="controlName"
43
- [placeholder]="options?.notitle ? options?.placeholder : options?.title"
44
- [readonly]="options?.readonly ? 'readonly' : null"
45
- [style.width]="'100%'"
46
- [value]="controlValue"
47
- (input)="updateValue($event)"
48
- (blur)="options.showErrors = true"></textarea>
49
- <span matSuffix *ngIf="options?.suffix || options?.fieldAddonRight"
50
- [innerHTML]="options?.suffix || options?.fieldAddonRight"></span>
51
- <mat-hint *ngIf="options?.description && (!options?.showErrors || !options?.errorMessage)"
52
- align="end" [innerHTML]="options?.description"></mat-hint>
53
- </mat-form-field>
54
- <mat-error *ngIf="options?.showErrors && options?.errorMessage"
55
- [innerHTML]="options?.errorMessage"></mat-error>`,
56
- styles: [`
57
- mat-error { font-size: 75%; margin-top: -1rem; margin-bottom: 0.5rem; }
58
- ::ng-deep json-schema-form mat-form-field .mat-form-field-wrapper .mat-form-field-flex
59
- .mat-form-field-infix { width: initial; }
60
- `],
61
- })
62
- export class MaterialTextareaComponent implements OnInit {
63
- formControl: AbstractControl;
64
- controlName: string;
65
- controlValue: any;
66
- controlDisabled = false;
67
- boundControl = false;
68
- options: any;
69
- @Input() layoutNode: any;
70
- @Input() layoutIndex: number[];
71
- @Input() dataIndex: number[];
72
-
73
- constructor(
74
- @Inject(MAT_FORM_FIELD_DEFAULT_OPTIONS) @Optional() public matFormFieldDefaultOptions,
75
- @Inject(MAT_LABEL_GLOBAL_OPTIONS) @Optional() public matLabelGlobalOptions,
76
- private jsf: JsonSchemaFormService
77
- ) { }
78
-
79
- ngOnInit() {
80
- this.options = this.layoutNode.options || {};
81
- this.jsf.initializeControl(this);
82
- if (!this.options.notitle && !this.options.description && this.options.placeholder) {
83
- this.options.description = this.options.placeholder;
84
- }
85
- }
86
-
87
- updateValue(event) {
88
- this.jsf.updateValue(this, event.target.value);
89
- }
90
- }
package/src/test.ts DELETED
@@ -1,21 +0,0 @@
1
- // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
-
3
- import 'zone.js/dist/zone';
4
- import 'zone.js/dist/zone-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
- // Then we find all the tests.
19
- const context = require.context('./', true, /\.spec\.ts$/);
20
- // And load the modules.
21
- context.keys().map(context);
package/tsconfig.lib.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../out-tsc/lib",
5
- "target": "es2015",
6
- "declaration": true,
7
- "inlineSources": true,
8
- "types": [],
9
- "lib": [
10
- "dom",
11
- "es2018"
12
- ]
13
- },
14
- "angularCompilerOptions": {
15
- "skipTemplateCodegen": true,
16
- "strictMetadataEmit": true,
17
- "fullTemplateTypeCheck": true,
18
- "strictInjectionParameters": true,
19
- "enableResourceInlining": true
20
- },
21
- "exclude": [
22
- "src/test.ts",
23
- "**/*.spec.ts"
24
- ]
25
- }
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "angularCompilerOptions": {
4
- "enableIvy": false
5
- }
6
- }
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../out-tsc/spec",
5
- "types": [
6
- "jasmine",
7
- "node"
8
- ]
9
- },
10
- "files": [
11
- "src/test.ts"
12
- ],
13
- "include": [
14
- "**/*.spec.ts",
15
- "**/*.d.ts"
16
- ]
17
- }
package/tslint.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../tslint.json",
3
- "rules": {
4
- "directive-selector": [
5
- true,
6
- "attribute",
7
- "lib",
8
- "camelCase"
9
- ]
10
- }
11
- }