@ng-formworks/core 20.6.7 → 20.6.9
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/fesm2022/ng-formworks-core.mjs +365 -169
- package/fesm2022/ng-formworks-core.mjs.map +1 -1
- package/index.d.ts +30 -9
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import Ajv2019 from 'ajv/dist/2019';
|
|
|
9
9
|
import jsonDraft6 from 'ajv/lib/refs/json-schema-draft-06.json';
|
|
10
10
|
import jsonDraft7 from 'ajv/lib/refs/json-schema-draft-07.json';
|
|
11
11
|
import cloneDeep from 'lodash/cloneDeep';
|
|
12
|
+
import _isArray from 'lodash/isArray';
|
|
12
13
|
import { from, Observable, forkJoin, Subject, BehaviorSubject, lastValueFrom } from 'rxjs';
|
|
13
14
|
import { some, isNil, isEmpty as isEmpty$1, pick, isObject as isObject$1, isEqual as isEqual$2, memoize } from 'lodash';
|
|
14
15
|
import isEqual$1 from 'lodash/isEqual';
|
|
@@ -16,7 +17,6 @@ import { map, takeUntil } from 'rxjs/operators';
|
|
|
16
17
|
import omit from 'lodash/omit';
|
|
17
18
|
import filter from 'lodash/filter';
|
|
18
19
|
import map$1 from 'lodash/map';
|
|
19
|
-
import _isArray from 'lodash/isArray';
|
|
20
20
|
import _isPlainObject from 'lodash/isPlainObject';
|
|
21
21
|
import uniqueId from 'lodash/uniqueId';
|
|
22
22
|
import * as i2$1 from '@angular/cdk/drag-drop';
|
|
@@ -29,10 +29,10 @@ class Framework {
|
|
|
29
29
|
this.stylesheets = [];
|
|
30
30
|
this.scripts = [];
|
|
31
31
|
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
33
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: Framework, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
33
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: Framework }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: Framework, decorators: [{
|
|
36
36
|
type: Injectable
|
|
37
37
|
}] });
|
|
38
38
|
|
|
@@ -1457,6 +1457,49 @@ function hasNonNullValue(obj) {
|
|
|
1457
1457
|
return !isNil(value);
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Recursively compares array sizes of nested arrays
|
|
1462
|
+
*
|
|
1463
|
+
* @param obj1 - The object to check.
|
|
1464
|
+
* @param obj2 - The object to check.
|
|
1465
|
+
* @returns `false` if at least one nested array size mismatches`.
|
|
1466
|
+
*
|
|
1467
|
+
* @example
|
|
1468
|
+
* const obj1 = { a: ['a','aa'], b:{c:[1,11,11]} };
|
|
1469
|
+
* const obj2 = { a: ['ee','dd'], b:{c:[2]} };
|
|
1470
|
+
*
|
|
1471
|
+
* console.log(compareObjectArraySizes(obj1,obj1)); // Output: false
|
|
1472
|
+
* mismatch will be on path b/c
|
|
1473
|
+
*/
|
|
1474
|
+
function compareObjectArraySizes(obj1, obj2, comparePath = "") {
|
|
1475
|
+
if (isArray(obj1) && isArray(obj2)) {
|
|
1476
|
+
if (obj1.length != obj2.length) {
|
|
1477
|
+
console.log(`size mismatch at ${comparePath}`);
|
|
1478
|
+
return false; // immediately return false on mismatch
|
|
1479
|
+
}
|
|
1480
|
+
else {
|
|
1481
|
+
for (let ind = 0; ind < obj1.length; ind++) {
|
|
1482
|
+
const item1 = obj1[ind];
|
|
1483
|
+
const item2 = obj2[ind];
|
|
1484
|
+
const result = compareObjectArraySizes(item1, item2, `${comparePath}/${ind}`);
|
|
1485
|
+
if (result === false) {
|
|
1486
|
+
return false; // propagate false if mismatch is found
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
if (isObject(obj1) && !isArray(obj1)) {
|
|
1492
|
+
for (let key in obj1) {
|
|
1493
|
+
if (obj2.hasOwnProperty(key)) {
|
|
1494
|
+
const result = compareObjectArraySizes(obj1[key], obj2[key], `${comparePath}/${key}`);
|
|
1495
|
+
if (result === false) {
|
|
1496
|
+
return false; // propagate false if mismatch is found
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
return true; // all checks passed
|
|
1502
|
+
}
|
|
1460
1503
|
|
|
1461
1504
|
class JsonPointer {
|
|
1462
1505
|
/**
|
|
@@ -2473,10 +2516,10 @@ class JsonPointer {
|
|
|
2473
2516
|
}
|
|
2474
2517
|
console.error('parseObjectPath error: Input object path must be a string.');
|
|
2475
2518
|
}
|
|
2476
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2477
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2519
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonPointer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2520
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonPointer }); }
|
|
2478
2521
|
}
|
|
2479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonPointer, decorators: [{
|
|
2480
2523
|
type: Injectable
|
|
2481
2524
|
}] });
|
|
2482
2525
|
|
|
@@ -4643,14 +4686,7 @@ function convertJSONSchemaIfToCondition(schema, layoutNode, negate = false) {
|
|
|
4643
4686
|
.join("")
|
|
4644
4687
|
: "";
|
|
4645
4688
|
let modelPath = parentPath ? `model.${parentPath}` : "model";
|
|
4646
|
-
let checkPath = modelPath.split('.')
|
|
4647
|
-
.map((_, index, array) => {
|
|
4648
|
-
return array.slice(0, index + 1).join('.'); // Build each part of the path dynamically
|
|
4649
|
-
}).join(' && '); // Join the parts with '&&'
|
|
4650
|
-
// .reduce((accumulator, currentPart, index) => {
|
|
4651
|
-
// const currentExpression = index === 0 ? currentPart : `${accumulator}.${currentPart}`;
|
|
4652
|
-
// return index === 0 ? currentExpression : `${accumulator} && ${currentExpression}`;
|
|
4653
|
-
// }, '');
|
|
4689
|
+
let checkPath = modelPath.replace(/\[/g, ".[").split('.').join("?.");
|
|
4654
4690
|
if (schema.if) {
|
|
4655
4691
|
Object.keys(schema.if.properties).forEach((ifProp, ind) => {
|
|
4656
4692
|
let amper = ind > 0 ? "&" : "";
|
|
@@ -6201,7 +6237,7 @@ function buildLayout_original(jsf, widgetLibrary) {
|
|
|
6201
6237
|
return formLayout;
|
|
6202
6238
|
}
|
|
6203
6239
|
//TODO-review:this implements a quick 'post' fix rather than an
|
|
6204
|
-
//
|
|
6240
|
+
//integrated ideal fix
|
|
6205
6241
|
function buildLayout(jsf, widgetLibrary) {
|
|
6206
6242
|
let layout = buildLayout_original(jsf, widgetLibrary);
|
|
6207
6243
|
if (jsf.formValues) {
|
|
@@ -6317,11 +6353,21 @@ function fixNestedArrayLayout(options) {
|
|
|
6317
6353
|
: cloneDeep(builtLayout.items[0]); //copy first
|
|
6318
6354
|
newItem._id = uniqueId("new_");
|
|
6319
6355
|
builtLayout.items.unshift(newItem);
|
|
6356
|
+
// builtLayout.items=[newItem, ...builtLayout.items];
|
|
6320
6357
|
}
|
|
6321
|
-
|
|
6322
|
-
|
|
6358
|
+
}
|
|
6359
|
+
else if (numActualItems > numDataItems) {
|
|
6360
|
+
let numItemsToRemove = numActualItems - numDataItems;
|
|
6361
|
+
for (let i = 0; i < numItemsToRemove; i++) {
|
|
6362
|
+
builtLayout.items.pop();
|
|
6363
|
+
//builtLayout.items=builtLayout.items.slice(0, -1);
|
|
6364
|
+
//builtLayout.items.slice(0, -1);
|
|
6323
6365
|
}
|
|
6324
6366
|
}
|
|
6367
|
+
if (builtLayout.options.listItems) {
|
|
6368
|
+
builtLayout.options.listItems = numDataItems;
|
|
6369
|
+
}
|
|
6370
|
+
//builtLayout.items=[...builtLayout.items];
|
|
6325
6371
|
indices[builtLayout.dataPointer] = indices[builtLayout.dataPointer] || -1;
|
|
6326
6372
|
indexPos++;
|
|
6327
6373
|
builtLayout.items.forEach((item, index) => {
|
|
@@ -7693,7 +7739,7 @@ class JsonSchemaFormService {
|
|
|
7693
7739
|
// Set values of any related controls in copyValueTo array
|
|
7694
7740
|
if (isArray(ctx.options.copyValueTo)) {
|
|
7695
7741
|
for (const item of ctx.options.copyValueTo) {
|
|
7696
|
-
const targetControl = getControl(this.formGroup, item);
|
|
7742
|
+
const targetControl = this.formGroup && getControl(this.formGroup, item);
|
|
7697
7743
|
if (isObject(targetControl) &&
|
|
7698
7744
|
typeof targetControl.setValue === 'function') {
|
|
7699
7745
|
targetControl.setValue(value);
|
|
@@ -7768,7 +7814,8 @@ class JsonSchemaFormService {
|
|
|
7768
7814
|
getFormControlValue(ctx) {
|
|
7769
7815
|
if (!ctx || !ctx.layoutNode ||
|
|
7770
7816
|
!isDefined(ctx.layoutNode().dataPointer) ||
|
|
7771
|
-
ctx.layoutNode().type === '$ref'
|
|
7817
|
+
ctx.layoutNode().type === '$ref'
|
|
7818
|
+
|| this.formGroup == null) {
|
|
7772
7819
|
return null;
|
|
7773
7820
|
}
|
|
7774
7821
|
const schemaPointer = ctx.layoutNode()?.isITEItem ? ctx.layoutNode()?.schemaPointer : null;
|
|
@@ -7778,7 +7825,7 @@ class JsonSchemaFormService {
|
|
|
7778
7825
|
return control ? control.value : null;
|
|
7779
7826
|
}
|
|
7780
7827
|
getFormControlGroup(ctx) {
|
|
7781
|
-
if (!ctx || !ctx.layoutNode || !isDefined(ctx.layoutNode().dataPointer)) {
|
|
7828
|
+
if (!ctx || !ctx.layoutNode || !isDefined(ctx.layoutNode().dataPointer) || this.formGroup == null) {
|
|
7782
7829
|
return null;
|
|
7783
7830
|
}
|
|
7784
7831
|
const schemaPointer = ctx.layoutNode()?.isITEItem ? ctx.layoutNode()?.schemaPointer : null;
|
|
@@ -7906,10 +7953,66 @@ class JsonSchemaFormService {
|
|
|
7906
7953
|
JsonPointer.remove(this.layout, this.getLayoutPointer(ctx));
|
|
7907
7954
|
return true;
|
|
7908
7955
|
}
|
|
7909
|
-
|
|
7910
|
-
|
|
7956
|
+
//TODO fix-doesnt seem to work for nested array
|
|
7957
|
+
adjustLayout(layout, newData, currLayoutIndex = [0], currDataIndex = []) {
|
|
7958
|
+
const createWidgetCtx = (layoutNode, layoutIndex, dataIndex) => {
|
|
7959
|
+
return {
|
|
7960
|
+
layoutNode: () => { return layoutNode; },
|
|
7961
|
+
layoutIndex: () => { return layoutIndex; },
|
|
7962
|
+
dataIndex: () => { return dataIndex; },
|
|
7963
|
+
};
|
|
7964
|
+
};
|
|
7965
|
+
// console.log(`adjustLayout currLayoutIndex:${currLayoutIndex}`);
|
|
7966
|
+
if (layout.items && _isArray(newData)) {
|
|
7967
|
+
let ctx = createWidgetCtx({
|
|
7968
|
+
...layout,
|
|
7969
|
+
$ref: layout.$ref || layout.items[0]?.dataPointer,
|
|
7970
|
+
dataPointer: layout.items[0]?.dataPointer,
|
|
7971
|
+
arrayItem: true,
|
|
7972
|
+
arrayItemType: "list"
|
|
7973
|
+
}, [...currLayoutIndex.slice(0, currLayoutIndex.length - 1), layout.items.length - 1], [...currDataIndex.slice(0, currDataIndex.length - 1), layout.items.length - 1]);
|
|
7974
|
+
const lengthDifference = newData.length - layout.items.filter(litem => {
|
|
7975
|
+
return litem?.type != "$ref";
|
|
7976
|
+
}).length;
|
|
7977
|
+
if (lengthDifference > 0) {
|
|
7978
|
+
// Add missing controls if newData has more items
|
|
7979
|
+
for (let i = 0; i < lengthDifference; i++) {
|
|
7980
|
+
this.addItem(ctx);
|
|
7981
|
+
}
|
|
7982
|
+
}
|
|
7983
|
+
else if (lengthDifference < 0) {
|
|
7984
|
+
let numToRemove = layout.items.filter(litem => {
|
|
7985
|
+
return litem?.type != "$ref";
|
|
7986
|
+
})
|
|
7987
|
+
.length - newData.length;
|
|
7988
|
+
// Remove extra controls if newData has fewer items
|
|
7989
|
+
for (let i = 0; i < numToRemove; i++) {
|
|
7990
|
+
let oldDataIndex = ctx.dataIndex();
|
|
7991
|
+
let lastDataIndex = oldDataIndex[oldDataIndex.length - 1];
|
|
7992
|
+
let updatedLayoutIndex = [...currLayoutIndex.slice(0, currLayoutIndex.length - 1), 0];
|
|
7993
|
+
let updatedDataIndex = [...oldDataIndex.slice(0, oldDataIndex.length - 1), 0];
|
|
7994
|
+
ctx = createWidgetCtx(ctx.layoutNode(), updatedLayoutIndex, updatedDataIndex);
|
|
7995
|
+
let removed = this.removeItem(ctx);
|
|
7996
|
+
// if(removed){
|
|
7997
|
+
//}
|
|
7998
|
+
}
|
|
7999
|
+
}
|
|
8000
|
+
return;
|
|
8001
|
+
}
|
|
8002
|
+
if (_isArray(layout)) {
|
|
8003
|
+
layout.forEach((layoutNode, ind) => {
|
|
8004
|
+
//if(layoutNode.items){
|
|
8005
|
+
let layoutMappedData = layoutNode.dataPointer ? JsonPointer.get(newData, layoutNode.dataPointer)
|
|
8006
|
+
: undefined;
|
|
8007
|
+
this.adjustLayout(layoutNode, layoutMappedData, [...currLayoutIndex, ind], [...currDataIndex, ind]);
|
|
8008
|
+
///}
|
|
8009
|
+
});
|
|
8010
|
+
}
|
|
8011
|
+
}
|
|
8012
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8013
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormService }); }
|
|
7911
8014
|
}
|
|
7912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormService, decorators: [{
|
|
7913
8016
|
type: Injectable
|
|
7914
8017
|
}], ctorParameters: () => [] });
|
|
7915
8018
|
|
|
@@ -7940,10 +8043,10 @@ class SelectWidgetComponent {
|
|
|
7940
8043
|
}
|
|
7941
8044
|
}
|
|
7942
8045
|
}
|
|
7943
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7944
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
8046
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8047
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.13", type: SelectWidgetComponent, isStandalone: false, selector: "select-widget-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "widgetContainer", first: true, predicate: ["widgetContainer"], descendants: true, read: ViewContainerRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `<div #widgetContainer></div>`, isInline: true }); }
|
|
7945
8048
|
}
|
|
7946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectWidgetComponent, decorators: [{
|
|
7947
8050
|
type: Component,
|
|
7948
8051
|
args: [{
|
|
7949
8052
|
// tslint:disable-next-line:component-selector
|
|
@@ -7951,7 +8054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
7951
8054
|
template: `<div #widgetContainer></div>`,
|
|
7952
8055
|
standalone: false
|
|
7953
8056
|
}]
|
|
7954
|
-
}] });
|
|
8057
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }], widgetContainer: [{ type: i0.ViewChild, args: ['widgetContainer', { ...{ read: ViewContainerRef }, isSignal: true }] }] } });
|
|
7955
8058
|
|
|
7956
8059
|
class NoFrameworkComponent {
|
|
7957
8060
|
constructor() {
|
|
@@ -7959,13 +8062,13 @@ class NoFrameworkComponent {
|
|
|
7959
8062
|
this.layoutIndex = input(undefined, ...(ngDevMode ? [{ debugName: "layoutIndex" }] : []));
|
|
7960
8063
|
this.dataIndex = input(undefined, ...(ngDevMode ? [{ debugName: "dataIndex" }] : []));
|
|
7961
8064
|
}
|
|
7962
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7963
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFrameworkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8066
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: NoFrameworkComponent, isStandalone: false, selector: "no-framework", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<select-widget-widget [dataIndex]=\"dataIndex()\" [layoutIndex]=\"layoutIndex()\" [layoutNode]=\"layoutNode()\">\r\n</select-widget-widget>", dependencies: [{ kind: "component", type: SelectWidgetComponent, selector: "select-widget-widget", inputs: ["layoutNode", "layoutIndex", "dataIndex"] }] }); }
|
|
7964
8067
|
}
|
|
7965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFrameworkComponent, decorators: [{
|
|
7966
8069
|
type: Component,
|
|
7967
8070
|
args: [{ selector: 'no-framework', standalone: false, template: "<select-widget-widget [dataIndex]=\"dataIndex()\" [layoutIndex]=\"layoutIndex()\" [layoutNode]=\"layoutNode()\">\r\n</select-widget-widget>" }]
|
|
7968
|
-
}] });
|
|
8071
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
7969
8072
|
|
|
7970
8073
|
// No framework - plain HTML controls (styles from form layout only)
|
|
7971
8074
|
class NoFramework extends Framework {
|
|
@@ -7975,10 +8078,10 @@ class NoFramework extends Framework {
|
|
|
7975
8078
|
this.text = 'None (plain HTML)';
|
|
7976
8079
|
this.framework = NoFrameworkComponent;
|
|
7977
8080
|
}
|
|
7978
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7979
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
8081
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFramework, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8082
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFramework }); }
|
|
7980
8083
|
}
|
|
7981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFramework, decorators: [{
|
|
7982
8085
|
type: Injectable
|
|
7983
8086
|
}] });
|
|
7984
8087
|
|
|
@@ -8000,10 +8103,10 @@ class ElementAttributeDirective {
|
|
|
8000
8103
|
}
|
|
8001
8104
|
}
|
|
8002
8105
|
}
|
|
8003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8004
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
8106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: ElementAttributeDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8107
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.13", type: ElementAttributeDirective, isStandalone: false, selector: "[attributes]", inputs: { attributes: "attributes" }, usesOnChanges: true, ngImport: i0 }); }
|
|
8005
8108
|
}
|
|
8006
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: ElementAttributeDirective, decorators: [{
|
|
8007
8110
|
type: Directive,
|
|
8008
8111
|
args: [{
|
|
8009
8112
|
selector: '[attributes]',
|
|
@@ -8040,10 +8143,10 @@ class StopPropagationDirective {
|
|
|
8040
8143
|
// Call each stored unsubscribe function to clean up listeners
|
|
8041
8144
|
this.unsubscribeFunctions.forEach(unsub => unsub());
|
|
8042
8145
|
}
|
|
8043
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8044
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.
|
|
8146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8147
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.13", type: StopPropagationDirective, isStandalone: false, selector: "[appStopPropagation]", inputs: { events: ["appStopPropagation", "events"] }, ngImport: i0 }); }
|
|
8045
8148
|
}
|
|
8046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
8047
8150
|
type: Directive,
|
|
8048
8151
|
args: [{
|
|
8049
8152
|
selector: '[appStopPropagation]', standalone: false
|
|
@@ -8077,11 +8180,11 @@ class AddReferenceComponent {
|
|
|
8077
8180
|
layoutIndex: this.layoutIndex().slice(0, -1),
|
|
8078
8181
|
layoutNode: this.jsf.getParentNode(this)
|
|
8079
8182
|
};
|
|
8080
|
-
return parent.layoutNode.add ||
|
|
8081
|
-
this.jsf.setArrayItemTitle(parent, this.layoutNode(), this.itemCount);
|
|
8183
|
+
return parent.layoutNode && (parent.layoutNode.add ||
|
|
8184
|
+
this.jsf.setArrayItemTitle(parent, this.layoutNode(), this.itemCount));
|
|
8082
8185
|
}
|
|
8083
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8084
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: AddReferenceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8187
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: AddReferenceComponent, isStandalone: false, selector: "add-reference-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8085
8188
|
<section [class]="options?.htmlClass || ''" align="end">
|
|
8086
8189
|
<button *ngIf="showAddButton"
|
|
8087
8190
|
[class]="options?.fieldHtmlClass || ''"
|
|
@@ -8095,7 +8198,7 @@ class AddReferenceComponent {
|
|
|
8095
8198
|
</button>
|
|
8096
8199
|
</section>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: StopPropagationDirective, selector: "[appStopPropagation]", inputs: ["appStopPropagation"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
8097
8200
|
}
|
|
8098
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: AddReferenceComponent, decorators: [{
|
|
8099
8202
|
type: Component,
|
|
8100
8203
|
args: [{
|
|
8101
8204
|
// tslint:disable-next-line:component-selector
|
|
@@ -8116,7 +8219,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8116
8219
|
changeDetection: ChangeDetectionStrategy.Default,
|
|
8117
8220
|
standalone: false
|
|
8118
8221
|
}]
|
|
8119
|
-
}] });
|
|
8222
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8120
8223
|
|
|
8121
8224
|
class ButtonComponent {
|
|
8122
8225
|
constructor() {
|
|
@@ -8142,8 +8245,8 @@ class ButtonComponent {
|
|
|
8142
8245
|
ngOnDestroy() {
|
|
8143
8246
|
this.jsf.updateValue(this, null);
|
|
8144
8247
|
}
|
|
8145
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8146
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8249
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: ButtonComponent, isStandalone: false, selector: "button-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8147
8250
|
<div
|
|
8148
8251
|
[class]="options?.htmlClass || ''">
|
|
8149
8252
|
<button
|
|
@@ -8163,7 +8266,7 @@ class ButtonComponent {
|
|
|
8163
8266
|
</button>
|
|
8164
8267
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: StopPropagationDirective, selector: "[appStopPropagation]", inputs: ["appStopPropagation"] }] }); }
|
|
8165
8268
|
}
|
|
8166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
8167
8270
|
type: Component,
|
|
8168
8271
|
args: [{
|
|
8169
8272
|
// tslint:disable-next-line:component-selector
|
|
@@ -8189,7 +8292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8189
8292
|
</div>`,
|
|
8190
8293
|
standalone: false
|
|
8191
8294
|
}]
|
|
8192
|
-
}] });
|
|
8295
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8193
8296
|
|
|
8194
8297
|
///NB issue caused by sortablejs when it its destroyed
|
|
8195
8298
|
//this mainly affects checkboxes coupled with conditions
|
|
@@ -8225,8 +8328,8 @@ class CheckboxComponent {
|
|
|
8225
8328
|
ngOnDestroy() {
|
|
8226
8329
|
this.jsf.updateValue(this, null);
|
|
8227
8330
|
}
|
|
8228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8229
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: CheckboxComponent, isStandalone: false, selector: "checkbox-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8230
8333
|
<label
|
|
8231
8334
|
[attr.for]="'control' + layoutNode()?._id"
|
|
8232
8335
|
[class]="options?.itemLabelHtmlClass || ''">
|
|
@@ -8258,7 +8361,7 @@ class CheckboxComponent {
|
|
|
8258
8361
|
[innerHTML]="options?.title"></span>
|
|
8259
8362
|
</label>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
8260
8363
|
}
|
|
8261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
8262
8365
|
type: Component,
|
|
8263
8366
|
args: [{
|
|
8264
8367
|
// tslint:disable-next-line:component-selector
|
|
@@ -8296,7 +8399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8296
8399
|
</label>`,
|
|
8297
8400
|
standalone: false
|
|
8298
8401
|
}]
|
|
8299
|
-
}] });
|
|
8402
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8300
8403
|
|
|
8301
8404
|
class CheckboxesComponent {
|
|
8302
8405
|
constructor() {
|
|
@@ -8337,8 +8440,8 @@ class CheckboxesComponent {
|
|
|
8337
8440
|
this.formControl.reset(nullVal);
|
|
8338
8441
|
this.controlValue = null;
|
|
8339
8442
|
}
|
|
8340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8341
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: CheckboxesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8444
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: CheckboxesComponent, isStandalone: false, selector: "checkboxes-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8342
8445
|
<label *ngIf="options?.title"
|
|
8343
8446
|
[class]="options?.labelHtmlClass || ''"
|
|
8344
8447
|
[style.display]="options?.notitle ? 'none' : ''"
|
|
@@ -8388,7 +8491,7 @@ class CheckboxesComponent {
|
|
|
8388
8491
|
</div>
|
|
8389
8492
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
8390
8493
|
}
|
|
8391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: CheckboxesComponent, decorators: [{
|
|
8392
8495
|
type: Component,
|
|
8393
8496
|
args: [{
|
|
8394
8497
|
// tslint:disable-next-line:component-selector
|
|
@@ -8444,7 +8547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8444
8547
|
</div>`,
|
|
8445
8548
|
standalone: false
|
|
8446
8549
|
}]
|
|
8447
|
-
}] });
|
|
8550
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8448
8551
|
|
|
8449
8552
|
// TODO: Add this control
|
|
8450
8553
|
class FileComponent {
|
|
@@ -8466,10 +8569,10 @@ class FileComponent {
|
|
|
8466
8569
|
ngOnDestroy() {
|
|
8467
8570
|
this.jsf.updateValue(this, null);
|
|
8468
8571
|
}
|
|
8469
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8470
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: FileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8573
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: FileComponent, isStandalone: false, selector: "file-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: ``, isInline: true }); }
|
|
8471
8574
|
}
|
|
8472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: FileComponent, decorators: [{
|
|
8473
8576
|
type: Component,
|
|
8474
8577
|
args: [{
|
|
8475
8578
|
// tslint:disable-next-line:component-selector
|
|
@@ -8477,7 +8580,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8477
8580
|
template: ``,
|
|
8478
8581
|
standalone: false
|
|
8479
8582
|
}]
|
|
8480
|
-
}] });
|
|
8583
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8481
8584
|
|
|
8482
8585
|
class HiddenComponent {
|
|
8483
8586
|
constructor() {
|
|
@@ -8494,8 +8597,8 @@ class HiddenComponent {
|
|
|
8494
8597
|
ngOnDestroy() {
|
|
8495
8598
|
this.jsf.updateValue(this, null);
|
|
8496
8599
|
}
|
|
8497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8498
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: HiddenComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8601
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: HiddenComponent, isStandalone: false, selector: "hidden-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8499
8602
|
<input *ngIf="boundControl"
|
|
8500
8603
|
[formControl]="formControl"
|
|
8501
8604
|
[id]="'control' + layoutNode()?._id"
|
|
@@ -8508,7 +8611,7 @@ class HiddenComponent {
|
|
|
8508
8611
|
type="hidden"
|
|
8509
8612
|
[value]="controlValue">`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
8510
8613
|
}
|
|
8511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: HiddenComponent, decorators: [{
|
|
8512
8615
|
type: Component,
|
|
8513
8616
|
args: [{
|
|
8514
8617
|
// tslint:disable-next-line:component-selector
|
|
@@ -8527,7 +8630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8527
8630
|
[value]="controlValue">`,
|
|
8528
8631
|
standalone: false
|
|
8529
8632
|
}]
|
|
8530
|
-
}] });
|
|
8633
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8531
8634
|
|
|
8532
8635
|
class InputComponent {
|
|
8533
8636
|
constructor() {
|
|
@@ -8551,10 +8654,15 @@ class InputComponent {
|
|
|
8551
8654
|
this.jsf.updateValue(this, event.target.value);
|
|
8552
8655
|
}
|
|
8553
8656
|
ngOnDestroy() {
|
|
8554
|
-
|
|
8657
|
+
//needed to be done in timeout for when dynamic/condition based
|
|
8658
|
+
//titles depend on the formControls value but the formControl
|
|
8659
|
+
//is also destroyed
|
|
8660
|
+
setTimeout(() => {
|
|
8661
|
+
this.jsf.updateValue(this, null);
|
|
8662
|
+
});
|
|
8555
8663
|
}
|
|
8556
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8557
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: InputComponent, isStandalone: false, selector: "input-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8558
8666
|
<div [class]="options?.htmlClass || ''" >
|
|
8559
8667
|
<label *ngIf="options?.title"
|
|
8560
8668
|
[attr.for]="'control' + layoutNode()?._id"
|
|
@@ -8603,7 +8711,7 @@ class InputComponent {
|
|
|
8603
8711
|
</datalist>
|
|
8604
8712
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: ElementAttributeDirective, selector: "[attributes]", inputs: ["attributes"] }, { kind: "directive", type: StopPropagationDirective, selector: "[appStopPropagation]", inputs: ["appStopPropagation"] }] }); }
|
|
8605
8713
|
}
|
|
8606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: InputComponent, decorators: [{
|
|
8607
8715
|
type: Component,
|
|
8608
8716
|
args: [{
|
|
8609
8717
|
// tslint:disable-next-line:component-selector
|
|
@@ -8658,7 +8766,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8658
8766
|
</div>`,
|
|
8659
8767
|
standalone: false
|
|
8660
8768
|
}]
|
|
8661
|
-
}] });
|
|
8769
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8770
|
+
|
|
8771
|
+
// item-title.component.ts
|
|
8772
|
+
class ItemTitleComponent {
|
|
8773
|
+
constructor(jsf) {
|
|
8774
|
+
this.jsf = jsf;
|
|
8775
|
+
}
|
|
8776
|
+
ngOnChanges(changes) {
|
|
8777
|
+
this.updateTitle();
|
|
8778
|
+
}
|
|
8779
|
+
ngOnInit() {
|
|
8780
|
+
// Calculate the title once on init, or subscribe to changes here
|
|
8781
|
+
this.updateTitle();
|
|
8782
|
+
this.dataChangesSubs = this.jsf.dataChanges.subscribe((val) => {
|
|
8783
|
+
this.updateTitle();
|
|
8784
|
+
});
|
|
8785
|
+
}
|
|
8786
|
+
updateTitle() {
|
|
8787
|
+
this.title = this.jsf.setArrayItemTitle(this.ctx, this.item, this.index);
|
|
8788
|
+
}
|
|
8789
|
+
ngOnDestroy() {
|
|
8790
|
+
this.dataChangesSubs?.unsubscribe();
|
|
8791
|
+
}
|
|
8792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: ItemTitleComponent, deps: [{ token: JsonSchemaFormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8793
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.13", type: ItemTitleComponent, isStandalone: false, selector: "item-title", inputs: { item: "item", index: "index", ctx: "ctx" }, usesOnChanges: true, ngImport: i0, template: `<div>{{ title }}</div>`, isInline: true }); }
|
|
8794
|
+
}
|
|
8795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: ItemTitleComponent, decorators: [{
|
|
8796
|
+
type: Component,
|
|
8797
|
+
args: [{
|
|
8798
|
+
selector: 'item-title',
|
|
8799
|
+
template: `<div>{{ title }}</div>`,
|
|
8800
|
+
standalone: false
|
|
8801
|
+
// Consider using ChangeDetectionStrategy.OnPush here for maximum efficiency
|
|
8802
|
+
}]
|
|
8803
|
+
}], ctorParameters: () => [{ type: JsonSchemaFormService }], propDecorators: { item: [{
|
|
8804
|
+
type: Input
|
|
8805
|
+
}], index: [{
|
|
8806
|
+
type: Input
|
|
8807
|
+
}], ctx: [{
|
|
8808
|
+
type: Input
|
|
8809
|
+
}] } });
|
|
8662
8810
|
|
|
8663
8811
|
class MessageComponent {
|
|
8664
8812
|
constructor() {
|
|
@@ -8673,13 +8821,13 @@ class MessageComponent {
|
|
|
8673
8821
|
this.message = this.options.help || this.options.helpvalue ||
|
|
8674
8822
|
this.options.msg || this.options.message;
|
|
8675
8823
|
}
|
|
8676
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8677
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8825
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: MessageComponent, isStandalone: false, selector: "message-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8678
8826
|
<span *ngIf="message"
|
|
8679
8827
|
[class]="options?.labelHtmlClass || ''"
|
|
8680
8828
|
[innerHTML]="message"></span>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
8681
8829
|
}
|
|
8682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MessageComponent, decorators: [{
|
|
8683
8831
|
type: Component,
|
|
8684
8832
|
args: [{
|
|
8685
8833
|
// tslint:disable-next-line:component-selector
|
|
@@ -8690,7 +8838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8690
8838
|
[innerHTML]="message"></span>`,
|
|
8691
8839
|
standalone: false
|
|
8692
8840
|
}]
|
|
8693
|
-
}] });
|
|
8841
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8694
8842
|
|
|
8695
8843
|
class NoneComponent {
|
|
8696
8844
|
constructor() {
|
|
@@ -8698,10 +8846,10 @@ class NoneComponent {
|
|
|
8698
8846
|
this.layoutIndex = input(undefined, ...(ngDevMode ? [{ debugName: "layoutIndex" }] : []));
|
|
8699
8847
|
this.dataIndex = input(undefined, ...(ngDevMode ? [{ debugName: "dataIndex" }] : []));
|
|
8700
8848
|
}
|
|
8701
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8702
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8849
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8850
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: NoneComponent, isStandalone: false, selector: "none-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: ``, isInline: true }); }
|
|
8703
8851
|
}
|
|
8704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoneComponent, decorators: [{
|
|
8705
8853
|
type: Component,
|
|
8706
8854
|
args: [{
|
|
8707
8855
|
// tslint:disable-next-line:component-selector
|
|
@@ -8709,7 +8857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8709
8857
|
template: ``,
|
|
8710
8858
|
standalone: false
|
|
8711
8859
|
}]
|
|
8712
|
-
}] });
|
|
8860
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
8713
8861
|
|
|
8714
8862
|
//TODO look at reusing InputComponent
|
|
8715
8863
|
class NumberComponent {
|
|
@@ -8740,10 +8888,13 @@ class NumberComponent {
|
|
|
8740
8888
|
this.jsf.updateValue(this, event.target.value);
|
|
8741
8889
|
}
|
|
8742
8890
|
ngOnDestroy() {
|
|
8743
|
-
|
|
8891
|
+
//see cpmments in input component
|
|
8892
|
+
setTimeout(() => {
|
|
8893
|
+
this.jsf.updateValue(this, null);
|
|
8894
|
+
});
|
|
8744
8895
|
}
|
|
8745
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8746
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
8896
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8897
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: NumberComponent, isStandalone: false, selector: "number-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "inputControl", first: true, predicate: ["inputControl"], descendants: true }, { propertyName: "div", first: true, predicate: ["divElt"], descendants: true }], ngImport: i0, template: `
|
|
8747
8898
|
<div #divElt [class]="options?.htmlClass || ''" >
|
|
8748
8899
|
<label *ngIf="options?.title"
|
|
8749
8900
|
[attr.for]="'control' + layoutNode()?._id"
|
|
@@ -8791,7 +8942,7 @@ class NumberComponent {
|
|
|
8791
8942
|
<span *ngIf="layoutNode()?.type === 'range'" [innerHTML]="controlValue"></span>
|
|
8792
8943
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: ElementAttributeDirective, selector: "[attributes]", inputs: ["attributes"] }, { kind: "directive", type: StopPropagationDirective, selector: "[appStopPropagation]", inputs: ["appStopPropagation"] }] }); }
|
|
8793
8944
|
}
|
|
8794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
8945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NumberComponent, decorators: [{
|
|
8795
8946
|
type: Component,
|
|
8796
8947
|
args: [{
|
|
8797
8948
|
// tslint:disable-next-line:component-selector
|
|
@@ -8845,7 +8996,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8845
8996
|
</div>`,
|
|
8846
8997
|
standalone: false
|
|
8847
8998
|
}]
|
|
8848
|
-
}], propDecorators: { inputControl: [{
|
|
8999
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }], inputControl: [{
|
|
8849
9000
|
type: ViewChild,
|
|
8850
9001
|
args: ['inputControl', {}]
|
|
8851
9002
|
}], div: [{
|
|
@@ -8885,10 +9036,10 @@ class SelectFrameworkComponent {
|
|
|
8885
9036
|
//this.changeDetectorRef.detectChanges();
|
|
8886
9037
|
}
|
|
8887
9038
|
}
|
|
8888
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
8889
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
9039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectFrameworkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9040
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.13", type: SelectFrameworkComponent, isStandalone: false, selector: "select-framework-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "widgetContainer", first: true, predicate: ["widgetContainer"], descendants: true, read: ViewContainerRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `<div #widgetContainer></div>`, isInline: true }); }
|
|
8890
9041
|
}
|
|
8891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
9042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectFrameworkComponent, decorators: [{
|
|
8892
9043
|
type: Component,
|
|
8893
9044
|
args: [{
|
|
8894
9045
|
// tslint:disable-next-line:component-selector
|
|
@@ -8896,11 +9047,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
8896
9047
|
template: `<div #widgetContainer></div>`,
|
|
8897
9048
|
standalone: false
|
|
8898
9049
|
}]
|
|
8899
|
-
}] });
|
|
9050
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }], widgetContainer: [{ type: i0.ViewChild, args: ['widgetContainer', { ...{ read: ViewContainerRef }, isSignal: true }] }] } });
|
|
8900
9051
|
|
|
8901
9052
|
class TabsComponent {
|
|
8902
9053
|
constructor() {
|
|
8903
9054
|
this.jsf = inject(JsonSchemaFormService);
|
|
9055
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
8904
9056
|
this.selectedItem = 0;
|
|
8905
9057
|
this.showAddTab = true;
|
|
8906
9058
|
this.layoutNode = input(undefined, ...(ngDevMode ? [{ debugName: "layoutNode" }] : []));
|
|
@@ -8914,6 +9066,13 @@ class TabsComponent {
|
|
|
8914
9066
|
}
|
|
8915
9067
|
this.itemCount = this.layoutNode().items.length - 1;
|
|
8916
9068
|
this.updateControl();
|
|
9069
|
+
//TODO review/test-introduced to fix dynamic titles not updating
|
|
9070
|
+
//when their conditional linked field is destroyed
|
|
9071
|
+
//-forces change detection!
|
|
9072
|
+
//-commented out, causing other issues
|
|
9073
|
+
this.dataChangesSubs = this.jsf.dataChanges.subscribe((val) => {
|
|
9074
|
+
//this.cdr.detectChanges();
|
|
9075
|
+
});
|
|
8917
9076
|
}
|
|
8918
9077
|
select(index) {
|
|
8919
9078
|
const layoutNode = this.layoutNode();
|
|
@@ -8938,8 +9097,11 @@ class TabsComponent {
|
|
|
8938
9097
|
setTabTitle(item, index) {
|
|
8939
9098
|
return this.jsf.setArrayItemTitle(this, item, index);
|
|
8940
9099
|
}
|
|
8941
|
-
|
|
8942
|
-
|
|
9100
|
+
ngOnDestroy() {
|
|
9101
|
+
this.dataChangesSubs?.unsubscribe();
|
|
9102
|
+
}
|
|
9103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: TabsComponent, isStandalone: false, selector: "tabs-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
8943
9105
|
<ul
|
|
8944
9106
|
[class]="options?.labelHtmlClass || ''">
|
|
8945
9107
|
<li *ngFor="let item of layoutNode()?.items; let i = index"
|
|
@@ -8961,6 +9123,7 @@ class TabsComponent {
|
|
|
8961
9123
|
/>
|
|
8962
9124
|
{{setTabTitle(item, i)}}
|
|
8963
9125
|
</a>
|
|
9126
|
+
|
|
8964
9127
|
</li>
|
|
8965
9128
|
</ul>
|
|
8966
9129
|
|
|
@@ -8991,7 +9154,7 @@ class TabsComponent {
|
|
|
8991
9154
|
</ng-container>
|
|
8992
9155
|
</div>`, isInline: true, styles: ["a{cursor:pointer}.ngf-hidden{display:none}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SelectFrameworkComponent, selector: "select-framework-widget", inputs: ["layoutNode", "layoutIndex", "dataIndex"] }] }); }
|
|
8993
9156
|
}
|
|
8994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
9157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TabsComponent, decorators: [{
|
|
8995
9158
|
type: Component,
|
|
8996
9159
|
args: [{ selector: 'tabs-widget', template: `
|
|
8997
9160
|
<ul
|
|
@@ -9015,6 +9178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9015
9178
|
/>
|
|
9016
9179
|
{{setTabTitle(item, i)}}
|
|
9017
9180
|
</a>
|
|
9181
|
+
|
|
9018
9182
|
</li>
|
|
9019
9183
|
</ul>
|
|
9020
9184
|
|
|
@@ -9044,7 +9208,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9044
9208
|
[layoutNode]="layoutItem"></select-framework-widget>
|
|
9045
9209
|
</ng-container>
|
|
9046
9210
|
</div>`, standalone: false, styles: ["a{cursor:pointer}.ngf-hidden{display:none}\n"] }]
|
|
9047
|
-
}] });
|
|
9211
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
9048
9212
|
|
|
9049
9213
|
// TODO: Add this control
|
|
9050
9214
|
class OneOfComponent {
|
|
@@ -9135,14 +9299,14 @@ class OneOfComponent {
|
|
|
9135
9299
|
ngOnDestroy() {
|
|
9136
9300
|
//this.jsf.updateValue(this, null);
|
|
9137
9301
|
}
|
|
9138
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
9139
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
9302
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: OneOfComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9303
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: OneOfComponent, isStandalone: false, selector: "one-of-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `<h4>{{this.options?.description}}</h4>
|
|
9140
9304
|
<tabs-widget #tabs [layoutNode]="layoutNode()"
|
|
9141
9305
|
[layoutIndex]="layoutIndex()"
|
|
9142
9306
|
[dataIndex]="dataIndex()" >
|
|
9143
9307
|
</tabs-widget>`, isInline: true, dependencies: [{ kind: "component", type: TabsComponent, selector: "tabs-widget", inputs: ["layoutNode", "layoutIndex", "dataIndex"] }] }); }
|
|
9144
9308
|
}
|
|
9145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
9309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: OneOfComponent, decorators: [{
|
|
9146
9310
|
type: Component,
|
|
9147
9311
|
args: [{
|
|
9148
9312
|
// tslint:disable-next-line:component-selector
|
|
@@ -9154,7 +9318,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9154
9318
|
</tabs-widget>`,
|
|
9155
9319
|
standalone: false
|
|
9156
9320
|
}]
|
|
9157
|
-
}] });
|
|
9321
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
9158
9322
|
|
|
9159
9323
|
class RadiosComponent {
|
|
9160
9324
|
constructor() {
|
|
@@ -9183,8 +9347,8 @@ class RadiosComponent {
|
|
|
9183
9347
|
ngOnDestroy() {
|
|
9184
9348
|
this.jsf.updateValue(this, null);
|
|
9185
9349
|
}
|
|
9186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
9187
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
9350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: RadiosComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9351
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: RadiosComponent, isStandalone: false, selector: "radios-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
9188
9352
|
<label *ngIf="options?.title"
|
|
9189
9353
|
[attr.for]="'control' + layoutNode()?._id"
|
|
9190
9354
|
[class]="options?.labelHtmlClass || ''"
|
|
@@ -9241,7 +9405,7 @@ class RadiosComponent {
|
|
|
9241
9405
|
</div>
|
|
9242
9406
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
9243
9407
|
}
|
|
9244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
9408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: RadiosComponent, decorators: [{
|
|
9245
9409
|
type: Component,
|
|
9246
9410
|
args: [{
|
|
9247
9411
|
// tslint:disable-next-line:component-selector
|
|
@@ -9304,11 +9468,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9304
9468
|
</div>`,
|
|
9305
9469
|
standalone: false
|
|
9306
9470
|
}]
|
|
9307
|
-
}] });
|
|
9471
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
9308
9472
|
|
|
9309
9473
|
class RootComponent {
|
|
9310
9474
|
constructor() {
|
|
9311
9475
|
this.jsf = inject(JsonSchemaFormService);
|
|
9476
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
9312
9477
|
this.dataIndex = input(undefined, ...(ngDevMode ? [{ debugName: "dataIndex" }] : []));
|
|
9313
9478
|
this.layoutIndex = input(undefined, ...(ngDevMode ? [{ debugName: "layoutIndex" }] : []));
|
|
9314
9479
|
this.layout = input(undefined, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
@@ -9416,6 +9581,8 @@ class RootComponent {
|
|
|
9416
9581
|
return this._getSelectFrameworkInputsRaw(layoutItem, i);
|
|
9417
9582
|
}
|
|
9418
9583
|
}
|
|
9584
|
+
//TODO investigate-causing layout issue with layout,for now
|
|
9585
|
+
//removed from template
|
|
9419
9586
|
trackByFn(index, item) {
|
|
9420
9587
|
return item._id ?? index;
|
|
9421
9588
|
}
|
|
@@ -9431,6 +9598,7 @@ class RootComponent {
|
|
|
9431
9598
|
if (changes['layout'] || changes['dataIndex'] || changes['layoutIndex']) {
|
|
9432
9599
|
// Clear the entire cache of the memoized function
|
|
9433
9600
|
this._getSelectFrameworkInputsMemoized.cache.clear();
|
|
9601
|
+
this.cdr.markForCheck();
|
|
9434
9602
|
}
|
|
9435
9603
|
}
|
|
9436
9604
|
showWidget(layoutNode) {
|
|
@@ -9441,6 +9609,10 @@ class RootComponent {
|
|
|
9441
9609
|
this.jsf.dataChanges.subscribe((val) => {
|
|
9442
9610
|
//this.selectframeworkInputCache?.clear();
|
|
9443
9611
|
this._getSelectFrameworkInputsMemoized.cache.clear();
|
|
9612
|
+
//TODO-fix for now changed to detectChanges-
|
|
9613
|
+
//used to updated the dynamic titles in tab compnents
|
|
9614
|
+
this.cdr.markForCheck();
|
|
9615
|
+
// this.cdr.detectChanges();-breaks oneOf/ matdatepicker
|
|
9444
9616
|
});
|
|
9445
9617
|
}
|
|
9446
9618
|
}
|
|
@@ -9450,8 +9622,8 @@ class RootComponent {
|
|
|
9450
9622
|
this._getSelectFrameworkInputsMemoized.cache.clear();
|
|
9451
9623
|
this.dataChangesSubs?.unsubscribe();
|
|
9452
9624
|
}
|
|
9453
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
9454
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
9625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: RootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9626
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: RootComponent, isStandalone: false, selector: "root-widget", inputs: { dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, isOrderable: { classPropertyName: "isOrderable", publicName: "isOrderable", isSignal: true, isRequired: false, transformFunction: null }, isFlexItem: { classPropertyName: "isFlexItem", publicName: "isFlexItem", isSignal: true, isRequired: false, transformFunction: null }, memoizationEnabled: { classPropertyName: "memoizationEnabled", publicName: "memoizationEnabled", isSignal: true, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0, template: `
|
|
9455
9627
|
<div cdkDropList (cdkDropListDropped)="drop($event)"
|
|
9456
9628
|
[class.flex-inherit]="true"
|
|
9457
9629
|
[cdkDropListSortPredicate]="sortPredicate"
|
|
@@ -9462,7 +9634,7 @@ class RootComponent {
|
|
|
9462
9634
|
You must explicitly disable dragging on the main element
|
|
9463
9635
|
and re-enable it only when using the handle.
|
|
9464
9636
|
-->
|
|
9465
|
-
<div *ngFor="let layoutItem of layout(); let i = index;
|
|
9637
|
+
<div *ngFor="let layoutItem of layout(); let i = index;"
|
|
9466
9638
|
cdkDrag [cdkDragStartDelay]="{touch:1000,mouse:0}"
|
|
9467
9639
|
[cdkDragDisabled]="!isDraggable(layoutItem)"
|
|
9468
9640
|
[class.form-flex-item]="isFlexItem()"
|
|
@@ -9504,7 +9676,7 @@ class RootComponent {
|
|
|
9504
9676
|
</div>
|
|
9505
9677
|
`, isInline: true, styles: ["[draggable=true]{transition:all .15s cubic-bezier(.4,0,.2,1)}[draggable=true]:hover{cursor:move;box-shadow:2px 2px 4px #0003;position:relative;z-index:10;margin:-1px 1px 1px -1px}[draggable=true].drag-target-top{box-shadow:0 -2px #000;position:relative;z-index:20}[draggable=true].drag-target-bottom{box-shadow:0 2px #000;position:relative;z-index:20}.flex-inherit{display:inherit;flex-flow:inherit;flex-wrap:inherit;flex-direction:inherit;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "component", type: SelectFrameworkComponent, selector: "select-framework-widget", inputs: ["layoutNode", "layoutIndex", "dataIndex"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9506
9678
|
}
|
|
9507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
9679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: RootComponent, decorators: [{
|
|
9508
9680
|
type: Component,
|
|
9509
9681
|
args: [{ selector: 'root-widget', template: `
|
|
9510
9682
|
<div cdkDropList (cdkDropListDropped)="drop($event)"
|
|
@@ -9517,7 +9689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9517
9689
|
You must explicitly disable dragging on the main element
|
|
9518
9690
|
and re-enable it only when using the handle.
|
|
9519
9691
|
-->
|
|
9520
|
-
<div *ngFor="let layoutItem of layout(); let i = index;
|
|
9692
|
+
<div *ngFor="let layoutItem of layout(); let i = index;"
|
|
9521
9693
|
cdkDrag [cdkDragStartDelay]="{touch:1000,mouse:0}"
|
|
9522
9694
|
[cdkDragDisabled]="!isDraggable(layoutItem)"
|
|
9523
9695
|
[class.form-flex-item]="isFlexItem()"
|
|
@@ -9558,7 +9730,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9558
9730
|
</div>
|
|
9559
9731
|
</div>
|
|
9560
9732
|
`, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, styles: ["[draggable=true]{transition:all .15s cubic-bezier(.4,0,.2,1)}[draggable=true]:hover{cursor:move;box-shadow:2px 2px 4px #0003;position:relative;z-index:10;margin:-1px 1px 1px -1px}[draggable=true].drag-target-top{box-shadow:0 -2px #000;position:relative;z-index:20}[draggable=true].drag-target-bottom{box-shadow:0 2px #000;position:relative;z-index:20}.flex-inherit{display:inherit;flex-flow:inherit;flex-wrap:inherit;flex-direction:inherit;width:100%}\n"] }]
|
|
9561
|
-
}] });
|
|
9733
|
+
}], propDecorators: { dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], isOrderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOrderable", required: false }] }], isFlexItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "isFlexItem", required: false }] }], memoizationEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "memoizationEnabled", required: false }] }] } });
|
|
9562
9734
|
|
|
9563
9735
|
class SectionComponent {
|
|
9564
9736
|
constructor() {
|
|
@@ -9621,8 +9793,8 @@ class SectionComponent {
|
|
|
9621
9793
|
return this.options[attribute];
|
|
9622
9794
|
}
|
|
9623
9795
|
}
|
|
9624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
9625
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
9796
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9797
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: SectionComponent, isStandalone: false, selector: "section-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
9626
9798
|
<div *ngIf="containerType === 'div'"
|
|
9627
9799
|
[class]="options?.htmlClass || ''"
|
|
9628
9800
|
[class.expandable]="options?.expandable && !expanded"
|
|
@@ -9685,7 +9857,7 @@ class SectionComponent {
|
|
|
9685
9857
|
</div>
|
|
9686
9858
|
</fieldset>`, isInline: true, styles: [".legend{font-weight:700}.expandable>legend:before,.expandable>label:before{content:\"\\25b6\";padding-right:.3em;font-family:auto}.expanded>legend:before,.expanded>label:before{content:\"\\25bc\";padding-right:.2em}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: RootComponent, selector: "root-widget", inputs: ["dataIndex", "layoutIndex", "layout", "isOrderable", "isFlexItem", "memoizationEnabled"] }] }); }
|
|
9687
9859
|
}
|
|
9688
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
9860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SectionComponent, decorators: [{
|
|
9689
9861
|
type: Component,
|
|
9690
9862
|
args: [{ selector: 'section-widget', template: `
|
|
9691
9863
|
<div *ngIf="containerType === 'div'"
|
|
@@ -9749,7 +9921,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9749
9921
|
[innerHTML]="options?.description"></p>
|
|
9750
9922
|
</div>
|
|
9751
9923
|
</fieldset>`, standalone: false, styles: [".legend{font-weight:700}.expandable>legend:before,.expandable>label:before{content:\"\\25b6\";padding-right:.3em;font-family:auto}.expanded>legend:before,.expanded>label:before{content:\"\\25bc\";padding-right:.2em}\n"] }]
|
|
9752
|
-
}] });
|
|
9924
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
9753
9925
|
|
|
9754
9926
|
class SelectComponent {
|
|
9755
9927
|
constructor() {
|
|
@@ -9801,8 +9973,8 @@ class SelectComponent {
|
|
|
9801
9973
|
this.formControl.reset(nullVal);
|
|
9802
9974
|
this.controlValue = null;
|
|
9803
9975
|
}
|
|
9804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
9805
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
9976
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9977
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: SelectComponent, isStandalone: false, selector: "select-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
9806
9978
|
<div
|
|
9807
9979
|
[class]="options?.htmlClass || ''">
|
|
9808
9980
|
<label *ngIf="options?.title"
|
|
@@ -9886,7 +10058,7 @@ class SelectComponent {
|
|
|
9886
10058
|
</select>
|
|
9887
10059
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
9888
10060
|
}
|
|
9889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectComponent, decorators: [{
|
|
9890
10062
|
type: Component,
|
|
9891
10063
|
args: [{
|
|
9892
10064
|
// tslint:disable-next-line:component-selector
|
|
@@ -9976,7 +10148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
9976
10148
|
</div>`,
|
|
9977
10149
|
standalone: false
|
|
9978
10150
|
}]
|
|
9979
|
-
}] });
|
|
10151
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
9980
10152
|
|
|
9981
10153
|
class SubmitComponent {
|
|
9982
10154
|
constructor() {
|
|
@@ -10014,8 +10186,8 @@ class SubmitComponent {
|
|
|
10014
10186
|
this.jsf.updateValue(this, event.target.value);
|
|
10015
10187
|
}
|
|
10016
10188
|
}
|
|
10017
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10018
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
10189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SubmitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: SubmitComponent, isStandalone: false, selector: "submit-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
10019
10191
|
<div
|
|
10020
10192
|
[class]="options?.htmlClass || ''">
|
|
10021
10193
|
<input
|
|
@@ -10033,7 +10205,7 @@ class SubmitComponent {
|
|
|
10033
10205
|
>
|
|
10034
10206
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: StopPropagationDirective, selector: "[appStopPropagation]", inputs: ["appStopPropagation"] }] }); }
|
|
10035
10207
|
}
|
|
10036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SubmitComponent, decorators: [{
|
|
10037
10209
|
type: Component,
|
|
10038
10210
|
args: [{
|
|
10039
10211
|
// tslint:disable-next-line:component-selector
|
|
@@ -10057,7 +10229,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
10057
10229
|
</div>`,
|
|
10058
10230
|
standalone: false
|
|
10059
10231
|
}]
|
|
10060
|
-
}] });
|
|
10232
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
10061
10233
|
|
|
10062
10234
|
class TemplateComponent {
|
|
10063
10235
|
constructor() {
|
|
@@ -10086,10 +10258,10 @@ class TemplateComponent {
|
|
|
10086
10258
|
}
|
|
10087
10259
|
}
|
|
10088
10260
|
}
|
|
10089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.
|
|
10261
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10262
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.13", type: TemplateComponent, isStandalone: false, selector: "template-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "widgetContainer", first: true, predicate: ["widgetContainer"], descendants: true, read: ViewContainerRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `<div #widgetContainer></div>`, isInline: true }); }
|
|
10091
10263
|
}
|
|
10092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TemplateComponent, decorators: [{
|
|
10093
10265
|
type: Component,
|
|
10094
10266
|
args: [{
|
|
10095
10267
|
// tslint:disable-next-line:component-selector
|
|
@@ -10097,7 +10269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
10097
10269
|
template: `<div #widgetContainer></div>`,
|
|
10098
10270
|
standalone: false
|
|
10099
10271
|
}]
|
|
10100
|
-
}] });
|
|
10272
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }], widgetContainer: [{ type: i0.ViewChild, args: ['widgetContainer', { ...{ read: ViewContainerRef }, isSignal: true }] }] } });
|
|
10101
10273
|
|
|
10102
10274
|
class TextareaComponent {
|
|
10103
10275
|
constructor() {
|
|
@@ -10116,10 +10288,13 @@ class TextareaComponent {
|
|
|
10116
10288
|
this.jsf.updateValue(this, event.target.value);
|
|
10117
10289
|
}
|
|
10118
10290
|
ngOnDestroy() {
|
|
10119
|
-
|
|
10291
|
+
//see cpmments in input component
|
|
10292
|
+
setTimeout(() => {
|
|
10293
|
+
this.jsf.updateValue(this, null);
|
|
10294
|
+
});
|
|
10120
10295
|
}
|
|
10121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10122
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
10296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10297
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: TextareaComponent, isStandalone: false, selector: "textarea-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
10123
10298
|
<div
|
|
10124
10299
|
[class]="options?.htmlClass || ''">
|
|
10125
10300
|
<label *ngIf="options?.title"
|
|
@@ -10155,7 +10330,7 @@ class TextareaComponent {
|
|
|
10155
10330
|
(input)="updateValue($event)">{{controlValue}}</textarea>
|
|
10156
10331
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
10157
10332
|
}
|
|
10158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TextareaComponent, decorators: [{
|
|
10159
10334
|
type: Component,
|
|
10160
10335
|
args: [{
|
|
10161
10336
|
// tslint:disable-next-line:component-selector
|
|
@@ -10197,7 +10372,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
10197
10372
|
</div>`,
|
|
10198
10373
|
standalone: false
|
|
10199
10374
|
}]
|
|
10200
|
-
}] });
|
|
10375
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
10201
10376
|
|
|
10202
10377
|
class WidgetLibraryService {
|
|
10203
10378
|
constructor() {
|
|
@@ -10396,10 +10571,10 @@ class WidgetLibraryService {
|
|
|
10396
10571
|
activeWidgets: this.activeWidgets,
|
|
10397
10572
|
};
|
|
10398
10573
|
}
|
|
10399
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10400
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
10574
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10575
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryService, providedIn: 'root' }); }
|
|
10401
10576
|
}
|
|
10402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryService, decorators: [{
|
|
10403
10578
|
type: Injectable,
|
|
10404
10579
|
args: [{
|
|
10405
10580
|
providedIn: 'root',
|
|
@@ -10558,10 +10733,10 @@ class FrameworkLibraryService {
|
|
|
10558
10733
|
return actFramework.unregisterTheme(name);
|
|
10559
10734
|
}
|
|
10560
10735
|
}
|
|
10561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10562
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
10736
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: FrameworkLibraryService, deps: [{ token: Framework }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
10737
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: FrameworkLibraryService, providedIn: 'root' }); }
|
|
10563
10738
|
}
|
|
10564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: FrameworkLibraryService, decorators: [{
|
|
10565
10740
|
type: Injectable,
|
|
10566
10741
|
args: [{
|
|
10567
10742
|
providedIn: 'root',
|
|
@@ -10637,8 +10812,8 @@ class SelectCheckboxComponent {
|
|
|
10637
10812
|
this.formControl.reset(nullVal);
|
|
10638
10813
|
this.controlValue = null;
|
|
10639
10814
|
}
|
|
10640
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10641
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
10815
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10816
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: SelectCheckboxComponent, isStandalone: false, selector: "selectcheckbox-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
10642
10817
|
<div
|
|
10643
10818
|
[class]="options?.htmlClass || ''">
|
|
10644
10819
|
<select *ngIf="boundControl"
|
|
@@ -10691,7 +10866,7 @@ class SelectCheckboxComponent {
|
|
|
10691
10866
|
|
|
10692
10867
|
</div>`, isInline: true, styles: [".select-box{font-size:16px;border:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;height:25px;overflow:hidden;text-overflow:ellipsis;background-color:#fff;color:#000;background-color:transparent}.select-box:focus{outline:none}.select-option{font-size:20px;color:#000;background-color:#fff;display:inline-block}.unchecked:before{content:\"\\2610\";left:5px;top:50%;transform:translateY(-50%);font-size:30px}.checked:before{content:\"\\2611\";left:5px;top:50%;transform:translateY(-50%);font-size:30px}.select-option:checked{background-image:linear-gradient(0deg,#fff 0% 100%);color:#000}.select-box[multiple]:focus{background-color:transparent;color:#00f;-webkit-text-fill-color:black}.display-inline-block{display:inline-block}.bs4-option,.bs3-option{width:14px;height:14px;border:solid 1px;color:#a9a9a9;min-block-size:auto;border-radius:3px}.bs4-option:checked[type=checkbox],.bs3-option:checked[type=checkbox]{background-image:url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!--%20License%3A%20MIT.%20Made%20by%20jaynewey%3A%20https%3A%2F%2Fgithub.com%2Fjaynewey%2Fcharm-icons%20--%3E%3Csvg%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%3E%3Cpolyline%20points%3D%224%208.75%2C6.25%2012.25%2C13.25%203.5%22%2F%3E%3C%2Fsvg%3E);background-color:#00ced1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
10693
10868
|
}
|
|
10694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: SelectCheckboxComponent, decorators: [{
|
|
10695
10870
|
type: Component,
|
|
10696
10871
|
args: [{ selector: 'selectcheckbox-widget', template: `
|
|
10697
10872
|
<div
|
|
@@ -10745,7 +10920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
10745
10920
|
</select>
|
|
10746
10921
|
|
|
10747
10922
|
</div>`, standalone: false, styles: [".select-box{font-size:16px;border:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;height:25px;overflow:hidden;text-overflow:ellipsis;background-color:#fff;color:#000;background-color:transparent}.select-box:focus{outline:none}.select-option{font-size:20px;color:#000;background-color:#fff;display:inline-block}.unchecked:before{content:\"\\2610\";left:5px;top:50%;transform:translateY(-50%);font-size:30px}.checked:before{content:\"\\2611\";left:5px;top:50%;transform:translateY(-50%);font-size:30px}.select-option:checked{background-image:linear-gradient(0deg,#fff 0% 100%);color:#000}.select-box[multiple]:focus{background-color:transparent;color:#00f;-webkit-text-fill-color:black}.display-inline-block{display:inline-block}.bs4-option,.bs3-option{width:14px;height:14px;border:solid 1px;color:#a9a9a9;min-block-size:auto;border-radius:3px}.bs4-option:checked[type=checkbox],.bs3-option:checked[type=checkbox]{background-image:url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!--%20License%3A%20MIT.%20Made%20by%20jaynewey%3A%20https%3A%2F%2Fgithub.com%2Fjaynewey%2Fcharm-icons%20--%3E%3Csvg%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%3E%3Cpolyline%20points%3D%224%208.75%2C6.25%2012.25%2C13.25%203.5%22%2F%3E%3C%2Fsvg%3E);background-color:#00ced1}\n"] }]
|
|
10748
|
-
}] });
|
|
10923
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
10749
10924
|
|
|
10750
10925
|
class TabComponent {
|
|
10751
10926
|
constructor() {
|
|
@@ -10757,8 +10932,8 @@ class TabComponent {
|
|
|
10757
10932
|
ngOnInit() {
|
|
10758
10933
|
this.options = this.layoutNode().options || {};
|
|
10759
10934
|
}
|
|
10760
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10761
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
10935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10936
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: TabComponent, isStandalone: false, selector: "tab-widget", inputs: { layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
10762
10937
|
<div [class]="options?.htmlClass || ''">
|
|
10763
10938
|
<root-widget
|
|
10764
10939
|
[dataIndex]="dataIndex()"
|
|
@@ -10766,7 +10941,7 @@ class TabComponent {
|
|
|
10766
10941
|
[layout]="layoutNode().items"></root-widget>
|
|
10767
10942
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: RootComponent, selector: "root-widget", inputs: ["dataIndex", "layoutIndex", "layout", "isOrderable", "isFlexItem", "memoizationEnabled"] }] }); }
|
|
10768
10943
|
}
|
|
10769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
10944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: TabComponent, decorators: [{
|
|
10770
10945
|
type: Component,
|
|
10771
10946
|
args: [{
|
|
10772
10947
|
// tslint:disable-next-line:component-selector
|
|
@@ -10780,7 +10955,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
10780
10955
|
</div>`,
|
|
10781
10956
|
standalone: false
|
|
10782
10957
|
}]
|
|
10783
|
-
}] });
|
|
10958
|
+
}], propDecorators: { layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
10784
10959
|
|
|
10785
10960
|
/**
|
|
10786
10961
|
* OrderableDirective
|
|
@@ -10897,17 +11072,17 @@ class OrderableDirective {
|
|
|
10897
11072
|
this.draggableStateSubscription.unsubscribe();
|
|
10898
11073
|
}
|
|
10899
11074
|
}
|
|
10900
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10901
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.
|
|
11075
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: OrderableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
11076
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.13", type: OrderableDirective, isStandalone: false, selector: "[orderable]", inputs: { orderable: { classPropertyName: "orderable", publicName: "orderable", isSignal: true, isRequired: false, transformFunction: null }, layoutNode: { classPropertyName: "layoutNode", publicName: "layoutNode", isSignal: true, isRequired: false, transformFunction: null }, layoutIndex: { classPropertyName: "layoutIndex", publicName: "layoutIndex", isSignal: true, isRequired: false, transformFunction: null }, dataIndex: { classPropertyName: "dataIndex", publicName: "dataIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
10902
11077
|
}
|
|
10903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
11078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: OrderableDirective, decorators: [{
|
|
10904
11079
|
type: Directive,
|
|
10905
11080
|
args: [{
|
|
10906
11081
|
// tslint:disable-next-line:directive-selector
|
|
10907
11082
|
selector: '[orderable]',
|
|
10908
11083
|
standalone: false
|
|
10909
11084
|
}]
|
|
10910
|
-
}] });
|
|
11085
|
+
}], propDecorators: { orderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "orderable", required: false }] }], layoutNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutNode", required: false }] }], layoutIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "layoutIndex", required: false }] }], dataIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataIndex", required: false }] }] } });
|
|
10911
11086
|
|
|
10912
11087
|
const BASIC_WIDGETS = [
|
|
10913
11088
|
AddReferenceComponent, OneOfComponent, ButtonComponent, CheckboxComponent,
|
|
@@ -10915,15 +11090,15 @@ const BASIC_WIDGETS = [
|
|
|
10915
11090
|
MessageComponent, NoneComponent, NumberComponent, RadiosComponent,
|
|
10916
11091
|
RootComponent, SectionComponent, SelectComponent, SelectFrameworkComponent,
|
|
10917
11092
|
SelectWidgetComponent, SubmitComponent, TabComponent, TabsComponent,
|
|
10918
|
-
TemplateComponent, TextareaComponent, SelectCheckboxComponent
|
|
11093
|
+
TemplateComponent, TextareaComponent, SelectCheckboxComponent, ItemTitleComponent
|
|
10919
11094
|
];
|
|
10920
11095
|
|
|
10921
11096
|
class WidgetLibraryModule {
|
|
10922
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10923
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
10924
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
11097
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11098
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryModule, declarations: [AddReferenceComponent, OneOfComponent, ButtonComponent, CheckboxComponent, CheckboxesComponent, FileComponent, HiddenComponent, InputComponent, MessageComponent, NoneComponent, NumberComponent, RadiosComponent, RootComponent, SectionComponent, SelectComponent, SelectFrameworkComponent, SelectWidgetComponent, SubmitComponent, TabComponent, TabsComponent, TemplateComponent, TextareaComponent, SelectCheckboxComponent, ItemTitleComponent, OrderableDirective, ElementAttributeDirective, StopPropagationDirective], imports: [CommonModule, FormsModule, ReactiveFormsModule, DragDropModule], exports: [AddReferenceComponent, OneOfComponent, ButtonComponent, CheckboxComponent, CheckboxesComponent, FileComponent, HiddenComponent, InputComponent, MessageComponent, NoneComponent, NumberComponent, RadiosComponent, RootComponent, SectionComponent, SelectComponent, SelectFrameworkComponent, SelectWidgetComponent, SubmitComponent, TabComponent, TabsComponent, TemplateComponent, TextareaComponent, SelectCheckboxComponent, ItemTitleComponent, OrderableDirective, ElementAttributeDirective, StopPropagationDirective] }); }
|
|
11099
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryModule, imports: [CommonModule, FormsModule, ReactiveFormsModule, DragDropModule] }); }
|
|
10925
11100
|
}
|
|
10926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
11101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: WidgetLibraryModule, decorators: [{
|
|
10927
11102
|
type: NgModule,
|
|
10928
11103
|
args: [{
|
|
10929
11104
|
imports: [CommonModule, FormsModule, ReactiveFormsModule, DragDropModule
|
|
@@ -10935,13 +11110,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
10935
11110
|
|
|
10936
11111
|
// No framework - plain HTML controls (styles from form layout only)
|
|
10937
11112
|
class NoFrameworkModule {
|
|
10938
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
10939
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
10940
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
11113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFrameworkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11114
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.13", ngImport: i0, type: NoFrameworkModule, declarations: [NoFrameworkComponent], imports: [CommonModule, WidgetLibraryModule], exports: [NoFrameworkComponent] }); }
|
|
11115
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFrameworkModule, providers: [
|
|
10941
11116
|
{ provide: Framework, useClass: NoFramework, multi: true }
|
|
10942
11117
|
], imports: [CommonModule, WidgetLibraryModule] }); }
|
|
10943
11118
|
}
|
|
10944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
11119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: NoFrameworkModule, decorators: [{
|
|
10945
11120
|
type: NgModule,
|
|
10946
11121
|
args: [{
|
|
10947
11122
|
imports: [CommonModule, WidgetLibraryModule],
|
|
@@ -11168,11 +11343,26 @@ class JsonSchemaFormComponent {
|
|
|
11168
11343
|
if (this.formValuesInput.indexOf('.') === -1) {
|
|
11169
11344
|
changedData = this.getInputValue(this.formValuesInput);
|
|
11170
11345
|
//this[this.formValuesInput];
|
|
11171
|
-
this.setFormValues(changedData, resetFirst);
|
|
11172
11346
|
}
|
|
11173
11347
|
else {
|
|
11174
11348
|
const [input, key] = this.formValuesInput.split('.');
|
|
11175
11349
|
changedData = this.getInputValue(input)[key];
|
|
11350
|
+
}
|
|
11351
|
+
//TODO -review if any of the the array sizes changed then the
|
|
11352
|
+
//layout array sizes need to be resynced to match
|
|
11353
|
+
//-for now jsf.adjustLayout doesnt seem to work with nested arrays
|
|
11354
|
+
//so entire form is reinited
|
|
11355
|
+
let arraySizesChanged = !compareObjectArraySizes(changedData, this.jsf.data);
|
|
11356
|
+
if (arraySizesChanged) {
|
|
11357
|
+
this.initializeForm(changedData);
|
|
11358
|
+
if (this.onChange) {
|
|
11359
|
+
this.onChange(changedData);
|
|
11360
|
+
}
|
|
11361
|
+
if (this.onTouched) {
|
|
11362
|
+
this.onTouched(changedData);
|
|
11363
|
+
}
|
|
11364
|
+
}
|
|
11365
|
+
else {
|
|
11176
11366
|
this.setFormValues(changedData, resetFirst);
|
|
11177
11367
|
}
|
|
11178
11368
|
// If anything else has changed, re-render the entire form
|
|
@@ -11197,7 +11387,7 @@ class JsonSchemaFormComponent {
|
|
|
11197
11387
|
.forEach(input => this.previousInputs[input] = this.getInputValue(input));
|
|
11198
11388
|
}
|
|
11199
11389
|
}
|
|
11200
|
-
setFormValues(formValues, resetFirst = true) {
|
|
11390
|
+
setFormValues(formValues, resetFirst = true, emitFormEvent = true, usePatch = true) {
|
|
11201
11391
|
if (formValues) {
|
|
11202
11392
|
const newFormValues = this.objectWrap ? formValues['1'] : formValues;
|
|
11203
11393
|
if (!this.jsf.formGroup) {
|
|
@@ -11205,10 +11395,15 @@ class JsonSchemaFormComponent {
|
|
|
11205
11395
|
this.activateForm();
|
|
11206
11396
|
}
|
|
11207
11397
|
else if (resetFirst) { //changed to avoid reset events
|
|
11208
|
-
this.jsf.formGroup.reset({}, { emitEvent:
|
|
11398
|
+
this.jsf.formGroup.reset({}, { emitEvent: emitFormEvent });
|
|
11209
11399
|
}
|
|
11210
11400
|
if (this.jsf.formGroup) { //changed to avoid reset events
|
|
11211
|
-
|
|
11401
|
+
if (usePatch) {
|
|
11402
|
+
this.jsf.formGroup.patchValue(newFormValues, { emitEvent: emitFormEvent });
|
|
11403
|
+
}
|
|
11404
|
+
else {
|
|
11405
|
+
this.jsf.formGroup.setValue(newFormValues, { emitEvent: emitFormEvent });
|
|
11406
|
+
}
|
|
11212
11407
|
}
|
|
11213
11408
|
if (this.onChange) {
|
|
11214
11409
|
this.onChange(newFormValues);
|
|
@@ -11220,6 +11415,7 @@ class JsonSchemaFormComponent {
|
|
|
11220
11415
|
else {
|
|
11221
11416
|
this.jsf.formGroup.reset();
|
|
11222
11417
|
}
|
|
11418
|
+
this.changeDetector.markForCheck();
|
|
11223
11419
|
}
|
|
11224
11420
|
submitForm() {
|
|
11225
11421
|
const validData = this.jsf.validData;
|
|
@@ -11703,24 +11899,24 @@ class JsonSchemaFormComponent {
|
|
|
11703
11899
|
}
|
|
11704
11900
|
}
|
|
11705
11901
|
}
|
|
11706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
11707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.
|
|
11902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11903
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.13", type: JsonSchemaFormComponent, isStandalone: false, selector: "json-schema-form", inputs: { schema: { classPropertyName: "schema", publicName: "schema", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, framework: { classPropertyName: "framework", publicName: "framework", isSignal: true, isRequired: false, transformFunction: null }, widgets: { classPropertyName: "widgets", publicName: "widgets", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, JSONSchema: { classPropertyName: "JSONSchema", publicName: "JSONSchema", isSignal: true, isRequired: false, transformFunction: null }, UISchema: { classPropertyName: "UISchema", publicName: "UISchema", isSignal: true, isRequired: false, transformFunction: null }, formData: { classPropertyName: "formData", publicName: "formData", isSignal: true, isRequired: false, transformFunction: null }, ngModel: { classPropertyName: "ngModel", publicName: "ngModel", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, loadExternalAssets: { classPropertyName: "loadExternalAssets", publicName: "loadExternalAssets", isSignal: true, isRequired: false, transformFunction: null }, debug: { classPropertyName: "debug", publicName: "debug", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, ajvOptions: { classPropertyName: "ajvOptions", publicName: "ajvOptions", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onChanges: "onChanges", onSubmit: "onSubmit", isValid: "isValid", validationErrors: "validationErrors", formSchema: "formSchema", formLayout: "formLayout", dataChange: "dataChange", modelChange: "modelChange", formDataChange: "formDataChange", ngModelChange: "ngModelChange" }, providers: [JsonSchemaFormService, JSON_SCHEMA_FORM_VALUE_ACCESSOR], usesOnChanges: true, ngImport: i0, template: "<form [autocomplete]=\"jsf?.formOptions?.autocomplete ? 'on' : 'off'\" class=\"json-schema-form\" (ngSubmit)=\"submitForm()\">\r\n <root-widget [layout]=\"jsf?.layout\"></root-widget>\r\n</form>\r\n<div *ngIf=\"debug() || jsf?.formOptions?.debug\">\r\n Debug output:\r\n <pre>{{debugOutput}}</pre>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: RootComponent, selector: "root-widget", inputs: ["dataIndex", "layoutIndex", "layout", "isOrderable", "isFlexItem", "memoizationEnabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11708
11904
|
}
|
|
11709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
11905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormComponent, decorators: [{
|
|
11710
11906
|
type: Component,
|
|
11711
11907
|
args: [{ selector: 'json-schema-form', changeDetection: ChangeDetectionStrategy.OnPush, providers: [JsonSchemaFormService, JSON_SCHEMA_FORM_VALUE_ACCESSOR], standalone: false, template: "<form [autocomplete]=\"jsf?.formOptions?.autocomplete ? 'on' : 'off'\" class=\"json-schema-form\" (ngSubmit)=\"submitForm()\">\r\n <root-widget [layout]=\"jsf?.layout\"></root-widget>\r\n</form>\r\n<div *ngIf=\"debug() || jsf?.formOptions?.debug\">\r\n Debug output:\r\n <pre>{{debugOutput}}</pre>\r\n</div>" }]
|
|
11712
|
-
}], propDecorators: { value: [{
|
|
11908
|
+
}], propDecorators: { schema: [{ type: i0.Input, args: [{ isSignal: true, alias: "schema", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], framework: [{ type: i0.Input, args: [{ isSignal: true, alias: "framework", required: false }] }], widgets: [{ type: i0.Input, args: [{ isSignal: true, alias: "widgets", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], JSONSchema: [{ type: i0.Input, args: [{ isSignal: true, alias: "JSONSchema", required: false }] }], UISchema: [{ type: i0.Input, args: [{ isSignal: true, alias: "UISchema", required: false }] }], formData: [{ type: i0.Input, args: [{ isSignal: true, alias: "formData", required: false }] }], ngModel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ngModel", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], loadExternalAssets: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadExternalAssets", required: false }] }], debug: [{ type: i0.Input, args: [{ isSignal: true, alias: "debug", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], ajvOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "ajvOptions", required: false }] }], value: [{
|
|
11713
11909
|
type: Input
|
|
11714
|
-
}] } });
|
|
11910
|
+
}], onChanges: [{ type: i0.Output, args: ["onChanges"] }], onSubmit: [{ type: i0.Output, args: ["onSubmit"] }], isValid: [{ type: i0.Output, args: ["isValid"] }], validationErrors: [{ type: i0.Output, args: ["validationErrors"] }], formSchema: [{ type: i0.Output, args: ["formSchema"] }], formLayout: [{ type: i0.Output, args: ["formLayout"] }], dataChange: [{ type: i0.Output, args: ["dataChange"] }], modelChange: [{ type: i0.Output, args: ["modelChange"] }], formDataChange: [{ type: i0.Output, args: ["formDataChange"] }], ngModelChange: [{ type: i0.Output, args: ["ngModelChange"] }] } });
|
|
11715
11911
|
|
|
11716
11912
|
class JsonSchemaFormModule {
|
|
11717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
11718
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
11913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
11914
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormModule, declarations: [JsonSchemaFormComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule,
|
|
11719
11915
|
WidgetLibraryModule, NoFrameworkModule], exports: [JsonSchemaFormComponent, WidgetLibraryModule] }); }
|
|
11720
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
11916
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormModule, imports: [CommonModule, FormsModule, ReactiveFormsModule,
|
|
11721
11917
|
WidgetLibraryModule, NoFrameworkModule, WidgetLibraryModule] }); }
|
|
11722
11918
|
}
|
|
11723
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
11919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: JsonSchemaFormModule, decorators: [{
|
|
11724
11920
|
type: NgModule,
|
|
11725
11921
|
args: [{
|
|
11726
11922
|
imports: [
|
|
@@ -11740,5 +11936,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
11740
11936
|
* Generated bundle index. Do not edit.
|
|
11741
11937
|
*/
|
|
11742
11938
|
|
|
11743
|
-
export { AddReferenceComponent, BASIC_WIDGETS, ButtonComponent, CheckboxComponent, CheckboxesComponent, ElementAttributeDirective, FileComponent, Framework, FrameworkLibraryService, HiddenComponent, InputComponent, JsonPointer, JsonSchemaFormComponent, JsonSchemaFormModule, JsonSchemaFormService, JsonValidators, MessageComponent, NoneComponent, NumberComponent, OneOfComponent, OrderableDirective, RadiosComponent, RootComponent, SectionComponent, SelectCheckboxComponent, SelectComponent, SelectFrameworkComponent, SelectWidgetComponent, StopPropagationDirective, SubmitComponent, TabComponent, TabsComponent, TemplateComponent, TextareaComponent, WidgetLibraryModule, WidgetLibraryService, _executeAsyncValidators, _executeValidators, _mergeErrors, _mergeObjects, _toPromise, addClasses, buildFormGroup, buildFormGroupTemplate, buildLayout, buildLayoutFromSchema, buildSchemaFromData, buildSchemaFromLayout, buildTitleMap, checkInlineType, combineAllOf, commonItems, convertSchemaToDraft6, copy, deValidationMessages, enValidationMessages, esValidationMessages, fixRequiredArrayProperties, fixTitle, forEach, forEachCopy, formatFormData, frValidationMessages, getControl, getControlValidators, getFromSchema, getInputType, getLayoutNode, getSubSchema, getTitleMapFromOneOf, getType, hasNonNullValue, hasOwn, hasValue, inArray, isArray, isBoolean, isDate, isDefined, isEmpty, isFunction, isInputRequired, isInteger, isMap, isNumber, isObject, isObservable, isPrimitive, isPromise, isSet, isString, isType, itValidationMessages, mapLayout, mergeFilteredObject, mergeSchemas, path2ControlKey, ptValidationMessages, removeRecursiveReferences, resolveSchemaReferences, setControl, setRequiredFields, toJavaScriptType, toObservable, toSchemaType, toTitleCase, uniqueItems, updateInputOptions, xor, zhValidationMessages };
|
|
11939
|
+
export { AddReferenceComponent, BASIC_WIDGETS, ButtonComponent, CheckboxComponent, CheckboxesComponent, ElementAttributeDirective, FileComponent, Framework, FrameworkLibraryService, HiddenComponent, InputComponent, ItemTitleComponent, JsonPointer, JsonSchemaFormComponent, JsonSchemaFormModule, JsonSchemaFormService, JsonValidators, MessageComponent, NoneComponent, NumberComponent, OneOfComponent, OrderableDirective, RadiosComponent, RootComponent, SectionComponent, SelectCheckboxComponent, SelectComponent, SelectFrameworkComponent, SelectWidgetComponent, StopPropagationDirective, SubmitComponent, TabComponent, TabsComponent, TemplateComponent, TextareaComponent, WidgetLibraryModule, WidgetLibraryService, _executeAsyncValidators, _executeValidators, _mergeErrors, _mergeObjects, _toPromise, addClasses, buildFormGroup, buildFormGroupTemplate, buildLayout, buildLayoutFromSchema, buildSchemaFromData, buildSchemaFromLayout, buildTitleMap, checkInlineType, combineAllOf, commonItems, convertSchemaToDraft6, copy, deValidationMessages, enValidationMessages, esValidationMessages, fixRequiredArrayProperties, fixTitle, forEach, forEachCopy, formatFormData, frValidationMessages, getControl, getControlValidators, getFromSchema, getInputType, getLayoutNode, getSubSchema, getTitleMapFromOneOf, getType, hasNonNullValue, hasOwn, hasValue, inArray, isArray, isBoolean, isDate, isDefined, isEmpty, isFunction, isInputRequired, isInteger, isMap, isNumber, isObject, isObservable, isPrimitive, isPromise, isSet, isString, isType, itValidationMessages, mapLayout, mergeFilteredObject, mergeSchemas, path2ControlKey, ptValidationMessages, removeRecursiveReferences, resolveSchemaReferences, setControl, setRequiredFields, toJavaScriptType, toObservable, toSchemaType, toTitleCase, uniqueItems, updateInputOptions, xor, zhValidationMessages };
|
|
11744
11940
|
//# sourceMappingURL=ng-formworks-core.mjs.map
|