@ng-formworks/bootstrap4 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.
Files changed (33) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -2
  3. package/esm2020/lib/bootstrap4-cssframework.mjs +104 -0
  4. package/esm2020/lib/bootstrap4-framework.component.mjs +51 -0
  5. package/esm2020/lib/bootstrap4-framework.module.mjs +49 -0
  6. package/esm2020/lib/bootstrap4.framework.mjs +21 -0
  7. package/esm2020/ng-formworks-bootstrap4.mjs +5 -0
  8. package/esm2020/public_api.mjs +7 -0
  9. package/fesm2015/ng-formworks-bootstrap4.mjs +226 -0
  10. package/fesm2015/ng-formworks-bootstrap4.mjs.map +1 -0
  11. package/fesm2020/ng-formworks-bootstrap4.mjs +226 -0
  12. package/fesm2020/ng-formworks-bootstrap4.mjs.map +1 -0
  13. package/index.d.ts +5 -0
  14. package/lib/bootstrap4-cssframework.d.ts +2 -0
  15. package/lib/bootstrap4-framework.component.d.ts +28 -0
  16. package/lib/bootstrap4-framework.module.d.ts +10 -0
  17. package/lib/bootstrap4.framework.d.ts +10 -0
  18. package/package.json +70 -53
  19. package/{src/public_api.ts → public_api.d.ts} +0 -5
  20. package/karma.conf.js +0 -46
  21. package/ng-package.json +0 -13
  22. package/src/lib/bootstrap4-cssframework.scss +0 -37
  23. package/src/lib/bootstrap4-cssframework.ts +0 -105
  24. package/src/lib/bootstrap4-framework.component.scss +0 -28
  25. package/src/lib/bootstrap4-framework.component.spec.ts +0 -39
  26. package/src/lib/bootstrap4-framework.component.ts +0 -66
  27. package/src/lib/bootstrap4-framework.module.ts +0 -37
  28. package/src/lib/bootstrap4.framework.ts +0 -17
  29. package/src/test.ts +0 -17
  30. package/tsconfig.lib.json +0 -26
  31. package/tsconfig.lib.prod.json +0 -9
  32. package/tsconfig.spec.json +0 -17
  33. package/tslint.json +0 -11
