@ng-formworks/bootstrap4 17.2.7 → 17.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.
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./bootstrap4-framework.component";
3
+ import * as i2 from "@ng-formworks/core";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@ng-formworks/cssframework";
6
+ export declare class Bootstrap4FrameworkModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<Bootstrap4FrameworkModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Bootstrap4FrameworkModule, [typeof i1.Bootstrap4FrameworkComponent], [typeof i2.JsonSchemaFormModule, typeof i3.CommonModule, typeof i2.WidgetLibraryModule, typeof i4.CssFrameworkModule], [typeof i2.JsonSchemaFormModule, typeof i1.Bootstrap4FrameworkComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<Bootstrap4FrameworkModule>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { CssFramework, CssframeworkService } from '@ng-formworks/cssframework';
2
+ import { Bootstrap4FrameworkComponent } from './bootstrap4-framework.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class Bootstrap4Framework extends CssFramework {
5
+ cssFWService: CssframeworkService;
6
+ framework: typeof Bootstrap4FrameworkComponent;
7
+ constructor(cssFWService: CssframeworkService);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<Bootstrap4Framework, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<Bootstrap4Framework>;
10
+ }
package/package.json CHANGED
@@ -1,54 +1,65 @@
1
- {
2
- "name": "@ng-formworks/bootstrap4",
3
- "version": "17.2.7",
4
- "description": "Angular ng-formworks - JSON Schema Form builder using Bootstrap 4 UI",
5
- "author": "https://github.com/zahmo/ng-formworks/graphs/contributors",
6
- "keywords": [
7
- "Angular",
8
- "ng",
9
- "Angular15",
10
- "Angular 15",
11
- "Angular16",
12
- "Angular 16",
13
- "Angular17",
14
- "Angular 17",
15
- "ng15",
16
- "ng16",
17
- "ng17",
18
- "JSON Schema",
19
- "form",
20
- "forms",
21
- "form builder",
22
- "form themes",
23
- "form generator",
24
- "bootstrap",
25
- "bootstrap 4",
26
- "ajsf",
27
- "ng-formworks",
28
- "ng formworks",
29
- "formworks",
30
- "angular json schema form"
31
- ],
32
- "license": "MIT",
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/zahmo/ng-formworks"
36
- },
37
- "bugs": {
38
- "url": "https://github.com/zahmo/ng-formworks/issues"
39
- },
40
- "private": false,
41
- "dependencies": {
42
- "lodash-es": "~4.17.21",
43
- "@ng-formworks/core": "~17.2.7",
44
- "@ng-formworks/cssframework": "~17.2.7",
45
- "tslib": "^2.0.0"
46
- },
47
- "peerDependencies": {
48
- "@angular/common": ">=17.0.0",
49
- "@angular/core": ">=17.0.0"
50
- },
51
- "devDependencies": {
52
- "@types/lodash-es": "^4.17.6"
53
- }
1
+ {
2
+ "name": "@ng-formworks/bootstrap4",
3
+ "version": "17.4.0",
4
+ "description": "Angular ng-formworks - JSON Schema Form builder using Bootstrap 4 UI",
5
+ "author": "https://github.com/zahmo/ng-formworks/graphs/contributors",
6
+ "keywords": [
7
+ "Angular",
8
+ "ng",
9
+ "Angular15",
10
+ "Angular 15",
11
+ "Angular16",
12
+ "Angular 16",
13
+ "Angular17",
14
+ "Angular 17",
15
+ "ng15",
16
+ "ng16",
17
+ "ng17",
18
+ "JSON Schema",
19
+ "form",
20
+ "forms",
21
+ "form builder",
22
+ "form themes",
23
+ "form generator",
24
+ "bootstrap",
25
+ "bootstrap 4",
26
+ "ajsf",
27
+ "ng-formworks",
28
+ "ng formworks",
29
+ "formworks",
30
+ "angular json schema form"
31
+ ],
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/zahmo/ng-formworks"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/zahmo/ng-formworks/issues"
39
+ },
40
+ "private": false,
41
+ "dependencies": {
42
+ "lodash-es": "~4.17.21",
43
+ "@ng-formworks/core": "~17.4.0",
44
+ "@ng-formworks/cssframework": "~17.4.0",
45
+ "tslib": "^2.0.0"
46
+ },
47
+ "peerDependencies": {
48
+ "@angular/common": ">=17.0.0",
49
+ "@angular/core": ">=17.0.0"
50
+ },
51
+ "module": "fesm2022/ng-formworks-bootstrap4.mjs",
52
+ "typings": "index.d.ts",
53
+ "exports": {
54
+ "./package.json": {
55
+ "default": "./package.json"
56
+ },
57
+ ".": {
58
+ "types": "./index.d.ts",
59
+ "esm2022": "./esm2022/ng-formworks-bootstrap4.mjs",
60
+ "esm": "./esm2022/ng-formworks-bootstrap4.mjs",
61
+ "default": "./fesm2022/ng-formworks-bootstrap4.mjs"
62
+ }
63
+ },
64
+ "sideEffects": false
54
65
  }
