@ng-formworks/core 16.2.7 → 16.3.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 (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +833 -0
  3. package/esm2022/lib/framework-library/framework-library.service.mjs +175 -0
  4. package/esm2022/lib/framework-library/framework.mjs +15 -0
  5. package/esm2022/lib/framework-library/no-framework.component.mjs +18 -0
  6. package/esm2022/lib/framework-library/no-framework.module.mjs +27 -0
  7. package/esm2022/lib/framework-library/no.framework.mjs +19 -0
  8. package/esm2022/lib/json-schema-form.component.mjs +765 -0
  9. package/esm2022/lib/json-schema-form.module.mjs +26 -0
  10. package/esm2022/lib/json-schema-form.service.mjs +676 -0
  11. package/esm2022/lib/locale/de-validation-messages.mjs +60 -0
  12. package/esm2022/lib/locale/en-validation-messages.mjs +60 -0
  13. package/esm2022/lib/locale/es-validation-messages.mjs +57 -0
  14. package/esm2022/lib/locale/fr-validation-messages.mjs +60 -0
  15. package/esm2022/lib/locale/index.mjs +8 -0
  16. package/esm2022/lib/locale/it-validation-messages.mjs +60 -0
  17. package/esm2022/lib/locale/pt-validation-messages.mjs +60 -0
  18. package/esm2022/lib/locale/zh-validation-messages.mjs +60 -0
  19. package/esm2022/lib/shared/convert-schema-to-draft6.function.mjs +300 -0
  20. package/esm2022/lib/shared/form-group.functions.mjs +442 -0
  21. package/esm2022/lib/shared/format-regex.constants.mjs +54 -0
  22. package/esm2022/lib/shared/index.mjs +12 -0
  23. package/esm2022/lib/shared/json-schema.functions.mjs +784 -0
  24. package/esm2022/lib/shared/json.validators.mjs +884 -0
  25. package/esm2022/lib/shared/jsonpointer.functions.mjs +1026 -0
  26. package/esm2022/lib/shared/layout.functions.mjs +1154 -0
  27. package/esm2022/lib/shared/merge-schemas.function.mjs +345 -0
  28. package/esm2022/lib/shared/utility.functions.mjs +380 -0
  29. package/esm2022/lib/shared/validator.functions.mjs +584 -0
  30. package/esm2022/lib/widget-library/add-reference.component.mjs +61 -0
  31. package/esm2022/lib/widget-library/button.component.mjs +72 -0
  32. package/esm2022/lib/widget-library/checkbox.component.mjs +105 -0
  33. package/esm2022/lib/widget-library/checkboxes.component.mjs +147 -0
  34. package/esm2022/lib/widget-library/file.component.mjs +35 -0
  35. package/esm2022/lib/widget-library/hidden.component.mjs +54 -0
  36. package/esm2022/lib/widget-library/index.mjs +55 -0
  37. package/esm2022/lib/widget-library/input.component.mjs +119 -0
  38. package/esm2022/lib/widget-library/message.component.mjs +38 -0
  39. package/esm2022/lib/widget-library/none.component.mjs +21 -0
  40. package/esm2022/lib/widget-library/number.component.mjs +123 -0
  41. package/esm2022/lib/widget-library/one-of.component.mjs +35 -0
  42. package/esm2022/lib/widget-library/orderable.directive.mjs +123 -0
  43. package/esm2022/lib/widget-library/radios.component.mjs +153 -0
  44. package/esm2022/lib/widget-library/root.component.mjs +79 -0
  45. package/esm2022/lib/widget-library/section.component.mjs +199 -0
  46. package/esm2022/lib/widget-library/select-framework.component.mjs +51 -0
  47. package/esm2022/lib/widget-library/select-widget.component.mjs +46 -0
  48. package/esm2022/lib/widget-library/select.component.mjs +150 -0
  49. package/esm2022/lib/widget-library/submit.component.mjs +82 -0
  50. package/esm2022/lib/widget-library/tab.component.mjs +41 -0
  51. package/esm2022/lib/widget-library/tabs.component.mjs +108 -0
  52. package/esm2022/lib/widget-library/template.component.mjs +46 -0
  53. package/esm2022/lib/widget-library/textarea.component.mjs +104 -0
  54. package/esm2022/lib/widget-library/widget-library.module.mjs +42 -0
  55. package/esm2022/lib/widget-library/widget-library.service.mjs +226 -0
  56. package/esm2022/ng-formworks-core.mjs +5 -0
  57. package/esm2022/public_api.mjs +13 -0
  58. package/fesm2022/ng-formworks-core.mjs +10147 -0
  59. package/fesm2022/ng-formworks-core.mjs.map +1 -0
  60. package/index.d.ts +5 -0
  61. package/lib/framework-library/framework-library.service.d.ts +55 -0
  62. package/lib/framework-library/framework.d.ts +13 -0
  63. package/lib/framework-library/no-framework.component.d.ts +8 -0
  64. package/lib/framework-library/no-framework.module.d.ts +9 -0
  65. package/lib/framework-library/no.framework.d.ts +10 -0
  66. package/lib/json-schema-form.component.d.ts +218 -0
  67. package/lib/json-schema-form.module.d.ts +11 -0
  68. package/lib/json-schema-form.service.d.ts +115 -0
  69. package/lib/locale/de-validation-messages.d.ts +1 -0
  70. package/lib/locale/en-validation-messages.d.ts +1 -0
  71. package/lib/locale/es-validation-messages.d.ts +1 -0
  72. package/lib/locale/fr-validation-messages.d.ts +1 -0
  73. package/lib/locale/it-validation-messages.d.ts +1 -0
  74. package/lib/locale/pt-validation-messages.d.ts +1 -0
  75. package/lib/locale/zh-validation-messages.d.ts +1 -0
  76. package/lib/shared/convert-schema-to-draft6.function.d.ts +21 -0
  77. package/lib/shared/form-group.functions.d.ts +100 -0
  78. package/lib/shared/format-regex.constants.d.ts +19 -0
  79. package/lib/shared/index.d.ts +9 -0
  80. package/lib/shared/json-schema.functions.d.ts +193 -0
  81. package/lib/shared/json.validators.d.ts +441 -0
  82. package/lib/shared/jsonpointer.functions.d.ts +416 -0
  83. package/lib/shared/layout.functions.d.ts +83 -0
  84. package/lib/shared/merge-schemas.function.d.ts +19 -0
  85. package/lib/shared/utility.functions.d.ts +165 -0
  86. package/{src/lib/shared/validator.functions.ts → lib/shared/validator.functions.d.ts} +40 -277
  87. package/lib/widget-library/add-reference.component.d.ts +20 -0
  88. package/lib/widget-library/button.component.d.ts +21 -0
  89. package/lib/widget-library/checkbox.component.d.ts +24 -0
  90. package/lib/widget-library/checkboxes.component.d.ts +24 -0
  91. package/lib/widget-library/file.component.d.ts +21 -0
  92. package/lib/widget-library/hidden.component.d.ts +19 -0
  93. package/{src/lib/widget-library/index.ts → lib/widget-library/index.d.ts} +1 -10
  94. package/lib/widget-library/input.component.d.ts +22 -0
  95. package/lib/widget-library/message.component.d.ts +15 -0
  96. package/lib/widget-library/none.component.d.ts +8 -0
  97. package/lib/widget-library/number.component.d.ts +25 -0
  98. package/lib/widget-library/one-of.component.d.ts +21 -0
  99. package/lib/widget-library/orderable.directive.d.ts +41 -0
  100. package/lib/widget-library/radios.component.d.ts +23 -0
  101. package/lib/widget-library/root.component.d.ts +17 -0
  102. package/lib/widget-library/section.component.d.ts +19 -0
  103. package/lib/widget-library/select-framework.component.d.ts +18 -0
  104. package/lib/widget-library/select-widget.component.d.ts +18 -0
  105. package/lib/widget-library/select.component.d.ts +24 -0
  106. package/lib/widget-library/submit.component.d.ts +24 -0
  107. package/lib/widget-library/tab.component.d.ts +14 -0
  108. package/lib/widget-library/tabs.component.d.ts +20 -0
  109. package/lib/widget-library/template.component.d.ts +18 -0
  110. package/lib/widget-library/textarea.component.d.ts +21 -0
  111. package/lib/widget-library/widget-library.module.d.ts +31 -0
  112. package/lib/widget-library/widget-library.service.d.ts +22 -0
  113. package/package.json +64 -53
  114. package/{src/public_api.ts → public_api.d.ts} +1 -13
  115. package/karma.conf.js +0 -46
  116. package/ng-package.json +0 -11
  117. package/src/lib/framework-library/framework-library.service.ts +0 -195
  118. package/src/lib/framework-library/framework.ts +0 -11
  119. package/src/lib/framework-library/no-framework.component.html +0 -2
  120. package/src/lib/framework-library/no-framework.component.ts +0 -11
  121. package/src/lib/framework-library/no-framework.module.ts +0 -18
  122. package/src/lib/framework-library/no.framework.ts +0 -11
  123. package/src/lib/json-schema-form.component.html +0 -7
  124. package/src/lib/json-schema-form.component.ts +0 -809
  125. package/src/lib/json-schema-form.module.ts +0 -17
  126. package/src/lib/json-schema-form.service.ts +0 -907
  127. package/src/lib/locale/de-validation-messages.ts +0 -58
  128. package/src/lib/locale/en-validation-messages.ts +0 -58
  129. package/src/lib/locale/es-validation-messages.ts +0 -55
  130. package/src/lib/locale/fr-validation-messages.ts +0 -58
  131. package/src/lib/locale/it-validation-messages.ts +0 -58
  132. package/src/lib/locale/pt-validation-messages.ts +0 -58
  133. package/src/lib/locale/zh-validation-messages.ts +0 -58
  134. package/src/lib/locale-dates/en-US.ts +0 -5
  135. package/src/lib/shared/convert-schema-to-draft6.function.ts +0 -321
  136. package/src/lib/shared/form-group.functions.ts +0 -522
  137. package/src/lib/shared/format-regex.constants.ts +0 -73
  138. package/src/lib/shared/index.ts +0 -40
  139. package/src/lib/shared/json-schema.functions.ts +0 -788
  140. package/src/lib/shared/json.validators.ts +0 -878
  141. package/src/lib/shared/jsonpointer.functions.ts +0 -1012
  142. package/src/lib/shared/jspointer.functions.json.spec.ts +0 -103
  143. package/src/lib/shared/layout.functions.ts +0 -1233
  144. package/src/lib/shared/merge-schemas.function.ts +0 -329
  145. package/src/lib/shared/utility.functions.ts +0 -373
  146. package/src/lib/shared/validator.functions.spec.ts +0 -55
  147. package/src/lib/widget-library/add-reference.component.ts +0 -59
  148. package/src/lib/widget-library/button.component.ts +0 -54
  149. package/src/lib/widget-library/checkbox.component.ts +0 -74
  150. package/src/lib/widget-library/checkboxes.component.ts +0 -104
  151. package/src/lib/widget-library/file.component.ts +0 -36
  152. package/src/lib/widget-library/hidden.component.ts +0 -39
  153. package/src/lib/widget-library/input.component.ts +0 -76
  154. package/src/lib/widget-library/message.component.ts +0 -29
  155. package/src/lib/widget-library/none.component.ts +0 -12
  156. package/src/lib/widget-library/number.component.ts +0 -79
  157. package/src/lib/widget-library/one-of.component.ts +0 -36
  158. package/src/lib/widget-library/orderable.directive.ts +0 -130
  159. package/src/lib/widget-library/radios.component.ts +0 -101
  160. package/src/lib/widget-library/root.component.ts +0 -78
  161. package/src/lib/widget-library/section.component.ts +0 -133
  162. package/src/lib/widget-library/select-framework.component.ts +0 -50
  163. package/src/lib/widget-library/select-widget.component.ts +0 -46
  164. package/src/lib/widget-library/select.component.ts +0 -96
  165. package/src/lib/widget-library/submit.component.ts +0 -68
  166. package/src/lib/widget-library/tab.component.ts +0 -29
  167. package/src/lib/widget-library/tabs.component.ts +0 -83
  168. package/src/lib/widget-library/template.component.ts +0 -52
  169. package/src/lib/widget-library/textarea.component.ts +0 -68
  170. package/src/lib/widget-library/widget-library.module.ts +0 -13
  171. package/src/lib/widget-library/widget-library.service.ts +0 -234
  172. package/src/test.ts +0 -18
  173. package/tsconfig.lib.json +0 -25
  174. package/tsconfig.lib.prod.json +0 -9
  175. package/tsconfig.spec.json +0 -17
  176. package/tslint.json +0 -11
  177. /package/{src/lib/locale/index.ts → lib/locale/index.d.ts} +0 -0
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MessageComponent implements OnInit {
5
+ private jsf;
6
+ options: any;
7
+ message: string;
8
+ layoutNode: any;
9
+ layoutIndex: number[];
10
+ dataIndex: number[];
11
+ constructor(jsf: JsonSchemaFormService);
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "message-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NoneComponent {
3
+ layoutNode: any;
4
+ layoutIndex: number[];
5
+ dataIndex: number[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoneComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<NoneComponent, "none-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,25 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { JsonSchemaFormService } from '../json-schema-form.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NumberComponent implements OnInit {
6
+ private jsf;
7
+ formControl: AbstractControl;
8
+ controlName: string;
9
+ controlValue: any;
10
+ controlDisabled: boolean;
11
+ boundControl: boolean;
12
+ options: any;
13
+ allowNegative: boolean;
14
+ allowDecimal: boolean;
15
+ allowExponents: boolean;
16
+ lastValidNumber: string;
17
+ layoutNode: any;
18
+ layoutIndex: number[];
19
+ dataIndex: number[];
20
+ constructor(jsf: JsonSchemaFormService);
21
+ ngOnInit(): void;
22
+ updateValue(event: any): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberComponent, "number-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
25
+ }
@@ -0,0 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { JsonSchemaFormService } from '../json-schema-form.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OneOfComponent implements OnInit {
6
+ private jsf;
7
+ formControl: AbstractControl;
8
+ controlName: string;
9
+ controlValue: any;
10
+ controlDisabled: boolean;
11
+ boundControl: boolean;
12
+ options: any;
13
+ layoutNode: any;
14
+ layoutIndex: number[];
15
+ dataIndex: number[];
16
+ constructor(jsf: JsonSchemaFormService);
17
+ ngOnInit(): void;
18
+ updateValue(event: any): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<OneOfComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<OneOfComponent, "one-of-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
@@ -0,0 +1,41 @@
1
+ import { ElementRef, NgZone, OnInit } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * OrderableDirective
6
+ *
7
+ * Enables array elements to be reordered by dragging and dropping.
8
+ *
9
+ * Only works for arrays that have at least two elements.
10
+ *
11
+ * Also detects arrays-within-arrays, and correctly moves either
12
+ * the child array element or the parent array element,
13
+ * depending on the drop targert.
14
+ *
15
+ * Listeners for movable element being dragged:
16
+ * - dragstart: add 'dragging' class to element, set effectAllowed = 'move'
17
+ * - dragover: set dropEffect = 'move'
18
+ * - dragend: remove 'dragging' class from element
19
+ *
20
+ * Listeners for stationary items being dragged over:
21
+ * - dragenter: add 'drag-target-...' classes to element
22
+ * - dragleave: remove 'drag-target-...' classes from element
23
+ * - drop: remove 'drag-target-...' classes from element, move dropped array item
24
+ */
25
+ export declare class OrderableDirective implements OnInit {
26
+ private elementRef;
27
+ private jsf;
28
+ private ngZone;
29
+ arrayLayoutIndex: string;
30
+ element: any;
31
+ overParentElement: boolean;
32
+ overChildElement: boolean;
33
+ orderable: boolean;
34
+ layoutNode: any;
35
+ layoutIndex: number[];
36
+ dataIndex: number[];
37
+ constructor(elementRef: ElementRef, jsf: JsonSchemaFormService, ngZone: NgZone);
38
+ ngOnInit(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderableDirective, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OrderableDirective, "[orderable]", never, { "orderable": { "alias": "orderable"; "required": false; }; "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
41
+ }
@@ -0,0 +1,23 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { OnInit } from '@angular/core';
3
+ import { JsonSchemaFormService } from '../json-schema-form.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RadiosComponent implements OnInit {
6
+ private jsf;
7
+ formControl: AbstractControl;
8
+ controlName: string;
9
+ controlValue: any;
10
+ controlDisabled: boolean;
11
+ boundControl: boolean;
12
+ options: any;
13
+ layoutOrientation: string;
14
+ radiosList: any[];
15
+ layoutNode: any;
16
+ layoutIndex: number[];
17
+ dataIndex: number[];
18
+ constructor(jsf: JsonSchemaFormService);
19
+ ngOnInit(): void;
20
+ updateValue(event: any): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadiosComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadiosComponent, "radios-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
23
+ }
@@ -0,0 +1,17 @@
1
+ import { JsonSchemaFormService } from '../json-schema-form.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RootComponent {
4
+ private jsf;
5
+ options: any;
6
+ dataIndex: number[];
7
+ layoutIndex: number[];
8
+ layout: any[];
9
+ isOrderable: boolean;
10
+ isFlexItem: boolean;
11
+ constructor(jsf: JsonSchemaFormService);
12
+ isDraggable(node: any): boolean;
13
+ getFlexAttribute(node: any, attribute: string): any;
14
+ showWidget(layoutNode: any): boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<RootComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<RootComponent, "root-widget", never, { "dataIndex": { "alias": "dataIndex"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "isOrderable": { "alias": "isOrderable"; "required": false; }; "isFlexItem": { "alias": "isFlexItem"; "required": false; }; }, {}, never, never, false, never>;
17
+ }
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SectionComponent implements OnInit {
5
+ private jsf;
6
+ options: any;
7
+ expanded: boolean;
8
+ containerType: string;
9
+ layoutNode: any;
10
+ layoutIndex: number[];
11
+ dataIndex: number[];
12
+ constructor(jsf: JsonSchemaFormService);
13
+ get sectionTitle(): string;
14
+ ngOnInit(): void;
15
+ toggleExpanded(): void;
16
+ getFlexAttribute(attribute: string): any;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "section-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
19
+ }
@@ -0,0 +1,18 @@
1
+ import { ComponentFactoryResolver, ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectFrameworkComponent implements OnChanges, OnInit {
5
+ private componentFactory;
6
+ private jsf;
7
+ newComponent: ComponentRef<any>;
8
+ layoutNode: any;
9
+ layoutIndex: number[];
10
+ dataIndex: number[];
11
+ widgetContainer: ViewContainerRef;
12
+ constructor(componentFactory: ComponentFactoryResolver, jsf: JsonSchemaFormService);
13
+ ngOnInit(): void;
14
+ ngOnChanges(): void;
15
+ updateComponent(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectFrameworkComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectFrameworkComponent, "select-framework-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,18 @@
1
+ import { ComponentFactoryResolver, ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectWidgetComponent implements OnChanges, OnInit {
5
+ private componentFactory;
6
+ private jsf;
7
+ newComponent: ComponentRef<any>;
8
+ layoutNode: any;
9
+ layoutIndex: number[];
10
+ dataIndex: number[];
11
+ widgetContainer: ViewContainerRef;
12
+ constructor(componentFactory: ComponentFactoryResolver, jsf: JsonSchemaFormService);
13
+ ngOnInit(): void;
14
+ ngOnChanges(): void;
15
+ updateComponent(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectWidgetComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectWidgetComponent, "select-widget-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,24 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { isArray } from '../shared';
3
+ import { OnInit } from '@angular/core';
4
+ import { JsonSchemaFormService } from '../json-schema-form.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SelectComponent implements OnInit {
7
+ private jsf;
8
+ formControl: AbstractControl;
9
+ controlName: string;
10
+ controlValue: any;
11
+ controlDisabled: boolean;
12
+ boundControl: boolean;
13
+ options: any;
14
+ selectList: any[];
15
+ isArray: typeof isArray;
16
+ layoutNode: any;
17
+ layoutIndex: number[];
18
+ dataIndex: number[];
19
+ constructor(jsf: JsonSchemaFormService);
20
+ ngOnInit(): void;
21
+ updateValue(event: any): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "select-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,24 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { Subscription } from 'rxjs';
4
+ import { JsonSchemaFormService } from '../json-schema-form.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SubmitComponent implements OnInit, OnDestroy {
7
+ private jsf;
8
+ formControl: AbstractControl;
9
+ controlName: string;
10
+ controlValue: any;
11
+ controlDisabled: boolean;
12
+ boundControl: boolean;
13
+ options: any;
14
+ layoutNode: any;
15
+ layoutIndex: number[];
16
+ dataIndex: number[];
17
+ isValidChangesSubs: Subscription;
18
+ constructor(jsf: JsonSchemaFormService);
19
+ ngOnDestroy(): void;
20
+ ngOnInit(): void;
21
+ updateValue(event: any): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubmitComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubmitComponent, "submit-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,14 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TabComponent implements OnInit {
5
+ private jsf;
6
+ options: any;
7
+ layoutNode: any;
8
+ layoutIndex: number[];
9
+ dataIndex: number[];
10
+ constructor(jsf: JsonSchemaFormService);
11
+ ngOnInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "tab-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,20 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TabsComponent implements OnInit {
5
+ private jsf;
6
+ options: any;
7
+ itemCount: number;
8
+ selectedItem: number;
9
+ showAddTab: boolean;
10
+ layoutNode: any;
11
+ layoutIndex: number[];
12
+ dataIndex: number[];
13
+ constructor(jsf: JsonSchemaFormService);
14
+ ngOnInit(): void;
15
+ select(index: any): void;
16
+ updateControl(): void;
17
+ setTabTitle(item: any, index: number): string;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "tabs-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
@@ -0,0 +1,18 @@
1
+ import { ComponentFactoryResolver, ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { JsonSchemaFormService } from '../json-schema-form.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TemplateComponent implements OnInit, OnChanges {
5
+ private componentFactory;
6
+ private jsf;
7
+ newComponent: ComponentRef<any>;
8
+ layoutNode: any;
9
+ layoutIndex: number[];
10
+ dataIndex: number[];
11
+ widgetContainer: ViewContainerRef;
12
+ constructor(componentFactory: ComponentFactoryResolver, jsf: JsonSchemaFormService);
13
+ ngOnInit(): void;
14
+ ngOnChanges(): void;
15
+ updateComponent(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "template-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,21 @@
1
+ import { AbstractControl } from '@angular/forms';
2
+ import { OnInit } from '@angular/core';
3
+ import { JsonSchemaFormService } from '../json-schema-form.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TextareaComponent implements OnInit {
6
+ private jsf;
7
+ formControl: AbstractControl;
8
+ controlName: string;
9
+ controlValue: any;
10
+ controlDisabled: boolean;
11
+ boundControl: boolean;
12
+ options: any;
13
+ layoutNode: any;
14
+ layoutIndex: number[];
15
+ dataIndex: number[];
16
+ constructor(jsf: JsonSchemaFormService);
17
+ ngOnInit(): void;
18
+ updateValue(event: any): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "textarea-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
@@ -0,0 +1,31 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./add-reference.component";
3
+ import * as i2 from "./one-of.component";
4
+ import * as i3 from "./button.component";
5
+ import * as i4 from "./checkbox.component";
6
+ import * as i5 from "./checkboxes.component";
7
+ import * as i6 from "./file.component";
8
+ import * as i7 from "./hidden.component";
9
+ import * as i8 from "./input.component";
10
+ import * as i9 from "./message.component";
11
+ import * as i10 from "./none.component";
12
+ import * as i11 from "./number.component";
13
+ import * as i12 from "./radios.component";
14
+ import * as i13 from "./root.component";
15
+ import * as i14 from "./section.component";
16
+ import * as i15 from "./select.component";
17
+ import * as i16 from "./select-framework.component";
18
+ import * as i17 from "./select-widget.component";
19
+ import * as i18 from "./submit.component";
20
+ import * as i19 from "./tab.component";
21
+ import * as i20 from "./tabs.component";
22
+ import * as i21 from "./template.component";
23
+ import * as i22 from "./textarea.component";
24
+ import * as i23 from "./orderable.directive";
25
+ import * as i24 from "@angular/common";
26
+ import * as i25 from "@angular/forms";
27
+ export declare class WidgetLibraryModule {
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetLibraryModule, never>;
29
+ 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.OrderableDirective], [typeof i24.CommonModule, typeof i25.FormsModule, typeof i25.ReactiveFormsModule], [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.OrderableDirective]>;
30
+ static ɵinj: i0.ɵɵInjectorDeclaration<WidgetLibraryModule>;
31
+ }
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class WidgetLibraryService {
3
+ defaultWidget: string;
4
+ widgetLibrary: any;
5
+ registeredWidgets: any;
6
+ frameworkWidgets: any;
7
+ activeWidgets: any;
8
+ constructor();
9
+ setActiveWidgets(): boolean;
10
+ setDefaultWidget(type: string): boolean;
11
+ hasWidget(type: string, widgetSet?: string): boolean;
12
+ hasDefaultWidget(type: string): boolean;
13
+ registerWidget(type: string, widget: any): boolean;
14
+ unRegisterWidget(type: string): boolean;
15
+ unRegisterAllWidgets(unRegisterFrameworkWidgets?: boolean): boolean;
16
+ registerFrameworkWidgets(widgets: any): boolean;
17
+ unRegisterFrameworkWidgets(): boolean;
18
+ getWidget(type?: string, widgetSet?: string): any;
19
+ getAllWidgets(): any;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetLibraryService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<WidgetLibraryService>;
22
+ }
package/package.json CHANGED
@@ -1,54 +1,65 @@
1
- {
2
- "name": "@ng-formworks/core",
3
- "version": "16.2.7",
4
- "description": "Angular ng-formworks - JSON Schema Form builder core",
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
- "ajsf",
25
- "ng-formworks",
26
- "ng formworks",
27
- "formworks",
28
- "angular json schema form"
29
- ],
30
- "license": "MIT",
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/zahmo/ng-formworks"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/zahmo/ng-formworks/issues"
37
- },
38
- "private": false,
39
- "dependencies": {
40
- "lodash-es": "~4.17.21",
41
- "ajv": "^8.12.0",
42
- "tslib": "^2.0.0"
43
- },
44
- "peerDependencies": {
45
- "@angular/common": ">=16.0.0",
46
- "@angular/core": ">=16.0.0",
47
- "@angular/forms": ">=16.0.0",
48
- "@angular/platform-browser": ">=16.0.0",
49
- "rxjs": "^7.0.0"
50
- },
51
- "devDependencies": {
52
- "@types/lodash-es": "^4.17.6"
53
- }
1
+ {
2
+ "name": "@ng-formworks/core",
3
+ "version": "16.3.0",
4
+ "description": "Angular ng-formworks - JSON Schema Form builder core",
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
+ "ajsf",
25
+ "ng-formworks",
26
+ "ng formworks",
27
+ "formworks",
28
+ "angular json schema form"
29
+ ],
30
+ "license": "MIT",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/zahmo/ng-formworks"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/zahmo/ng-formworks/issues"
37
+ },
38
+ "private": false,
39
+ "dependencies": {
40
+ "lodash-es": "~4.17.21",
41
+ "ajv": "^8.12.0",
42
+ "tslib": "^2.0.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@angular/common": ">=16.0.0",
46
+ "@angular/core": ">=16.0.0",
47
+ "@angular/forms": ">=16.0.0",
48
+ "@angular/platform-browser": ">=16.0.0",
49
+ "rxjs": "^7.0.0"
50
+ },
51
+ "module": "fesm2022/ng-formworks-core.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-core.mjs",
60
+ "esm": "./esm2022/ng-formworks-core.mjs",
61
+ "default": "./fesm2022/ng-formworks-core.mjs"
62
+ }
63
+ },
64
+ "sideEffects": false
54
65
  }
@@ -1,21 +1,9 @@
1
- /*
2
- * Public API Surface of json-schema-form
3
- */
4
-
5
1
  export { JsonSchemaFormModule } from './lib/json-schema-form.module';
6
2
  export { TitleMapItem, ErrorMessages, JsonSchemaFormService } from './lib/json-schema-form.service';
7
3
  export { JsonSchemaFormComponent } from './lib/json-schema-form.component';
8
4
  export { Framework } from './lib/framework-library/framework';
9
5
  export { FrameworkLibraryService } from './lib/framework-library/framework-library.service';
10
- export {
11
- deValidationMessages,
12
- enValidationMessages,
13
- esValidationMessages,
14
- frValidationMessages,
15
- itValidationMessages,
16
- ptValidationMessages,
17
- zhValidationMessages
18
- } from './lib/locale';
6
+ export { deValidationMessages, enValidationMessages, esValidationMessages, frValidationMessages, itValidationMessages, ptValidationMessages, zhValidationMessages } from './lib/locale';
19
7
  export * from './lib/widget-library';
20
8
  export * from './lib/widget-library/widget-library.module';
21
9
  export * from './lib/shared';
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-core'),
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,11 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/@ng-formworks/core",
4
- "lib": {
5
- "entryFile": "src/public_api.ts"
6
- },
7
- "allowedNonPeerDependencies": [
8
- "lodash-es",
9
- "ajv"
10
- ]
11
- }