@ng-formworks/bootstrap5 15.2.7 → 15.4.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/LICENSE +21 -0
- package/README.md +5 -3
- package/esm2020/lib/bootstrap5-cssframework.mjs +105 -0
- package/esm2020/lib/bootstrap5-framework.component.mjs +51 -0
- package/esm2020/lib/bootstrap5-framework.module.mjs +49 -0
- package/esm2020/lib/bootstrap5.framework.mjs +21 -0
- package/esm2020/ng-formworks-bootstrap5.mjs +5 -0
- package/esm2020/public_api.mjs +7 -0
- package/fesm2015/ng-formworks-bootstrap5.mjs +227 -0
- package/fesm2015/ng-formworks-bootstrap5.mjs.map +1 -0
- package/fesm2020/ng-formworks-bootstrap5.mjs +227 -0
- package/fesm2020/ng-formworks-bootstrap5.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/bootstrap5-cssframework.d.ts +2 -0
- package/lib/bootstrap5-framework.component.d.ts +28 -0
- package/lib/bootstrap5-framework.module.d.ts +10 -0
- package/lib/bootstrap5.framework.d.ts +10 -0
- package/package.json +70 -53
- package/{src/public_api.ts → public_api.d.ts} +0 -5
- package/ng-package.json +0 -13
- package/src/lib/bootstrap5-cssframework.scss +0 -41
- package/src/lib/bootstrap5-cssframework.ts +0 -107
- package/src/lib/bootstrap5-framework.component.scss +0 -28
- package/src/lib/bootstrap5-framework.component.spec.ts +0 -39
- package/src/lib/bootstrap5-framework.component.ts +0 -66
- package/src/lib/bootstrap5-framework.module.ts +0 -37
- package/src/lib/bootstrap5.framework.ts +0 -17
- package/src/test.ts +0 -17
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
|
3
|
-
import {
|
|
4
|
-
JsonSchemaFormModule,
|
|
5
|
-
JsonSchemaFormService,
|
|
6
|
-
WidgetLibraryModule
|
|
7
|
-
} from '@ng-formworks/core';
|
|
8
|
-
import { Bootstrap5FrameworkComponent } from './bootstrap5-framework.component';
|
|
9
|
-
|
|
10
|
-
describe('Bootstrap5Component', () => {
|
|
11
|
-
let component: Bootstrap5FrameworkComponent;
|
|
12
|
-
let fixture: ComponentFixture<Bootstrap5FrameworkComponent>;
|
|
13
|
-
|
|
14
|
-
beforeEach(waitForAsync(() => {
|
|
15
|
-
TestBed.configureTestingModule({
|
|
16
|
-
imports: [
|
|
17
|
-
JsonSchemaFormModule,
|
|
18
|
-
CommonModule,
|
|
19
|
-
WidgetLibraryModule,
|
|
20
|
-
],
|
|
21
|
-
declarations: [Bootstrap5FrameworkComponent],
|
|
22
|
-
providers: [JsonSchemaFormService]
|
|
23
|
-
})
|
|
24
|
-
.compileComponents();
|
|
25
|
-
}));
|
|
26
|
-
|
|
27
|
-
beforeEach(() => {
|
|
28
|
-
fixture = TestBed.createComponent(Bootstrap5FrameworkComponent);
|
|
29
|
-
component = fixture.componentInstance;
|
|
30
|
-
component.layoutNode = { options: {} };
|
|
31
|
-
component.layoutIndex = [];
|
|
32
|
-
component.dataIndex = [];
|
|
33
|
-
fixture.detectChanges();
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
it('should create', () => {
|
|
37
|
-
expect(component).toBeTruthy();
|
|
38
|
-
});
|
|
39
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectorRef,
|
|
3
|
-
Component,
|
|
4
|
-
Input,
|
|
5
|
-
OnChanges,
|
|
6
|
-
OnInit,
|
|
7
|
-
ViewEncapsulation
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { JsonSchemaFormService } from '@ng-formworks/core';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Bootstrap 5 framework for Angular JSON Schema Form.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
@Component({
|
|
16
|
-
// tslint:disable-next-line:component-selector
|
|
17
|
-
selector: 'bootstrap-5-framework',
|
|
18
|
-
template: `
|
|
19
|
-
<div>
|
|
20
|
-
<css-framework [layoutNode]="layoutNode"
|
|
21
|
-
[layoutIndex]="layoutIndex"
|
|
22
|
-
[dataIndex]="dataIndex">
|
|
23
|
-
</css-framework>
|
|
24
|
-
</div>
|
|
25
|
-
`,
|
|
26
|
-
styleUrls: ['./bootstrap5-framework.component.scss'],
|
|
27
|
-
encapsulation:ViewEncapsulation.None
|
|
28
|
-
})
|
|
29
|
-
export class Bootstrap5FrameworkComponent implements OnInit, OnChanges {
|
|
30
|
-
frameworkInitialized = false;
|
|
31
|
-
widgetOptions: any; // Options passed to child widget
|
|
32
|
-
widgetLayoutNode: any; // layoutNode passed to child widget
|
|
33
|
-
options: any; // Options used in this framework
|
|
34
|
-
formControl: any = null;
|
|
35
|
-
debugOutput: any = '';
|
|
36
|
-
debug: any = '';
|
|
37
|
-
parentArray: any = null;
|
|
38
|
-
isOrderable = false;
|
|
39
|
-
@Input() layoutNode: any;
|
|
40
|
-
@Input() layoutIndex: number[];
|
|
41
|
-
@Input() dataIndex: number[];
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
constructor(
|
|
45
|
-
public changeDetector: ChangeDetectorRef,
|
|
46
|
-
public jsf: JsonSchemaFormService
|
|
47
|
-
) {
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
ngOnInit() {
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ngOnChanges() {
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
Framework,
|
|
5
|
-
FrameworkLibraryService,
|
|
6
|
-
JsonSchemaFormModule,
|
|
7
|
-
JsonSchemaFormService,
|
|
8
|
-
WidgetLibraryModule,
|
|
9
|
-
WidgetLibraryService
|
|
10
|
-
} from '@ng-formworks/core';
|
|
11
|
-
import { CssFrameworkModule } from '@ng-formworks/cssframework';
|
|
12
|
-
import { Bootstrap5FrameworkComponent } from './bootstrap5-framework.component';
|
|
13
|
-
import { Bootstrap5Framework } from './bootstrap5.framework';
|
|
14
|
-
|
|
15
|
-
@NgModule({
|
|
16
|
-
imports: [
|
|
17
|
-
JsonSchemaFormModule,
|
|
18
|
-
CommonModule,
|
|
19
|
-
WidgetLibraryModule,
|
|
20
|
-
CssFrameworkModule
|
|
21
|
-
],
|
|
22
|
-
declarations: [
|
|
23
|
-
Bootstrap5FrameworkComponent,
|
|
24
|
-
],
|
|
25
|
-
exports: [
|
|
26
|
-
JsonSchemaFormModule,
|
|
27
|
-
Bootstrap5FrameworkComponent,
|
|
28
|
-
],
|
|
29
|
-
providers: [
|
|
30
|
-
JsonSchemaFormService,
|
|
31
|
-
FrameworkLibraryService,
|
|
32
|
-
WidgetLibraryService,
|
|
33
|
-
{ provide: Framework, useClass: Bootstrap5Framework, multi: true },
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
export class Bootstrap5FrameworkModule {
|
|
37
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework';
|
|
3
|
-
import { cssFrameworkCfgBootstrap5 } from './bootstrap5-cssframework';
|
|
4
|
-
import { Bootstrap5FrameworkComponent } from './bootstrap5-framework.component';
|
|
5
|
-
|
|
6
|
-
// Bootstrap 4 Framework
|
|
7
|
-
// https://github.com/ng-bootstrap/ng-bootstrap
|
|
8
|
-
|
|
9
|
-
@Injectable()
|
|
10
|
-
export class Bootstrap5Framework extends CssFramework {
|
|
11
|
-
|
|
12
|
-
framework = Bootstrap5FrameworkComponent;
|
|
13
|
-
|
|
14
|
-
constructor(public cssFWService:CssframeworkService){
|
|
15
|
-
super(cssFrameworkCfgBootstrap5,cssFWService);
|
|
16
|
-
}
|
|
17
|
-
}
|
package/src/test.ts
DELETED
|
@@ -1,17 +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';
|
|
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
|
-
// First, initialize the Angular testing environment.
|
|
12
|
-
getTestBed().initTestEnvironment(
|
|
13
|
-
BrowserDynamicTestingModule,
|
|
14
|
-
platformBrowserDynamicTesting(), {
|
|
15
|
-
teardown: { destroyAfterEach: false }
|
|
16
|
-
}
|
|
17
|
-
);
|
package/tsconfig.lib.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"extends": "../../tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "../../out-tsc/lib",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"inlineSources": true,
|
|
9
|
-
"types": []
|
|
10
|
-
},
|
|
11
|
-
"exclude": [
|
|
12
|
-
"**/*.spec.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
"types": [
|
|
7
|
-
"jasmine"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"include": [
|
|
11
|
-
"**/*.spec.ts",
|
|
12
|
-
"**/*.d.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|