@@ -1,105 +0,0 @@
1
- import { css_fw } from "@ng-formworks/cssframework";
2
-
3
- export const cssFrameworkCfgBootstrap4:css_fw.frameworkcfg={
4
- "name": "bootstrap-4",
5
- "text":"Bootstrap 4",
6
- "scripts": [
7
- "//cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js",
8
- "//cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
9
- ],
10
- "stylesheets": [
11
- "//cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
12
- ],
13
- "widgetstyles": {
14
- "__themes__": [
15
- {"name":"bootstrap4_default","text":"Bootstrap4 default"}
16
- ],
17
- "$ref": {
18
- "fieldHtmlClass": "btn float-right btn-info"
19
- },
20
- "__array_item_nonref__": {
21
- "htmlClass": "list-group-item"
22
- },
23
- "__form_group__": {
24
- "htmlClass": "form-group"
25
- },
26
- "__control_label__": {
27
- "labelHtmlClass": "control-label"
28
- },
29
- "__active__": {
30
- "activeClass": "active"
31
- },
32
- "__required_asterisk__": "text-danger",
33
- "__screen_reader__": "sr-only",
34
- "__remove_item__": "close float-right",
35
- "__help_block__": "help-block",
36
- "__field_addon_left__": "input-group-text input-group-prepend",
37
- "__field_addon_right__": "input-group-text input-group-append",
38
- "alt-date": {},
39
- "alt-datetime": {},
40
- "__array__": {
41
- "htmlClass": "list-group"
42
- },
43
- "array": {},
44
- "authfieldset": {},
45
- "advancedfieldset": {},
46
- "button": {
47
- "fieldHtmlClass": "btn btn-sm btn-primary"
48
- },
49
- "checkbox": { "fieldHtmlClass": "checkbox" },
50
- "checkboxes": {
51
- "fieldHtmlClass": "checkbox"
52
- },
53
- "checkboxbuttons": {
54
- "fieldHtmlClass": "sr-only",
55
- "htmlClass": "btn-group",
56
- "itemLabelHtmlClass": "btn"
57
- },
58
- "checkboxes-inline": {
59
- "htmlClass": "checkbox",
60
- "itemLabelHtmlClass": "checkbox-inline"
61
- },
62
- "date": {},
63
- "datetime-local": {},
64
- "fieldset": {},
65
- "integer": {},
66
- "number": {},
67
- "optionfieldset": {},
68
- "password": {},
69
- "radiobuttons": {
70
- "fieldHtmlClass": "sr-only",
71
- "htmlClass": "btn-group",
72
- "itemLabelHtmlClass": "btn"
73
- },
74
- "radio": { "fieldHtmlClass": "radio" },
75
- "radios": {
76
- "fieldHtmlClass": "radio"
77
- },
78
- "radios-inline": {
79
- "htmlClass": "radio",
80
- "itemLabelHtmlClass": "radio-inline"
81
- },
82
- "range": {},
83
- "section": {},
84
- "selectfieldset": {},
85
- "select": {},
86
- "submit": {
87
- "fieldHtmlClass": "btn btn-primary"
88
- },
89
- "text": {},
90
- "tabs": {
91
- "labelHtmlClass": "nav nav-tabs",
92
- "htmlClass": "tab-content",
93
- "fieldHtmlClass": "tab-pane"
94
- },
95
- "tabarray": {
96
- "labelHtmlClass": "nav nav-tabs",
97
- "htmlClass": "tab-content",
98
- "fieldHtmlClass": "tab-pane"
99
- },
100
- "textarea": {},
101
- "default": {
102
- "fieldHtmlClass": "form-control"
103
- }
104
- }
105
- }
@@ -1,28 +0,0 @@
1
- :host ::ng-deep {
2
- .list-group-item .form-control-feedback {
3
- top: 40px;
4
- }
5
- .checkbox,
6
- .radio {
7
- margin-top: 0;
8
- margin-bottom: 0;
9
- }
10
- .checkbox-inline,
11
- .checkbox-inline+.checkbox-inline,
12
- .checkbox-inline+.radio-inline,
13
- .radio-inline,
14
- .radio-inline+.radio-inline,
15
- .radio-inline+.checkbox-inline {
16
- margin-left: 0;
17
- margin-right: 10px;
18
- }
19
- .checkbox-inline:last-child,
20
- .radio-inline:last-child {
21
- margin-right: 0;
22
- }
23
- .ng-invalid.ng-touched {
24
- border: 1px solid #f44336;
25
- }
26
- }
27
-
28
- @import './bootstrap4-cssframework.scss';
@@ -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 { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component';
9
-
10
- describe('FwBootstrap4Component', () => {
11
- let component: Bootstrap4FrameworkComponent;
12
- let fixture: ComponentFixture<Bootstrap4FrameworkComponent>;
13
-
14
- beforeEach(waitForAsync(() => {
15
- TestBed.configureTestingModule({
16
- imports: [
17
- JsonSchemaFormModule,
18
- CommonModule,
19
- WidgetLibraryModule,
20
- ],
21
- declarations: [Bootstrap4FrameworkComponent],
22
- providers: [JsonSchemaFormService]
23
- })
24
- .compileComponents();
25
- }));
26
-
27
- beforeEach(() => {
28
- fixture = TestBed.createComponent(Bootstrap4FrameworkComponent);
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 4 framework for Angular JSON Schema Form.
13
- *
14
- */
15
- @Component({
16
- // tslint:disable-next-line:component-selector
17
- selector: 'bootstrap-4-framework',
18
- template: `
19
- <div>
20
- <css-framework [layoutNode]="layoutNode"
21
- [layoutIndex]="layoutIndex"
22
- [dataIndex]="dataIndex">
23
- </css-framework>
24
- </div>
25
- `,
26
- styleUrls: ['./bootstrap4-framework.component.scss'],
27
- encapsulation:ViewEncapsulation.None
28
- })
29
- export class Bootstrap4FrameworkComponent 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 { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component';
13
- import { Bootstrap4Framework } from './bootstrap4.framework';
14
-
15
- @NgModule({
16
- imports: [
17
- JsonSchemaFormModule,
18
- CommonModule,
19
- WidgetLibraryModule,
20
- CssFrameworkModule
21
- ],
22
- declarations: [
23
- Bootstrap4FrameworkComponent,
24
- ],
25
- exports: [
26
- JsonSchemaFormModule,
27
- Bootstrap4FrameworkComponent,
28
- ],
29
- providers: [
30
- JsonSchemaFormService,
31
- FrameworkLibraryService,
32
- WidgetLibraryService,
33
- { provide: Framework, useClass: Bootstrap4Framework, multi: true },
34
- ]
35
- })
36
- export class Bootstrap4FrameworkModule {
37
- }
@@ -1,17 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework';
3
- import { cssFrameworkCfgBootstrap4 } from './bootstrap4-cssframework';
4
- import { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component';
5
-
6
- // Bootstrap 4 Framework
7
- // https://github.com/ng-bootstrap/ng-bootstrap
8
-
9
- @Injectable()
10
- export class Bootstrap4Framework extends CssFramework {
11
-
12
- framework = Bootstrap4FrameworkComponent;
13
-
14
- constructor(public cssFWService:CssframeworkService){
15
- super(cssFrameworkCfgBootstrap4,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,26 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../out-tsc/lib",
5
- "declarationMap": true,
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
- "preserveSymlinks": true
21
- },
22
- "exclude": [
23
- "src/test.ts",
24
- "**/*.spec.ts"
25
- ]
26
- }
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.lib.json",
3
- "compilerOptions": {
4
- "declarationMap": false
5
- },
6
- "angularCompilerOptions": {
7
- "compilationMode": "partial"
8
- }
9
- }
@@ -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
- }