@@ -1,8 +1,3 @@
1
- /*
2
- * Public API Surface of @ng-formworks/bootstrap4
3
- */
4
-
5
- export * from './lib/bootstrap4-framework.component';
6
- export * from './lib/bootstrap4-framework.module';
7
- export * from './lib/bootstrap4.framework';
8
-
1
+ export * from './lib/bootstrap4-framework.component';
2
+ export * from './lib/bootstrap4-framework.module';
3
+ export * from './lib/bootstrap4.framework';
package/karma.conf.js DELETED
@@ -1,46 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage'),
13
- require('@angular-devkit/build-angular/plugins/karma'),
14
- ],
15
- client: {
16
- clearContext: false // leave Jasmine Spec Runner output visible in browser
17
- },
18
- coverageReporter: {
19
- dir: require('path').join(__dirname, '../../coverage/ajsf-bootstrap4'),
20
- reporters: [
21
- {
22
- type: 'html',
23
- },
24
- {
25
- type: 'lcov',
26
- },
27
- {
28
- type: 'text-summary',
29
- },
30
- ],
31
- },
32
- reporters: ['progress', 'kjhtml'],
33
- port: 9876,
34
- colors: true,
35
- logLevel: config.LOG_INFO,
36
- autoWatch: true,
37
- singleRun: false,
38
- browsers: ['Chrome', 'ChromeHeadlessCI'],
39
- customLaunchers: {
40
- ChromeHeadlessCI: {
41
- base: 'ChromeHeadless',
42
- flags: ['--no-sandbox'],
43
- },
44
- },
45
- });
46
- };
package/ng-package.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/@ng-formworks/bootstrap4",
4
- "lib": {
5
- "entryFile": "src/public_api.ts"
6
- },
7
- "assets": ["./assets"],
8
- "allowedNonPeerDependencies": [
9
- "lodash-es",
10
- "@ng-formworks/core",
11
- "@ng-formworks/cssframework"
12
- ]
13
- }
@@ -1,37 +0,0 @@
1
- /*adapted from bootstrap 3 to fix input groups */
2
-
3
- .input-group .form-control:first-child,
4
- .input-group-text:first-child,
5
- .input-group-btn:first-child>.btn,
6
- .input-group-btn:first-child>.btn-group>.btn,
7
- .input-group-btn:first-child>.dropdown-toggle,
8
- .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),
9
- .input-group-btn:last-child>.btn-group:not(:last-child)>.btn {
10
- border-top-right-radius: 0;
11
- border-bottom-right-radius: 0;
12
- }
13
-
14
- .input-group-text:first-child {
15
- border-right: 0;
16
- }
17
-
18
- .input-group .form-control:last-child,
19
- .input-group-text:last-child,
20
- .input-group-btn:last-child>.btn,
21
- .input-group-btn:last-child>.btn-group>.btn,
22
- .input-group-btn:last-child>.dropdown-toggle,
23
- .input-group-btn:first-child>.btn:not(:first-child),
24
- .input-group-btn:first-child>.btn-group:not(:first-child)>.btn {
25
- border-top-left-radius: 0;
26
- border-bottom-left-radius: 0;
27
- }
28
-
29
- .input-group-text:last-child {
30
- border-left: 0;
31
- }
32
-
33
- .input-group .form-control:not(:first-child):not(:last-child),
34
- .input-group-text:not(:first-child):not(:last-child),
35
- .input-group-btn:not(:first-child):not(:last-child) {
36
- border-radius: 0
37
- }
@@ -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
- }