@gravitee/ui-particles-angular 5.3.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.component.mjs +61 -0
- package/esm2020/lib/gio-form-json-schema/gio-form-json-schema.module.mjs +94 -0
- package/esm2020/lib/gio-form-json-schema/model/FormlyJSONSchema7.mjs +2 -0
- package/esm2020/lib/gio-form-json-schema/model/GioJsonSchema.mjs +2 -0
- package/esm2020/lib/gio-form-json-schema/type-component/array-type.component.mjs +72 -0
- package/esm2020/lib/gio-form-json-schema/type-component/null-type.component.mjs +30 -0
- package/esm2020/lib/gio-form-json-schema/type-component/object-type.component.mjs +56 -0
- package/esm2020/lib/gio-form-json-schema/util/validation-message.util.mjs +34 -0
- package/esm2020/lib/public-api.mjs +4 -1
- package/fesm2015/gravitee-ui-particles-angular.mjs +332 -2
- package/fesm2015/gravitee-ui-particles-angular.mjs.map +1 -1
- package/fesm2020/gravitee-ui-particles-angular.mjs +322 -2
- package/fesm2020/gravitee-ui-particles-angular.mjs.map +1 -1
- package/lib/gio-form-json-schema/gio-form-json-schema.component.d.ts +18 -0
- package/lib/gio-form-json-schema/gio-form-json-schema.module.d.ts +14 -0
- package/lib/gio-form-json-schema/model/FormlyJSONSchema7.d.ts +13 -0
- package/lib/gio-form-json-schema/model/GioJsonSchema.d.ts +2 -0
- package/lib/gio-form-json-schema/type-component/array-type.component.d.ts +6 -0
- package/lib/gio-form-json-schema/type-component/null-type.component.d.ts +6 -0
- package/lib/gio-form-json-schema/type-component/object-type.component.d.ts +9 -0
- package/lib/gio-form-json-schema/util/validation-message.util.d.ts +14 -0
- package/lib/public-api.d.ts +3 -0
- package/package.json +3 -3
|
@@ -13,7 +13,7 @@ import { ComponentHarness, HarnessPredicate, parallel, TestKey } from '@angular/
|
|
|
13
13
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
14
14
|
import * as i3$1 from '@angular/material/form-field';
|
|
15
15
|
import { MatFormFieldControl, MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
|
16
|
-
import { isEmpty, toLower, dropRight, isNil, isArray, remove } from 'lodash';
|
|
16
|
+
import { isEmpty, toLower, dropRight, isNil, isArray, remove, isObject, cloneDeep } from 'lodash';
|
|
17
17
|
import { startWith, map, distinctUntilChanged, tap, debounce, takeUntil, delay, filter, switchMap } from 'rxjs/operators';
|
|
18
18
|
import * as i7 from '@angular/forms';
|
|
19
19
|
import { FormsModule, FormArray, FormGroup, FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -44,6 +44,10 @@ import * as i6$2 from 'ngx-file-helpers';
|
|
|
44
44
|
import { ReadMode, NgxFileHelpersModule } from 'ngx-file-helpers';
|
|
45
45
|
import { MatSelectHarness } from '@angular/material/select/testing';
|
|
46
46
|
import { toSvg } from 'jdenticon';
|
|
47
|
+
import * as i1$3 from '@ngx-formly/core/json-schema';
|
|
48
|
+
import * as i1$4 from '@ngx-formly/core';
|
|
49
|
+
import { FieldType, FieldArrayType, FormlyModule } from '@ngx-formly/core';
|
|
50
|
+
import { FormlyMaterialModule } from '@ngx-formly/material';
|
|
47
51
|
|
|
48
52
|
/*
|
|
49
53
|
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
@@ -2724,6 +2728,332 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2724
2728
|
* limitations under the License.
|
|
2725
2729
|
*/
|
|
2726
2730
|
|
|
2731
|
+
/*
|
|
2732
|
+
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
2733
|
+
*
|
|
2734
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2735
|
+
* you may not use this file except in compliance with the License.
|
|
2736
|
+
* You may obtain a copy of the License at
|
|
2737
|
+
*
|
|
2738
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2739
|
+
*
|
|
2740
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2741
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2742
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2743
|
+
* See the License for the specific language governing permissions and
|
|
2744
|
+
* limitations under the License.
|
|
2745
|
+
*/
|
|
2746
|
+
class GioFormJsonSchemaComponent {
|
|
2747
|
+
constructor(formlyJsonschema) {
|
|
2748
|
+
this.formlyJsonschema = formlyJsonschema;
|
|
2749
|
+
this.formGroup = new FormGroup({});
|
|
2750
|
+
this.options = {};
|
|
2751
|
+
this.model = {};
|
|
2752
|
+
this.fields = [];
|
|
2753
|
+
}
|
|
2754
|
+
set jsonSchema(jsonSchema) {
|
|
2755
|
+
if (isObject(jsonSchema)) {
|
|
2756
|
+
this.fields = [this.toFormlyFieldConfig(jsonSchema)];
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
set initialValue(initialValue) {
|
|
2760
|
+
if (initialValue) {
|
|
2761
|
+
this.model = cloneDeep(initialValue);
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
toFormlyFieldConfig(jsonSchema) {
|
|
2765
|
+
return this.formlyJsonschema.toFieldConfig(jsonSchema);
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
GioFormJsonSchemaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, deps: [{ token: i1$3.FormlyJsonschema }], target: i0.ɵɵFactoryTarget.Component });
|
|
2769
|
+
GioFormJsonSchemaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFormJsonSchemaComponent, selector: "gio-form-json-schema", inputs: { jsonSchema: "jsonSchema", formGroup: "formGroup", options: "options", initialValue: "initialValue" }, ngImport: i0, template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`, isInline: true, components: [{ type: i1$4.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }] });
|
|
2770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaComponent, decorators: [{
|
|
2771
|
+
type: Component,
|
|
2772
|
+
args: [{
|
|
2773
|
+
selector: 'gio-form-json-schema',
|
|
2774
|
+
template: `<formly-form [fields]="fields" [options]="options" [form]="formGroup" [model]="model"></formly-form>`,
|
|
2775
|
+
}]
|
|
2776
|
+
}], ctorParameters: function () { return [{ type: i1$3.FormlyJsonschema }]; }, propDecorators: { jsonSchema: [{
|
|
2777
|
+
type: Input
|
|
2778
|
+
}], formGroup: [{
|
|
2779
|
+
type: Input
|
|
2780
|
+
}], options: [{
|
|
2781
|
+
type: Input
|
|
2782
|
+
}], initialValue: [{
|
|
2783
|
+
type: Input
|
|
2784
|
+
}] } });
|
|
2785
|
+
|
|
2786
|
+
/*
|
|
2787
|
+
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
2788
|
+
*
|
|
2789
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2790
|
+
* you may not use this file except in compliance with the License.
|
|
2791
|
+
* You may obtain a copy of the License at
|
|
2792
|
+
*
|
|
2793
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2794
|
+
*
|
|
2795
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2796
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2797
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2798
|
+
* See the License for the specific language governing permissions and
|
|
2799
|
+
* limitations under the License.
|
|
2800
|
+
*/
|
|
2801
|
+
class GioFjsNullTypeComponent extends FieldType {
|
|
2802
|
+
}
|
|
2803
|
+
GioFjsNullTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsNullTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2804
|
+
GioFjsNullTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsNullTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
2805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsNullTypeComponent, decorators: [{
|
|
2806
|
+
type: Component,
|
|
2807
|
+
args: [{
|
|
2808
|
+
selector: 'gio-fjs-object-type',
|
|
2809
|
+
template: ``,
|
|
2810
|
+
}]
|
|
2811
|
+
}] });
|
|
2812
|
+
|
|
2813
|
+
/*
|
|
2814
|
+
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
2815
|
+
*
|
|
2816
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2817
|
+
* you may not use this file except in compliance with the License.
|
|
2818
|
+
* You may obtain a copy of the License at
|
|
2819
|
+
*
|
|
2820
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2821
|
+
*
|
|
2822
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2823
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2824
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2825
|
+
* See the License for the specific language governing permissions and
|
|
2826
|
+
* limitations under the License.
|
|
2827
|
+
*/
|
|
2828
|
+
class GioFjsObjectTypeComponent extends FieldType {
|
|
2829
|
+
constructor() {
|
|
2830
|
+
super(...arguments);
|
|
2831
|
+
this.defaultOptions = {
|
|
2832
|
+
defaultValue: {},
|
|
2833
|
+
};
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
GioFjsObjectTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2837
|
+
GioFjsObjectTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsObjectTypeComponent, selector: "gio-fjs-object-type", usesInheritance: true, ngImport: i0, template: `
|
|
2838
|
+
<div>
|
|
2839
|
+
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2840
|
+
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2841
|
+
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2842
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2843
|
+
</div>
|
|
2844
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2845
|
+
</div>
|
|
2846
|
+
`, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsObjectTypeComponent, decorators: [{
|
|
2848
|
+
type: Component,
|
|
2849
|
+
args: [{
|
|
2850
|
+
selector: 'gio-fjs-object-type',
|
|
2851
|
+
template: `
|
|
2852
|
+
<div>
|
|
2853
|
+
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2854
|
+
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2855
|
+
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2856
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2857
|
+
</div>
|
|
2858
|
+
<formly-field *ngFor="let f of field.fieldGroup" [field]="f"></formly-field>
|
|
2859
|
+
</div>
|
|
2860
|
+
`,
|
|
2861
|
+
}]
|
|
2862
|
+
}] });
|
|
2863
|
+
|
|
2864
|
+
/*
|
|
2865
|
+
* Copyright (C) 2023 The Gravitee team (http://gravitee.io)
|
|
2866
|
+
*
|
|
2867
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2868
|
+
* you may not use this file except in compliance with the License.
|
|
2869
|
+
* You may obtain a copy of the License at
|
|
2870
|
+
*
|
|
2871
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2872
|
+
*
|
|
2873
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2874
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2875
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2876
|
+
* See the License for the specific language governing permissions and
|
|
2877
|
+
* limitations under the License.
|
|
2878
|
+
*/
|
|
2879
|
+
class GioFjsArrayTypeComponent extends FieldArrayType {
|
|
2880
|
+
}
|
|
2881
|
+
GioFjsArrayTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2882
|
+
GioFjsArrayTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GioFjsArrayTypeComponent, selector: "gio-fjs-array-type", usesInheritance: true, ngImport: i0, template: `
|
|
2883
|
+
<div>
|
|
2884
|
+
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2885
|
+
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2886
|
+
|
|
2887
|
+
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2888
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2889
|
+
</div>
|
|
2890
|
+
|
|
2891
|
+
<div *ngFor="let field of field.fieldGroup; let i = index" class="row">
|
|
2892
|
+
<formly-field [field]="field"></formly-field>
|
|
2893
|
+
<div>
|
|
2894
|
+
<button class="btn btn-danger" type="button" (click)="remove(i)">-</button>
|
|
2895
|
+
</div>
|
|
2896
|
+
</div>
|
|
2897
|
+
|
|
2898
|
+
<div>
|
|
2899
|
+
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2900
|
+
</div>
|
|
2901
|
+
</div>
|
|
2902
|
+
`, isInline: true, components: [{ type: i1$4.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }, { type: i1$4.FormlyField, selector: "formly-field", inputs: ["field"] }], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFjsArrayTypeComponent, decorators: [{
|
|
2904
|
+
type: Component,
|
|
2905
|
+
args: [{
|
|
2906
|
+
selector: 'gio-fjs-array-type',
|
|
2907
|
+
template: `
|
|
2908
|
+
<div>
|
|
2909
|
+
<legend *ngIf="to.label">{{ to.label }}</legend>
|
|
2910
|
+
<p *ngIf="to.description">{{ to.description }}</p>
|
|
2911
|
+
|
|
2912
|
+
<div class="alert alert-danger" role="alert" *ngIf="showError && formControl.errors">
|
|
2913
|
+
<formly-validation-message [field]="field"></formly-validation-message>
|
|
2914
|
+
</div>
|
|
2915
|
+
|
|
2916
|
+
<div *ngFor="let field of field.fieldGroup; let i = index" class="row">
|
|
2917
|
+
<formly-field [field]="field"></formly-field>
|
|
2918
|
+
<div>
|
|
2919
|
+
<button class="btn btn-danger" type="button" (click)="remove(i)">-</button>
|
|
2920
|
+
</div>
|
|
2921
|
+
</div>
|
|
2922
|
+
|
|
2923
|
+
<div>
|
|
2924
|
+
<button class="btn btn-primary" type="button" (click)="add()">+</button>
|
|
2925
|
+
</div>
|
|
2926
|
+
</div>
|
|
2927
|
+
`,
|
|
2928
|
+
}]
|
|
2929
|
+
}] });
|
|
2930
|
+
|
|
2931
|
+
function minItemsValidationMessage(error, field) {
|
|
2932
|
+
var _a;
|
|
2933
|
+
return `Should NOT have fewer than ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.minItems} items`;
|
|
2934
|
+
}
|
|
2935
|
+
function maxItemsValidationMessage(error, field) {
|
|
2936
|
+
var _a;
|
|
2937
|
+
return `Should NOT have more than ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.maxItems} items`;
|
|
2938
|
+
}
|
|
2939
|
+
function minLengthValidationMessage(error, field) {
|
|
2940
|
+
var _a;
|
|
2941
|
+
return `Should NOT be shorter than ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.minLength} characters`;
|
|
2942
|
+
}
|
|
2943
|
+
function maxLengthValidationMessage(error, field) {
|
|
2944
|
+
var _a;
|
|
2945
|
+
return `Should NOT be longer than ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.maxLength} characters`;
|
|
2946
|
+
}
|
|
2947
|
+
function minValidationMessage(error, field) {
|
|
2948
|
+
var _a;
|
|
2949
|
+
return `Should be >= ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.min}`;
|
|
2950
|
+
}
|
|
2951
|
+
function maxValidationMessage(error, field) {
|
|
2952
|
+
var _a;
|
|
2953
|
+
return `Should be <= ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.max}`;
|
|
2954
|
+
}
|
|
2955
|
+
function multipleOfValidationMessage(error, field) {
|
|
2956
|
+
var _a;
|
|
2957
|
+
return `Should be multiple of ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.step}`;
|
|
2958
|
+
}
|
|
2959
|
+
function exclusiveMinimumValidationMessage(error, field) {
|
|
2960
|
+
var _a;
|
|
2961
|
+
return `Should be > ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.step}`;
|
|
2962
|
+
}
|
|
2963
|
+
function exclusiveMaximumValidationMessage(error, field) {
|
|
2964
|
+
var _a;
|
|
2965
|
+
return `Should be < ${(_a = field.props) === null || _a === void 0 ? void 0 : _a.step}`;
|
|
2966
|
+
}
|
|
2967
|
+
function constValidationMessage(error, field) {
|
|
2968
|
+
var _a;
|
|
2969
|
+
return `Should be equal to constant "${(_a = field.props) === null || _a === void 0 ? void 0 : _a.const}"`;
|
|
2970
|
+
}
|
|
2971
|
+
function typeValidationMessage({ schemaType }) {
|
|
2972
|
+
return `Should be "${schemaType[0]}".`;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
/*
|
|
2976
|
+
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
|
|
2977
|
+
*
|
|
2978
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2979
|
+
* you may not use this file except in compliance with the License.
|
|
2980
|
+
* You may obtain a copy of the License at
|
|
2981
|
+
*
|
|
2982
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2983
|
+
*
|
|
2984
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2985
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2986
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2987
|
+
* See the License for the specific language governing permissions and
|
|
2988
|
+
* limitations under the License.
|
|
2989
|
+
*/
|
|
2990
|
+
class GioFormJsonSchemaModule {
|
|
2991
|
+
}
|
|
2992
|
+
GioFormJsonSchemaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2993
|
+
GioFormJsonSchemaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, declarations: [GioFormJsonSchemaComponent, GioFjsNullTypeComponent, GioFjsObjectTypeComponent, GioFjsArrayTypeComponent], imports: [CommonModule,
|
|
2994
|
+
ReactiveFormsModule, i1$4.FormlyModule, FormlyMaterialModule], exports: [GioFormJsonSchemaComponent, FormlyModule] });
|
|
2995
|
+
GioFormJsonSchemaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, imports: [[
|
|
2996
|
+
CommonModule,
|
|
2997
|
+
ReactiveFormsModule,
|
|
2998
|
+
FormlyModule.forRoot({
|
|
2999
|
+
validationMessages: [
|
|
3000
|
+
{ name: 'required', message: 'This field is required' },
|
|
3001
|
+
{ name: 'type', message: typeValidationMessage },
|
|
3002
|
+
{ name: 'minLength', message: minLengthValidationMessage },
|
|
3003
|
+
{ name: 'maxLength', message: maxLengthValidationMessage },
|
|
3004
|
+
{ name: 'min', message: minValidationMessage },
|
|
3005
|
+
{ name: 'max', message: maxValidationMessage },
|
|
3006
|
+
{ name: 'multipleOf', message: multipleOfValidationMessage },
|
|
3007
|
+
{ name: 'exclusiveMinimum', message: exclusiveMinimumValidationMessage },
|
|
3008
|
+
{ name: 'exclusiveMaximum', message: exclusiveMaximumValidationMessage },
|
|
3009
|
+
{ name: 'minItems', message: minItemsValidationMessage },
|
|
3010
|
+
{ name: 'maxItems', message: maxItemsValidationMessage },
|
|
3011
|
+
{ name: 'uniqueItems', message: 'Should NOT have duplicate items' },
|
|
3012
|
+
{ name: 'const', message: constValidationMessage },
|
|
3013
|
+
],
|
|
3014
|
+
types: [
|
|
3015
|
+
{ name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
|
|
3016
|
+
{ name: 'array', component: GioFjsArrayTypeComponent },
|
|
3017
|
+
{ name: 'object', component: GioFjsObjectTypeComponent },
|
|
3018
|
+
],
|
|
3019
|
+
}),
|
|
3020
|
+
FormlyMaterialModule,
|
|
3021
|
+
], FormlyModule] });
|
|
3022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GioFormJsonSchemaModule, decorators: [{
|
|
3023
|
+
type: NgModule,
|
|
3024
|
+
args: [{
|
|
3025
|
+
declarations: [GioFormJsonSchemaComponent, GioFjsNullTypeComponent, GioFjsObjectTypeComponent, GioFjsArrayTypeComponent],
|
|
3026
|
+
imports: [
|
|
3027
|
+
CommonModule,
|
|
3028
|
+
ReactiveFormsModule,
|
|
3029
|
+
FormlyModule.forRoot({
|
|
3030
|
+
validationMessages: [
|
|
3031
|
+
{ name: 'required', message: 'This field is required' },
|
|
3032
|
+
{ name: 'type', message: typeValidationMessage },
|
|
3033
|
+
{ name: 'minLength', message: minLengthValidationMessage },
|
|
3034
|
+
{ name: 'maxLength', message: maxLengthValidationMessage },
|
|
3035
|
+
{ name: 'min', message: minValidationMessage },
|
|
3036
|
+
{ name: 'max', message: maxValidationMessage },
|
|
3037
|
+
{ name: 'multipleOf', message: multipleOfValidationMessage },
|
|
3038
|
+
{ name: 'exclusiveMinimum', message: exclusiveMinimumValidationMessage },
|
|
3039
|
+
{ name: 'exclusiveMaximum', message: exclusiveMaximumValidationMessage },
|
|
3040
|
+
{ name: 'minItems', message: minItemsValidationMessage },
|
|
3041
|
+
{ name: 'maxItems', message: maxItemsValidationMessage },
|
|
3042
|
+
{ name: 'uniqueItems', message: 'Should NOT have duplicate items' },
|
|
3043
|
+
{ name: 'const', message: constValidationMessage },
|
|
3044
|
+
],
|
|
3045
|
+
types: [
|
|
3046
|
+
{ name: 'null', component: GioFjsNullTypeComponent, wrappers: ['form-field'] },
|
|
3047
|
+
{ name: 'array', component: GioFjsArrayTypeComponent },
|
|
3048
|
+
{ name: 'object', component: GioFjsObjectTypeComponent },
|
|
3049
|
+
],
|
|
3050
|
+
}),
|
|
3051
|
+
FormlyMaterialModule,
|
|
3052
|
+
],
|
|
3053
|
+
exports: [GioFormJsonSchemaComponent, FormlyModule],
|
|
3054
|
+
}]
|
|
3055
|
+
}] });
|
|
3056
|
+
|
|
2727
3057
|
/*
|
|
2728
3058
|
* Copyright (C) 2021 The Gravitee team (http://gravitee.io)
|
|
2729
3059
|
*
|
|
@@ -2760,5 +3090,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2760
3090
|
* Generated bundle index. Do not edit.
|
|
2761
3091
|
*/
|
|
2762
3092
|
|
|
2763
|
-
export { GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuListComponent, GioMenuModule, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, NewFile };
|
|
3093
|
+
export { GioAvatarComponent, GioAvatarModule, GioBannerActionDirective, GioBannerBodyDirective, GioBannerComponent, GioBannerErrorComponent, GioBannerInfoComponent, GioBannerModule, GioBannerSuccessComponent, GioBannerWarningComponent, GioBreadcrumbComponent, GioBreadcrumbItemDirective, GioBreadcrumbModule, GioConfirmAndValidateDialogComponent, GioConfirmAndValidateDialogHarness, GioConfirmAndValidateDialogModule, GioConfirmDialogComponent, GioConfirmDialogHarness, GioConfirmDialogModule, GioFormFilePickerAddButtonComponent, GioFormFilePickerComponent, GioFormFilePickerEmptyComponent, GioFormFilePickerInputHarness, GioFormFilePickerLabelComponent, GioFormFilePickerModule, GioFormHeadersComponent, GioFormHeadersHarness, GioFormHeadersModule, GioFormJsonSchemaComponent, GioFormJsonSchemaModule, GioFormTagsInputComponent, GioFormTagsInputHarness, GioFormTagsInputModule, GioIconsModule, GioMatConfigModule, GioMenuComponent, GioMenuFooterComponent, GioMenuHeaderComponent, GioMenuItemComponent, GioMenuListComponent, GioMenuModule, GioMenuSelectorComponent, GioMenuSelectorHarness, GioMenuService, GioSaveBarComponent, GioSaveBarHarness, GioSaveBarModule, GioSubmenuComponent, GioSubmenuGroupComponent, GioSubmenuItemComponent, GioSubmenuModule, GioSubmenuTitleDirective, GioTopBarComponent, GioTopBarContentComponent, GioTopBarLinkComponent, GioTopBarLinkModule, GioTopBarMenuComponent, GioTopBarMenuModule, GioTopBarModule, NewFile };
|
|
2764
3094
|
//# sourceMappingURL=gravitee-ui-particles-angular.mjs.map
|