@ng-formworks/core 16.6.2 → 16.6.3
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/esm2022/lib/shared/form-group.functions.mjs +34 -44
- package/esm2022/lib/shared/json-schema.functions.mjs +41 -8
- package/esm2022/lib/shared/layout.functions.mjs +7 -5
- package/esm2022/lib/widget-library/index.mjs +4 -2
- package/esm2022/lib/widget-library/one-of.component.mjs +2 -2
- package/esm2022/lib/widget-library/root.component.mjs +2 -1
- package/esm2022/lib/widget-library/selectcheckbox.component.mjs +186 -0
- package/esm2022/lib/widget-library/widget-library.module.mjs +4 -3
- package/esm2022/lib/widget-library/widget-library.service.mjs +6 -4
- package/fesm2022/ng-formworks-core.mjs +367 -161
- package/fesm2022/ng-formworks-core.mjs.map +1 -1
- package/lib/shared/json-schema.functions.d.ts +0 -1
- package/lib/widget-library/index.d.ts +2 -1
- package/lib/widget-library/selectcheckbox.component.d.ts +55 -0
- package/lib/widget-library/widget-library.module.d.ts +7 -6
- package/package.json +1 -1
|
@@ -210,6 +210,5 @@ export declare function fixRequiredArrayProperties(schema: any): any;
|
|
|
210
210
|
* @param schema:any
|
|
211
211
|
* @param negate:boolean=false
|
|
212
212
|
* @returns
|
|
213
|
-
|
|
214
213
|
*/
|
|
215
214
|
export declare function convertJSONSchemaIfToCondition(schema: any, layoutNode: any, negate?: boolean): {};
|
|
@@ -20,7 +20,7 @@ import { TabComponent } from './tab.component';
|
|
|
20
20
|
import { TabsComponent } from './tabs.component';
|
|
21
21
|
import { TemplateComponent } from './template.component';
|
|
22
22
|
import { TextareaComponent } from './textarea.component';
|
|
23
|
-
export declare const BASIC_WIDGETS: (typeof AddReferenceComponent | typeof ButtonComponent | typeof CheckboxComponent | typeof CheckboxesComponent | typeof FileComponent | typeof HiddenComponent | typeof InputComponent | typeof MessageComponent | typeof NoneComponent | typeof NumberComponent | typeof OneOfComponent | typeof RadiosComponent | typeof RootComponent | typeof SectionComponent | typeof SelectFrameworkComponent | typeof SelectWidgetComponent | typeof SelectComponent | typeof SubmitComponent | typeof
|
|
23
|
+
export declare const BASIC_WIDGETS: (typeof AddReferenceComponent | typeof ButtonComponent | typeof CheckboxComponent | typeof CheckboxesComponent | typeof FileComponent | typeof HiddenComponent | typeof InputComponent | typeof MessageComponent | typeof NoneComponent | typeof NumberComponent | typeof OneOfComponent | typeof RadiosComponent | typeof RootComponent | typeof SectionComponent | typeof SelectFrameworkComponent | typeof SelectWidgetComponent | typeof SelectComponent | typeof SubmitComponent | typeof TabsComponent | typeof TemplateComponent | typeof TextareaComponent | typeof TabComponent)[];
|
|
24
24
|
export { AddReferenceComponent } from './add-reference.component';
|
|
25
25
|
export { ButtonComponent } from './button.component';
|
|
26
26
|
export { CheckboxComponent } from './checkbox.component';
|
|
@@ -40,6 +40,7 @@ export { SectionComponent } from './section.component';
|
|
|
40
40
|
export { SelectFrameworkComponent } from './select-framework.component';
|
|
41
41
|
export { SelectWidgetComponent } from './select-widget.component';
|
|
42
42
|
export { SelectComponent } from './select.component';
|
|
43
|
+
export { SelectCheckboxComponent } from './selectcheckbox.component';
|
|
43
44
|
export { SubmitComponent } from './submit.component';
|
|
44
45
|
export { TabComponent } from './tab.component';
|
|
45
46
|
export { TabsComponent } from './tabs.component';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { isArray } from '../shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SelectCheckboxComponent implements OnInit, OnDestroy {
|
|
6
|
+
private jsf;
|
|
7
|
+
private jsfFLService;
|
|
8
|
+
formControl: AbstractControl;
|
|
9
|
+
controlName: string;
|
|
10
|
+
controlValue: any;
|
|
11
|
+
controlDisabled: boolean;
|
|
12
|
+
boundControl: boolean;
|
|
13
|
+
options: any;
|
|
14
|
+
selectList: any[];
|
|
15
|
+
selectListFlatGroup: any[];
|
|
16
|
+
selectValue: any;
|
|
17
|
+
isArray: typeof isArray;
|
|
18
|
+
layoutNode: any;
|
|
19
|
+
layoutIndex: number[];
|
|
20
|
+
dataIndex: number[];
|
|
21
|
+
frameworkStyles: {
|
|
22
|
+
daisyui: {
|
|
23
|
+
selectClass: string;
|
|
24
|
+
optionClass: string;
|
|
25
|
+
optionChecked: string;
|
|
26
|
+
optionUnchecked: string;
|
|
27
|
+
};
|
|
28
|
+
"bootstrap-3": {
|
|
29
|
+
selectClass: string;
|
|
30
|
+
optionClass: string;
|
|
31
|
+
optionChecked: string;
|
|
32
|
+
optionUnchecked: string;
|
|
33
|
+
};
|
|
34
|
+
"bootstrap-4": {
|
|
35
|
+
selectClass: string;
|
|
36
|
+
optionClass: string;
|
|
37
|
+
optionChecked: string;
|
|
38
|
+
optionUnchecked: string;
|
|
39
|
+
};
|
|
40
|
+
"bootstrap-5": {
|
|
41
|
+
selectClass: string;
|
|
42
|
+
optionClass: string;
|
|
43
|
+
optionChecked: string;
|
|
44
|
+
optionUnchecked: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
activeFramework: string;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
deselectAll(): void;
|
|
50
|
+
updateValue(event: any): void;
|
|
51
|
+
onSelectClicked($event: any): void;
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectCheckboxComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectCheckboxComponent, "selectcheckbox-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
55
|
+
}
|
|
@@ -21,13 +21,14 @@ import * as i19 from "./tab.component";
|
|
|
21
21
|
import * as i20 from "./tabs.component";
|
|
22
22
|
import * as i21 from "./template.component";
|
|
23
23
|
import * as i22 from "./textarea.component";
|
|
24
|
-
import * as i23 from "./
|
|
25
|
-
import * as i24 from "./
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "@angular/
|
|
28
|
-
import * as i27 from "
|
|
24
|
+
import * as i23 from "./selectcheckbox.component";
|
|
25
|
+
import * as i24 from "./orderable.directive";
|
|
26
|
+
import * as i25 from "./element-attribute.directive";
|
|
27
|
+
import * as i26 from "@angular/common";
|
|
28
|
+
import * as i27 from "@angular/forms";
|
|
29
|
+
import * as i28 from "nxt-sortablejs";
|
|
29
30
|
export declare class WidgetLibraryModule {
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetLibraryModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetLibraryModule, [typeof i1.AddReferenceComponent, typeof i2.OneOfComponent, typeof i3.ButtonComponent, typeof i4.CheckboxComponent, typeof i5.CheckboxesComponent, typeof i6.FileComponent, typeof i7.HiddenComponent, typeof i8.InputComponent, typeof i9.MessageComponent, typeof i10.NoneComponent, typeof i11.NumberComponent, typeof i12.RadiosComponent, typeof i13.RootComponent, typeof i14.SectionComponent, typeof i15.SelectComponent, typeof i16.SelectFrameworkComponent, typeof i17.SelectWidgetComponent, typeof i18.SubmitComponent, typeof i19.TabComponent, typeof i20.TabsComponent, typeof i21.TemplateComponent, typeof i22.TextareaComponent, typeof i23.
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetLibraryModule, [typeof i1.AddReferenceComponent, typeof i2.OneOfComponent, typeof i3.ButtonComponent, typeof i4.CheckboxComponent, typeof i5.CheckboxesComponent, typeof i6.FileComponent, typeof i7.HiddenComponent, typeof i8.InputComponent, typeof i9.MessageComponent, typeof i10.NoneComponent, typeof i11.NumberComponent, typeof i12.RadiosComponent, typeof i13.RootComponent, typeof i14.SectionComponent, typeof i15.SelectComponent, typeof i16.SelectFrameworkComponent, typeof i17.SelectWidgetComponent, typeof i18.SubmitComponent, typeof i19.TabComponent, typeof i20.TabsComponent, typeof i21.TemplateComponent, typeof i22.TextareaComponent, typeof i23.SelectCheckboxComponent, typeof i24.OrderableDirective, typeof i25.ElementAttributeDirective], [typeof i26.CommonModule, typeof i27.FormsModule, typeof i27.ReactiveFormsModule, typeof i28.SortablejsModule], [typeof i1.AddReferenceComponent, typeof i2.OneOfComponent, typeof i3.ButtonComponent, typeof i4.CheckboxComponent, typeof i5.CheckboxesComponent, typeof i6.FileComponent, typeof i7.HiddenComponent, typeof i8.InputComponent, typeof i9.MessageComponent, typeof i10.NoneComponent, typeof i11.NumberComponent, typeof i12.RadiosComponent, typeof i13.RootComponent, typeof i14.SectionComponent, typeof i15.SelectComponent, typeof i16.SelectFrameworkComponent, typeof i17.SelectWidgetComponent, typeof i18.SubmitComponent, typeof i19.TabComponent, typeof i20.TabsComponent, typeof i21.TemplateComponent, typeof i22.TextareaComponent, typeof i23.SelectCheckboxComponent, typeof i24.OrderableDirective, typeof i25.ElementAttributeDirective]>;
|
|
32
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<WidgetLibraryModule>;
|
|
33
34
|
}
|
package/package.json
CHANGED