@apipass/schemas 0.2.15 → 1.0.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/README.md +33 -33
- package/assets/css/buttons.scss +118 -118
- package/assets/css/colors.scss +34 -34
- package/assets/css/fonts.scss +24 -24
- package/assets/css/inputs.scss +197 -197
- package/assets/css/pt_sans.scss +143 -143
- package/assets/css/spacing.scss +28 -28
- package/assets/css/texts.scss +18 -18
- package/base-schema.component.d.ts +12 -12
- package/{esm2015/apipass-schemas.js → esm2020/apipass-schemas.mjs} +4 -4
- package/esm2020/base-schema.component.mjs +38 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +17 -17
- package/esm2020/schema-custom-attributes/schema-custom-attributes.mjs +169 -0
- package/esm2020/schema-fields.service.mjs +82 -0
- package/esm2020/schema-form/schema-array/array-session/array-session.mjs +143 -0
- package/esm2020/schema-form/schema-array/schema-array.mjs +220 -0
- package/esm2020/schema-form/schema-form.mjs +107 -0
- package/esm2020/schema-form/schema-input/field-render/field-render.mjs +69 -0
- package/esm2020/schema-form/schema-input/input-render/boolean-input/boolean-input.component.mjs +46 -0
- package/esm2020/schema-form/schema-input/input-render/input-render.mjs +192 -0
- package/esm2020/schema-form/schema-input/input-render/number-input/number-input.component.mjs +44 -0
- package/esm2020/schema-form/schema-input/schema-input.mjs +96 -0
- package/esm2020/schema-form/schema-object/schema-object.mjs +123 -0
- package/esm2020/schema-form-render.mjs +126 -0
- package/esm2020/schema-form-render.module.mjs +108 -0
- package/esm2020/schema-validation-field.mjs +14 -0
- package/{esm2015/struct.utils.js → esm2020/struct.utils.mjs} +9 -9
- package/esm2020/type-script-compile/type-script-compile.base.mjs +112 -0
- package/fesm2015/apipass-schemas.mjs +1803 -0
- package/fesm2015/apipass-schemas.mjs.map +1 -0
- package/fesm2020/apipass-schemas.mjs +1618 -0
- package/fesm2020/apipass-schemas.mjs.map +1 -0
- package/{apipass-schemas.d.ts → index.d.ts} +5 -5
- package/package.json +32 -19
- package/public-api.d.ts +16 -16
- package/schema-custom-attributes/schema-custom-attributes.d.ts +21 -21
- package/schema-fields.service.d.ts +15 -15
- package/schema-form/schema-array/array-session/array-session.d.ts +19 -19
- package/schema-form/schema-array/schema-array.d.ts +32 -32
- package/schema-form/schema-form.d.ts +31 -31
- package/schema-form/schema-input/field-render/field-render.d.ts +16 -16
- package/schema-form/schema-input/input-render/boolean-input/boolean-input.component.d.ts +15 -15
- package/schema-form/schema-input/input-render/input-render.d.ts +29 -29
- package/schema-form/schema-input/input-render/number-input/number-input.component.d.ts +15 -15
- package/schema-form/schema-input/schema-input.d.ts +19 -19
- package/schema-form/schema-object/schema-object.d.ts +34 -34
- package/schema-form-render.d.ts +31 -31
- package/schema-form-render.module.d.ts +23 -22
- package/schema-validation-field.d.ts +23 -23
- package/struct.utils.d.ts +1 -1
- package/type-script-compile/type-script-compile.base.d.ts +17 -17
- package/bundles/apipass-schemas.umd.js +0 -2312
- package/bundles/apipass-schemas.umd.js.map +0 -1
- package/bundles/apipass-schemas.umd.min.js +0 -16
- package/bundles/apipass-schemas.umd.min.js.map +0 -1
- package/esm2015/base-schema.component.js +0 -38
- package/esm2015/schema-custom-attributes/schema-custom-attributes.js +0 -192
- package/esm2015/schema-fields.service.js +0 -87
- package/esm2015/schema-form/schema-array/array-session/array-session.js +0 -161
- package/esm2015/schema-form/schema-array/schema-array.js +0 -234
- package/esm2015/schema-form/schema-form.js +0 -114
- package/esm2015/schema-form/schema-input/field-render/field-render.js +0 -74
- package/esm2015/schema-form/schema-input/input-render/boolean-input/boolean-input.component.js +0 -50
- package/esm2015/schema-form/schema-input/input-render/input-render.js +0 -179
- package/esm2015/schema-form/schema-input/input-render/number-input/number-input.component.js +0 -48
- package/esm2015/schema-form/schema-input/schema-input.js +0 -111
- package/esm2015/schema-form/schema-object/schema-object.js +0 -134
- package/esm2015/schema-form-render.js +0 -136
- package/esm2015/schema-form-render.module.js +0 -124
- package/esm2015/schema-validation-field.js +0 -15
- package/esm2015/type-script-compile/type-script-compile.base.js +0 -112
- package/fesm2015/apipass-schemas.js +0 -1725
- package/fesm2015/apipass-schemas.js.map +0 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SchemaArrayComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
requiredLabel: string;
|
|
7
|
-
addItemLabel: string;
|
|
8
|
-
addLoopLabel: string;
|
|
9
|
-
additionalAttributesLabel: string;
|
|
10
|
-
customAttributeRemoveLabel: string;
|
|
11
|
-
newCustomFieldNameLabel: string;
|
|
12
|
-
newCustomFieldValueLabel: string;
|
|
13
|
-
newCustomFieldAddLabel: string;
|
|
14
|
-
newCustomFieldSaveLabel: string;
|
|
15
|
-
newCustomFieldCancelLabel: string;
|
|
16
|
-
selectPlaceHolderLabel: string;
|
|
17
|
-
selectSearchPlaceHolderLabel: string;
|
|
18
|
-
selectClearLabel: string;
|
|
19
|
-
selectNotFoundLabel: string;
|
|
20
|
-
idPrefix: string | undefined;
|
|
21
|
-
schema: any;
|
|
22
|
-
editing: boolean;
|
|
23
|
-
index: number | undefined;
|
|
24
|
-
loaded: boolean | undefined;
|
|
25
|
-
ngAfterContentInit(): void;
|
|
26
|
-
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
27
|
-
getId(index: any): string;
|
|
28
|
-
addArrayItem(id: any, param: any): void;
|
|
29
|
-
addArrayLoop(id: any, mappingAttributes: any): void;
|
|
30
|
-
static ɵfac: i0.ɵɵ
|
|
31
|
-
static ɵcmp: i0.ɵɵ
|
|
32
|
-
}
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SchemaArrayComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
requiredLabel: string;
|
|
7
|
+
addItemLabel: string;
|
|
8
|
+
addLoopLabel: string;
|
|
9
|
+
additionalAttributesLabel: string;
|
|
10
|
+
customAttributeRemoveLabel: string;
|
|
11
|
+
newCustomFieldNameLabel: string;
|
|
12
|
+
newCustomFieldValueLabel: string;
|
|
13
|
+
newCustomFieldAddLabel: string;
|
|
14
|
+
newCustomFieldSaveLabel: string;
|
|
15
|
+
newCustomFieldCancelLabel: string;
|
|
16
|
+
selectPlaceHolderLabel: string;
|
|
17
|
+
selectSearchPlaceHolderLabel: string;
|
|
18
|
+
selectClearLabel: string;
|
|
19
|
+
selectNotFoundLabel: string;
|
|
20
|
+
idPrefix: string | undefined;
|
|
21
|
+
schema: any;
|
|
22
|
+
editing: boolean;
|
|
23
|
+
index: number | undefined;
|
|
24
|
+
loaded: boolean | undefined;
|
|
25
|
+
ngAfterContentInit(): void;
|
|
26
|
+
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
27
|
+
getId(index: any): string;
|
|
28
|
+
addArrayItem(id: any, param: any): void;
|
|
29
|
+
addArrayLoop(id: any, mappingAttributes: any): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaArrayComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaArrayComponent, "schema-array", never, { "requiredLabel": "requiredLabel"; "addItemLabel": "addItemLabel"; "addLoopLabel": "addLoopLabel"; "additionalAttributesLabel": "additionalAttributesLabel"; "customAttributeRemoveLabel": "customAttributeRemoveLabel"; "newCustomFieldNameLabel": "newCustomFieldNameLabel"; "newCustomFieldValueLabel": "newCustomFieldValueLabel"; "newCustomFieldAddLabel": "newCustomFieldAddLabel"; "newCustomFieldSaveLabel": "newCustomFieldSaveLabel"; "newCustomFieldCancelLabel": "newCustomFieldCancelLabel"; "selectPlaceHolderLabel": "selectPlaceHolderLabel"; "selectSearchPlaceHolderLabel": "selectSearchPlaceHolderLabel"; "selectClearLabel": "selectClearLabel"; "selectNotFoundLabel": "selectNotFoundLabel"; "idPrefix": "idPrefix"; "schema": "schema"; "editing": "editing"; "index": "index"; }, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SchemaFormComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
requiredLabel: string;
|
|
7
|
-
addItemLabel: string;
|
|
8
|
-
addLoopLabel: string;
|
|
9
|
-
additionalAttributesLabel: string;
|
|
10
|
-
customAttributeRemoveLabel: string;
|
|
11
|
-
newCustomFieldNameLabel: string;
|
|
12
|
-
newCustomFieldValueLabel: string;
|
|
13
|
-
newCustomFieldAddLabel: string;
|
|
14
|
-
newCustomFieldSaveLabel: string;
|
|
15
|
-
newCustomFieldCancelLabel: string;
|
|
16
|
-
selectPlaceHolderLabel: string;
|
|
17
|
-
selectSearchPlaceHolderLabel: string;
|
|
18
|
-
selectClearLabel: string;
|
|
19
|
-
selectNotFoundLabel: string;
|
|
20
|
-
idPrefix: string | undefined;
|
|
21
|
-
schemas: never[];
|
|
22
|
-
customProperties: boolean;
|
|
23
|
-
editing: boolean;
|
|
24
|
-
inputType: string | undefined;
|
|
25
|
-
loaded: boolean;
|
|
26
|
-
ngAfterContentInit(): void;
|
|
27
|
-
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
28
|
-
getId(index: number): string;
|
|
29
|
-
static ɵfac: i0.ɵɵ
|
|
30
|
-
static ɵcmp: i0.ɵɵ
|
|
31
|
-
}
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SchemaFormComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
requiredLabel: string;
|
|
7
|
+
addItemLabel: string;
|
|
8
|
+
addLoopLabel: string;
|
|
9
|
+
additionalAttributesLabel: string;
|
|
10
|
+
customAttributeRemoveLabel: string;
|
|
11
|
+
newCustomFieldNameLabel: string;
|
|
12
|
+
newCustomFieldValueLabel: string;
|
|
13
|
+
newCustomFieldAddLabel: string;
|
|
14
|
+
newCustomFieldSaveLabel: string;
|
|
15
|
+
newCustomFieldCancelLabel: string;
|
|
16
|
+
selectPlaceHolderLabel: string;
|
|
17
|
+
selectSearchPlaceHolderLabel: string;
|
|
18
|
+
selectClearLabel: string;
|
|
19
|
+
selectNotFoundLabel: string;
|
|
20
|
+
idPrefix: string | undefined;
|
|
21
|
+
schemas: never[];
|
|
22
|
+
customProperties: boolean;
|
|
23
|
+
editing: boolean;
|
|
24
|
+
inputType: string | undefined;
|
|
25
|
+
loaded: boolean;
|
|
26
|
+
ngAfterContentInit(): void;
|
|
27
|
+
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
28
|
+
getId(index: number): string;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaFormComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaFormComponent, "schema-form", never, { "requiredLabel": "requiredLabel"; "addItemLabel": "addItemLabel"; "addLoopLabel": "addLoopLabel"; "additionalAttributesLabel": "additionalAttributesLabel"; "customAttributeRemoveLabel": "customAttributeRemoveLabel"; "newCustomFieldNameLabel": "newCustomFieldNameLabel"; "newCustomFieldValueLabel": "newCustomFieldValueLabel"; "newCustomFieldAddLabel": "newCustomFieldAddLabel"; "newCustomFieldSaveLabel": "newCustomFieldSaveLabel"; "newCustomFieldCancelLabel": "newCustomFieldCancelLabel"; "selectPlaceHolderLabel": "selectPlaceHolderLabel"; "selectSearchPlaceHolderLabel": "selectSearchPlaceHolderLabel"; "selectClearLabel": "selectClearLabel"; "selectNotFoundLabel": "selectNotFoundLabel"; "idPrefix": "idPrefix"; "schemas": "schemas"; "customProperties": "customProperties"; "editing": "editing"; "inputType": "inputType"; }, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FieldRenderComponent {
|
|
4
|
-
requiredLabel: string;
|
|
5
|
-
label: string;
|
|
6
|
-
inputId: string | undefined;
|
|
7
|
-
tooltip: string | undefined;
|
|
8
|
-
required: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Estado do input no formulário para validar quando
|
|
11
|
-
* é necessário exibir as mensagens de erro.
|
|
12
|
-
*/
|
|
13
|
-
state: FormControl | undefined;
|
|
14
|
-
static ɵfac: i0.ɵɵ
|
|
15
|
-
static ɵcmp: i0.ɵɵ
|
|
16
|
-
}
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FieldRenderComponent {
|
|
4
|
+
requiredLabel: string;
|
|
5
|
+
label: string;
|
|
6
|
+
inputId: string | undefined;
|
|
7
|
+
tooltip: string | undefined;
|
|
8
|
+
required: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Estado do input no formulário para validar quando
|
|
11
|
+
* é necessário exibir as mensagens de erro.
|
|
12
|
+
*/
|
|
13
|
+
state: FormControl | undefined;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldRenderComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldRenderComponent, "field-render", never, { "requiredLabel": "requiredLabel"; "label": "label"; "inputId": "inputId"; "tooltip": "tooltip"; "required": "required"; "state": "state"; }, {}, never, ["*"], false, never>;
|
|
16
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../../../../base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BooleanInputComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
placeholder: string | undefined;
|
|
7
|
-
inputId: string | undefined;
|
|
8
|
-
maxLength: any;
|
|
9
|
-
value: string | undefined;
|
|
10
|
-
ngAfterContentInit(): void;
|
|
11
|
-
onDropCallBack($event: DndDropEvent, value: any): void;
|
|
12
|
-
changeValue($event: any): void;
|
|
13
|
-
static ɵfac: i0.ɵɵ
|
|
14
|
-
static ɵcmp: i0.ɵɵ
|
|
15
|
-
}
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../../../base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BooleanInputComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
placeholder: string | undefined;
|
|
7
|
+
inputId: string | undefined;
|
|
8
|
+
maxLength: any;
|
|
9
|
+
value: string | undefined;
|
|
10
|
+
ngAfterContentInit(): void;
|
|
11
|
+
onDropCallBack($event: DndDropEvent, value: any): void;
|
|
12
|
+
changeValue($event: any): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanInputComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanInputComponent, "boolean-input", never, { "placeholder": "placeholder"; "inputId": "inputId"; "maxLength": "maxLength"; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../../../base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class InputRenderComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
selectPlaceHolderLabel: string;
|
|
7
|
-
selectSearchPlaceHolderLabel: string;
|
|
8
|
-
selectClearLabel: string;
|
|
9
|
-
selectNotFoundLabel: string;
|
|
10
|
-
schema: any;
|
|
11
|
-
modelPropertiesPath: string | undefined;
|
|
12
|
-
inputId: string | undefined;
|
|
13
|
-
editing: boolean;
|
|
14
|
-
onDropEvent: EventEmitter<{
|
|
15
|
-
$event: DndDropEvent;
|
|
16
|
-
modelElement: any;
|
|
17
|
-
}>;
|
|
18
|
-
value: any;
|
|
19
|
-
ngAfterContentInit(): void;
|
|
20
|
-
onDropCallBack($event: DndDropEvent, value: any): void;
|
|
21
|
-
onChange($event: any): void;
|
|
22
|
-
onInputBlur(): void;
|
|
23
|
-
savePassword(): void;
|
|
24
|
-
cancelEditPassword(): void;
|
|
25
|
-
editPassword(): void;
|
|
26
|
-
setReadOnlyPassword(value: boolean): void;
|
|
27
|
-
static ɵfac: i0.ɵɵ
|
|
28
|
-
static ɵcmp: i0.ɵɵ
|
|
29
|
-
}
|
|
1
|
+
import { AfterContentInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../../base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputRenderComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
selectPlaceHolderLabel: string;
|
|
7
|
+
selectSearchPlaceHolderLabel: string;
|
|
8
|
+
selectClearLabel: string;
|
|
9
|
+
selectNotFoundLabel: string;
|
|
10
|
+
schema: any;
|
|
11
|
+
modelPropertiesPath: string | undefined;
|
|
12
|
+
inputId: string | undefined;
|
|
13
|
+
editing: boolean;
|
|
14
|
+
onDropEvent: EventEmitter<{
|
|
15
|
+
$event: DndDropEvent;
|
|
16
|
+
modelElement: any;
|
|
17
|
+
}>;
|
|
18
|
+
value: any;
|
|
19
|
+
ngAfterContentInit(): void;
|
|
20
|
+
onDropCallBack($event: DndDropEvent, value: any): void;
|
|
21
|
+
onChange($event: any): void;
|
|
22
|
+
onInputBlur(): void;
|
|
23
|
+
savePassword(): void;
|
|
24
|
+
cancelEditPassword(): void;
|
|
25
|
+
editPassword(): void;
|
|
26
|
+
setReadOnlyPassword(value: boolean): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputRenderComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputRenderComponent, "input-render", never, { "selectPlaceHolderLabel": "selectPlaceHolderLabel"; "selectSearchPlaceHolderLabel": "selectSearchPlaceHolderLabel"; "selectClearLabel": "selectClearLabel"; "selectNotFoundLabel": "selectNotFoundLabel"; "schema": "schema"; "modelPropertiesPath": "modelPropertiesPath"; "inputId": "inputId"; "editing": "editing"; }, { "onDropEvent": "onDropEvent"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../../../../base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
placeholder: string | undefined;
|
|
7
|
-
inputId: string | undefined;
|
|
8
|
-
maxLength: any;
|
|
9
|
-
value: string | undefined;
|
|
10
|
-
ngAfterContentInit(): void;
|
|
11
|
-
onDropCallBack($event: DndDropEvent, value: any): void;
|
|
12
|
-
changeValue($event: any): void;
|
|
13
|
-
static ɵfac: i0.ɵɵ
|
|
14
|
-
static ɵcmp: i0.ɵɵ
|
|
15
|
-
}
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../../../base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
placeholder: string | undefined;
|
|
7
|
+
inputId: string | undefined;
|
|
8
|
+
maxLength: any;
|
|
9
|
+
value: string | undefined;
|
|
10
|
+
ngAfterContentInit(): void;
|
|
11
|
+
onDropCallBack($event: DndDropEvent, value: any): void;
|
|
12
|
+
changeValue($event: any): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "number-input", never, { "placeholder": "placeholder"; "inputId": "inputId"; "maxLength": "maxLength"; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SchemaInputComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
5
|
-
requiredLabel: string;
|
|
6
|
-
selectPlaceHolderLabel: string;
|
|
7
|
-
selectSearchPlaceHolderLabel: string;
|
|
8
|
-
selectClearLabel: string;
|
|
9
|
-
selectNotFoundLabel: string;
|
|
10
|
-
idPrefix: string | undefined;
|
|
11
|
-
schema: any;
|
|
12
|
-
editing: boolean;
|
|
13
|
-
index: number | undefined;
|
|
14
|
-
loaded: boolean | undefined;
|
|
15
|
-
ngAfterContentInit(): void;
|
|
16
|
-
getId(index: any): string;
|
|
17
|
-
static ɵfac: i0.ɵɵ
|
|
18
|
-
static ɵcmp: i0.ɵɵ
|
|
19
|
-
}
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SchemaInputComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
5
|
+
requiredLabel: string;
|
|
6
|
+
selectPlaceHolderLabel: string;
|
|
7
|
+
selectSearchPlaceHolderLabel: string;
|
|
8
|
+
selectClearLabel: string;
|
|
9
|
+
selectNotFoundLabel: string;
|
|
10
|
+
idPrefix: string | undefined;
|
|
11
|
+
schema: any;
|
|
12
|
+
editing: boolean;
|
|
13
|
+
index: number | undefined;
|
|
14
|
+
loaded: boolean | undefined;
|
|
15
|
+
ngAfterContentInit(): void;
|
|
16
|
+
getId(index: any): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaInputComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaInputComponent, "schema-input", never, { "requiredLabel": "requiredLabel"; "selectPlaceHolderLabel": "selectPlaceHolderLabel"; "selectSearchPlaceHolderLabel": "selectSearchPlaceHolderLabel"; "selectClearLabel": "selectClearLabel"; "selectNotFoundLabel": "selectNotFoundLabel"; "idPrefix": "idPrefix"; "schema": "schema"; "editing": "editing"; "index": "index"; }, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SchemaObjectComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
requiredLabel: string;
|
|
7
|
-
addItemLabel: string;
|
|
8
|
-
addLoopLabel: string;
|
|
9
|
-
additionalAttributesLabel: string;
|
|
10
|
-
customAttributeRemoveLabel: string;
|
|
11
|
-
newCustomFieldNameLabel: string;
|
|
12
|
-
newCustomFieldValueLabel: string;
|
|
13
|
-
newCustomFieldAddLabel: string;
|
|
14
|
-
newCustomFieldSaveLabel: string;
|
|
15
|
-
newCustomFieldCancelLabel: string;
|
|
16
|
-
selectPlaceHolderLabel: string;
|
|
17
|
-
selectSearchPlaceHolderLabel: string;
|
|
18
|
-
selectClearLabel: string;
|
|
19
|
-
selectNotFoundLabel: string;
|
|
20
|
-
idPrefix: string | undefined;
|
|
21
|
-
modelPropertiesPath: string | undefined;
|
|
22
|
-
inputId: string | undefined;
|
|
23
|
-
editing: boolean;
|
|
24
|
-
index: number | undefined;
|
|
25
|
-
onDropEvent: EventEmitter<{
|
|
26
|
-
$event: DndDropEvent;
|
|
27
|
-
modelElement: any;
|
|
28
|
-
}>;
|
|
29
|
-
loaded: boolean;
|
|
30
|
-
ngAfterContentInit(): void;
|
|
31
|
-
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
32
|
-
static ɵfac: i0.ɵɵ
|
|
33
|
-
static ɵcmp: i0.ɵɵ
|
|
34
|
-
}
|
|
1
|
+
import { AfterContentInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from '../../base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SchemaObjectComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
requiredLabel: string;
|
|
7
|
+
addItemLabel: string;
|
|
8
|
+
addLoopLabel: string;
|
|
9
|
+
additionalAttributesLabel: string;
|
|
10
|
+
customAttributeRemoveLabel: string;
|
|
11
|
+
newCustomFieldNameLabel: string;
|
|
12
|
+
newCustomFieldValueLabel: string;
|
|
13
|
+
newCustomFieldAddLabel: string;
|
|
14
|
+
newCustomFieldSaveLabel: string;
|
|
15
|
+
newCustomFieldCancelLabel: string;
|
|
16
|
+
selectPlaceHolderLabel: string;
|
|
17
|
+
selectSearchPlaceHolderLabel: string;
|
|
18
|
+
selectClearLabel: string;
|
|
19
|
+
selectNotFoundLabel: string;
|
|
20
|
+
idPrefix: string | undefined;
|
|
21
|
+
modelPropertiesPath: string | undefined;
|
|
22
|
+
inputId: string | undefined;
|
|
23
|
+
editing: boolean;
|
|
24
|
+
index: number | undefined;
|
|
25
|
+
onDropEvent: EventEmitter<{
|
|
26
|
+
$event: DndDropEvent;
|
|
27
|
+
modelElement: any;
|
|
28
|
+
}>;
|
|
29
|
+
loaded: boolean;
|
|
30
|
+
ngAfterContentInit(): void;
|
|
31
|
+
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaObjectComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaObjectComponent, "schema-object", never, { "requiredLabel": "requiredLabel"; "addItemLabel": "addItemLabel"; "addLoopLabel": "addLoopLabel"; "additionalAttributesLabel": "additionalAttributesLabel"; "customAttributeRemoveLabel": "customAttributeRemoveLabel"; "newCustomFieldNameLabel": "newCustomFieldNameLabel"; "newCustomFieldValueLabel": "newCustomFieldValueLabel"; "newCustomFieldAddLabel": "newCustomFieldAddLabel"; "newCustomFieldSaveLabel": "newCustomFieldSaveLabel"; "newCustomFieldCancelLabel": "newCustomFieldCancelLabel"; "selectPlaceHolderLabel": "selectPlaceHolderLabel"; "selectSearchPlaceHolderLabel": "selectSearchPlaceHolderLabel"; "selectClearLabel": "selectClearLabel"; "selectNotFoundLabel": "selectNotFoundLabel"; "idPrefix": "idPrefix"; "modelPropertiesPath": "modelPropertiesPath"; "inputId": "inputId"; "editing": "editing"; "index": "index"; }, { "onDropEvent": "onDropEvent"; }, never, never, false, never>;
|
|
34
|
+
}
|
package/schema-form-render.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { AfterContentInit } from '@angular/core';
|
|
2
|
-
import { BaseSchemaComponent } from './base-schema.component';
|
|
3
|
-
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SchemaFormRenderComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
-
requiredLabel: string;
|
|
7
|
-
addItemLabel: string;
|
|
8
|
-
addLoopLabel: string;
|
|
9
|
-
additionalAttributesLabel: string;
|
|
10
|
-
customAttributeRemoveLabel: string;
|
|
11
|
-
newCustomFieldNameLabel: string;
|
|
12
|
-
newCustomFieldValueLabel: string;
|
|
13
|
-
newCustomFieldAddLabel: string;
|
|
14
|
-
newCustomFieldSaveLabel: string;
|
|
15
|
-
newCustomFieldCancelLabel: string;
|
|
16
|
-
selectPlaceHolderLabel: string;
|
|
17
|
-
selectSearchPlaceHolderLabel: string;
|
|
18
|
-
selectClearLabel: string;
|
|
19
|
-
selectNotFoundLabel: string;
|
|
20
|
-
idPrefix: string | undefined;
|
|
21
|
-
schemas: never[];
|
|
22
|
-
customProperties: boolean;
|
|
23
|
-
editing: boolean;
|
|
24
|
-
inputType: string | undefined;
|
|
25
|
-
loaded: boolean;
|
|
26
|
-
ngAfterContentInit(): void;
|
|
27
|
-
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
28
|
-
getId(index: number): string;
|
|
29
|
-
static ɵfac: i0.ɵɵ
|
|
30
|
-
static ɵcmp: i0.ɵɵ
|
|
31
|
-
}
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import { BaseSchemaComponent } from './base-schema.component';
|
|
3
|
+
import { DndDropEvent } from 'ngx-drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SchemaFormRenderComponent extends BaseSchemaComponent implements AfterContentInit {
|
|
6
|
+
requiredLabel: string;
|
|
7
|
+
addItemLabel: string;
|
|
8
|
+
addLoopLabel: string;
|
|
9
|
+
additionalAttributesLabel: string;
|
|
10
|
+
customAttributeRemoveLabel: string;
|
|
11
|
+
newCustomFieldNameLabel: string;
|
|
12
|
+
newCustomFieldValueLabel: string;
|
|
13
|
+
newCustomFieldAddLabel: string;
|
|
14
|
+
newCustomFieldSaveLabel: string;
|
|
15
|
+
newCustomFieldCancelLabel: string;
|
|
16
|
+
selectPlaceHolderLabel: string;
|
|
17
|
+
selectSearchPlaceHolderLabel: string;
|
|
18
|
+
selectClearLabel: string;
|
|
19
|
+
selectNotFoundLabel: string;
|
|
20
|
+
idPrefix: string | undefined;
|
|
21
|
+
schemas: never[];
|
|
22
|
+
customProperties: boolean;
|
|
23
|
+
editing: boolean;
|
|
24
|
+
inputType: string | undefined;
|
|
25
|
+
loaded: boolean;
|
|
26
|
+
ngAfterContentInit(): void;
|
|
27
|
+
onDrop($event: DndDropEvent, modelElement: any): any;
|
|
28
|
+
getId(index: number): string;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaFormRenderComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaFormRenderComponent, "schema-form-render", never, { "requiredLabel": "requiredLabel"; "addItemLabel": "addItemLabel"; "addLoopLabel": "addLoopLabel"; "additionalAttributesLabel": "additionalAttributesLabel"; "customAttributeRemoveLabel": "customAttributeRemoveLabel"; "newCustomFieldNameLabel": "newCustomFieldNameLabel"; "newCustomFieldValueLabel": "newCustomFieldValueLabel"; "newCustomFieldAddLabel": "newCustomFieldAddLabel"; "newCustomFieldSaveLabel": "newCustomFieldSaveLabel"; "newCustomFieldCancelLabel": "newCustomFieldCancelLabel"; "selectPlaceHolderLabel": "selectPlaceHolderLabel"; "selectSearchPlaceHolderLabel": "selectSearchPlaceHolderLabel"; "selectClearLabel": "selectClearLabel"; "selectNotFoundLabel": "selectNotFoundLabel"; "idPrefix": "idPrefix"; "schemas": "schemas"; "customProperties": "customProperties"; "editing": "editing"; "inputType": "inputType"; }, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./schema-form/schema-array/array-session/array-session";
|
|
3
|
-
import * as i2 from "./schema-form/schema-array/schema-array";
|
|
4
|
-
import * as i3 from "./schema-form/schema-input/field-render/field-render";
|
|
5
|
-
import * as i4 from "./schema-form/schema-input/input-render/input-render";
|
|
6
|
-
import * as i5 from "./schema-form/schema-input/input-render/boolean-input/boolean-input.component";
|
|
7
|
-
import * as i6 from "./schema-form/schema-input/input-render/number-input/number-input.component";
|
|
8
|
-
import * as i7 from "./schema-form/schema-input/schema-input";
|
|
9
|
-
import * as i8 from "./schema-form/schema-object/schema-object";
|
|
10
|
-
import * as i9 from "./schema-form-render";
|
|
11
|
-
import * as i10 from "./schema-form/schema-form";
|
|
12
|
-
import * as i11 from "./schema-custom-attributes/schema-custom-attributes";
|
|
13
|
-
import * as i12 from "@angular/common";
|
|
14
|
-
import * as i13 from "ngx-drag-drop";
|
|
15
|
-
import * as i14 from "@angular/forms";
|
|
16
|
-
import * as i15 from "@angular/material/tooltip";
|
|
17
|
-
import * as i16 from "@apipass/inputs";
|
|
18
|
-
import * as i17 from "@apipass/icons";
|
|
19
|
-
export declare class SchemaFormRenderModule {
|
|
20
|
-
static
|
|
21
|
-
static
|
|
22
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./schema-form/schema-array/array-session/array-session";
|
|
3
|
+
import * as i2 from "./schema-form/schema-array/schema-array";
|
|
4
|
+
import * as i3 from "./schema-form/schema-input/field-render/field-render";
|
|
5
|
+
import * as i4 from "./schema-form/schema-input/input-render/input-render";
|
|
6
|
+
import * as i5 from "./schema-form/schema-input/input-render/boolean-input/boolean-input.component";
|
|
7
|
+
import * as i6 from "./schema-form/schema-input/input-render/number-input/number-input.component";
|
|
8
|
+
import * as i7 from "./schema-form/schema-input/schema-input";
|
|
9
|
+
import * as i8 from "./schema-form/schema-object/schema-object";
|
|
10
|
+
import * as i9 from "./schema-form-render";
|
|
11
|
+
import * as i10 from "./schema-form/schema-form";
|
|
12
|
+
import * as i11 from "./schema-custom-attributes/schema-custom-attributes";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "ngx-drag-drop";
|
|
15
|
+
import * as i14 from "@angular/forms";
|
|
16
|
+
import * as i15 from "@angular/material/tooltip";
|
|
17
|
+
import * as i16 from "@apipass/inputs";
|
|
18
|
+
import * as i17 from "@apipass/icons";
|
|
19
|
+
export declare class SchemaFormRenderModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaFormRenderModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SchemaFormRenderModule, [typeof i1.ArraySessionComponent, typeof i2.SchemaArrayComponent, typeof i3.FieldRenderComponent, typeof i4.InputRenderComponent, typeof i5.BooleanInputComponent, typeof i6.NumberInputComponent, typeof i7.SchemaInputComponent, typeof i8.SchemaObjectComponent, typeof i9.SchemaFormRenderComponent, typeof i10.SchemaFormComponent, typeof i11.SchemaCustomAttributesComponent], [typeof i12.CommonModule, typeof i13.DndModule, typeof i14.FormsModule, typeof i15.MatTooltipModule, typeof i16.InputsModule, typeof i17.IconsModule], [typeof i1.ArraySessionComponent, typeof i2.SchemaArrayComponent, typeof i3.FieldRenderComponent, typeof i4.InputRenderComponent, typeof i5.BooleanInputComponent, typeof i6.NumberInputComponent, typeof i7.SchemaInputComponent, typeof i8.SchemaObjectComponent, typeof i9.SchemaFormRenderComponent, typeof i10.SchemaFormComponent, typeof i11.SchemaCustomAttributesComponent]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SchemaFormRenderModule>;
|
|
23
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare type StructFieldType = Array<{
|
|
2
|
-
title?: string;
|
|
3
|
-
id: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
propertyOrder?: number;
|
|
6
|
-
minLength?: number;
|
|
7
|
-
maxLength?: number;
|
|
8
|
-
}>;
|
|
9
|
-
export declare type ErrorsLabel = Array<{
|
|
10
|
-
type: string;
|
|
11
|
-
fieldName?: string;
|
|
12
|
-
minLength?: number;
|
|
13
|
-
maxLength?: number;
|
|
14
|
-
}>;
|
|
15
|
-
export declare class SchemaValidationField {
|
|
16
|
-
emptyFields: StructFieldType;
|
|
17
|
-
invalidMinLengthFields: StructFieldType;
|
|
18
|
-
invalidMaxLengthFields: StructFieldType;
|
|
19
|
-
validationErrorsLabel: ErrorsLabel | undefined;
|
|
20
|
-
constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType);
|
|
21
|
-
isValidSchemaFields(): boolean;
|
|
22
|
-
isInvalidSchemaFields(): boolean;
|
|
23
|
-
}
|
|
1
|
+
export declare type StructFieldType = Array<{
|
|
2
|
+
title?: string;
|
|
3
|
+
id: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
propertyOrder?: number;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
}>;
|
|
9
|
+
export declare type ErrorsLabel = Array<{
|
|
10
|
+
type: string;
|
|
11
|
+
fieldName?: string;
|
|
12
|
+
minLength?: number;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
}>;
|
|
15
|
+
export declare class SchemaValidationField {
|
|
16
|
+
emptyFields: StructFieldType;
|
|
17
|
+
invalidMinLengthFields: StructFieldType;
|
|
18
|
+
invalidMaxLengthFields: StructFieldType;
|
|
19
|
+
validationErrorsLabel: ErrorsLabel | undefined;
|
|
20
|
+
constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType);
|
|
21
|
+
isValidSchemaFields(): boolean;
|
|
22
|
+
isInvalidSchemaFields(): boolean;
|
|
23
|
+
}
|
package/struct.utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function onDropStruct(event: any, attr: any): any;
|
|
1
|
+
export declare function onDropStruct(event: any, attr: any): any;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TypeScriptCompileBase {
|
|
3
|
-
protected getTranslate(text: string): string;
|
|
4
|
-
protected addItemToFormProperties(formProperties: any, item: any, key: string): void;
|
|
5
|
-
compileProperties(input: any): {
|
|
6
|
-
compiledProperties: any;
|
|
7
|
-
formProperties: any;
|
|
8
|
-
inputData: any;
|
|
9
|
-
};
|
|
10
|
-
protected translateProperties(input: any): void;
|
|
11
|
-
protected proccessProperties(item: any, formProperties: {}, key: any): void;
|
|
12
|
-
protected hasProperties(item: any): any;
|
|
13
|
-
static ɵfac: i0.ɵɵ
|
|
14
|
-
static ɵprov: i0.ɵɵ
|
|
15
|
-
}
|
|
16
|
-
export declare function APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY(parentIntl: TypeScriptCompileBase): any;
|
|
17
|
-
export declare const APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER: any;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TypeScriptCompileBase {
|
|
3
|
+
protected getTranslate(text: string): string;
|
|
4
|
+
protected addItemToFormProperties(formProperties: any, item: any, key: string): void;
|
|
5
|
+
compileProperties(input: any): {
|
|
6
|
+
compiledProperties: any;
|
|
7
|
+
formProperties: any;
|
|
8
|
+
inputData: any;
|
|
9
|
+
};
|
|
10
|
+
protected translateProperties(input: any): void;
|
|
11
|
+
protected proccessProperties(item: any, formProperties: {}, key: any): void;
|
|
12
|
+
protected hasProperties(item: any): any;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypeScriptCompileBase, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TypeScriptCompileBase>;
|
|
15
|
+
}
|
|
16
|
+
export declare function APIPASS_TYPESCRIPT_COMPILE_BASE_PROVIDER_FACTORY(parentIntl: TypeScriptCompileBase): any;
|
|
17
|
+
export declare const APIPASS_TYPESCRIPT_COMPILE_INTL_PROVIDER: any;
|