@apipass/schemas 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/base-schema.component.d.ts +12 -12
  2. package/{esm2020 → esm2022}/apipass-schemas.mjs +4 -4
  3. package/esm2022/base-schema.component.mjs +38 -0
  4. package/{esm2020 → esm2022}/public-api.mjs +16 -16
  5. package/{esm2020 → esm2022}/schema-custom-attributes/schema-custom-attributes.mjs +169 -169
  6. package/esm2022/schema-fields.service.mjs +81 -0
  7. package/esm2022/schema-form/schema-array/array-session/array-session.mjs +141 -0
  8. package/{esm2020 → esm2022}/schema-form/schema-array/schema-array.mjs +219 -220
  9. package/esm2022/schema-form/schema-form.mjs +107 -0
  10. package/esm2022/schema-form/schema-input/field-render/field-render.mjs +76 -0
  11. package/esm2022/schema-form/schema-input/input-render/boolean-input/boolean-input.component.mjs +51 -0
  12. package/esm2022/schema-form/schema-input/input-render/input-render.mjs +193 -0
  13. package/esm2022/schema-form/schema-input/input-render/number-input/number-input.component.mjs +49 -0
  14. package/esm2022/schema-form/schema-input/schema-input.mjs +95 -0
  15. package/esm2022/schema-form/schema-object/schema-object.mjs +125 -0
  16. package/esm2022/schema-form-render.mjs +126 -0
  17. package/{esm2020 → esm2022}/schema-form-render.module.mjs +109 -108
  18. package/esm2022/schema-validation-field.mjs +18 -0
  19. package/{esm2020 → esm2022}/struct.utils.mjs +8 -8
  20. package/esm2022/type-script-compile/type-script-compile.base.mjs +115 -0
  21. package/{fesm2020 → fesm2022}/apipass-schemas.mjs +1571 -1563
  22. package/fesm2022/apipass-schemas.mjs.map +1 -0
  23. package/index.d.ts +5 -5
  24. package/package.json +15 -21
  25. package/public-api.d.ts +16 -16
  26. package/schema-custom-attributes/schema-custom-attributes.d.ts +21 -21
  27. package/schema-fields.service.d.ts +14 -14
  28. package/schema-form/schema-array/array-session/array-session.d.ts +19 -19
  29. package/schema-form/schema-array/schema-array.d.ts +31 -32
  30. package/schema-form/schema-form.d.ts +31 -31
  31. package/schema-form/schema-input/field-render/field-render.d.ts +16 -16
  32. package/schema-form/schema-input/input-render/boolean-input/boolean-input.component.d.ts +15 -15
  33. package/schema-form/schema-input/input-render/input-render.d.ts +29 -29
  34. package/schema-form/schema-input/input-render/number-input/number-input.component.d.ts +15 -15
  35. package/schema-form/schema-input/schema-input.d.ts +18 -19
  36. package/schema-form/schema-object/schema-object.d.ts +34 -34
  37. package/schema-form-render.d.ts +31 -31
  38. package/schema-form-render.module.d.ts +23 -23
  39. package/schema-validation-field.d.ts +23 -23
  40. package/struct.utils.d.ts +1 -1
  41. package/type-script-compile/type-script-compile.base.d.ts +17 -17
  42. package/esm2020/base-schema.component.mjs +0 -37
  43. package/esm2020/schema-fields.service.mjs +0 -80
  44. package/esm2020/schema-form/schema-array/array-session/array-session.mjs +0 -143
  45. package/esm2020/schema-form/schema-form.mjs +0 -107
  46. package/esm2020/schema-form/schema-input/field-render/field-render.mjs +0 -69
  47. package/esm2020/schema-form/schema-input/input-render/boolean-input/boolean-input.component.mjs +0 -46
  48. package/esm2020/schema-form/schema-input/input-render/input-render.mjs +0 -192
  49. package/esm2020/schema-form/schema-input/input-render/number-input/number-input.component.mjs +0 -44
  50. package/esm2020/schema-form/schema-input/schema-input.mjs +0 -96
  51. package/esm2020/schema-form/schema-object/schema-object.mjs +0 -123
  52. package/esm2020/schema-form-render.mjs +0 -126
  53. package/esm2020/schema-validation-field.mjs +0 -14
  54. package/esm2020/type-script-compile/type-script-compile.base.mjs +0 -114
  55. package/fesm2015/apipass-schemas.mjs +0 -1801
  56. package/fesm2015/apipass-schemas.mjs.map +0 -1
  57. package/fesm2020/apipass-schemas.mjs.map +0 -1
@@ -1,32 +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 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
+ 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
+ editing: boolean;
22
+ index: number | undefined;
23
+ loaded: boolean | undefined;
24
+ ngAfterContentInit(): void;
25
+ onDrop($event: DndDropEvent, modelElement: any): any;
26
+ getId(index: any): string;
27
+ addArrayItem(id: any, param: any): void;
28
+ addArrayLoop(id: any, mappingAttributes: any): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<SchemaArrayComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<SchemaArrayComponent, "schema-array", never, { "requiredLabel": { "alias": "requiredLabel"; "required": false; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; }; "addLoopLabel": { "alias": "addLoopLabel"; "required": false; }; "additionalAttributesLabel": { "alias": "additionalAttributesLabel"; "required": false; }; "customAttributeRemoveLabel": { "alias": "customAttributeRemoveLabel"; "required": false; }; "newCustomFieldNameLabel": { "alias": "newCustomFieldNameLabel"; "required": false; }; "newCustomFieldValueLabel": { "alias": "newCustomFieldValueLabel"; "required": false; }; "newCustomFieldAddLabel": { "alias": "newCustomFieldAddLabel"; "required": false; }; "newCustomFieldSaveLabel": { "alias": "newCustomFieldSaveLabel"; "required": false; }; "newCustomFieldCancelLabel": { "alias": "newCustomFieldCancelLabel"; "required": false; }; "selectPlaceHolderLabel": { "alias": "selectPlaceHolderLabel"; "required": false; }; "selectSearchPlaceHolderLabel": { "alias": "selectSearchPlaceHolderLabel"; "required": false; }; "selectClearLabel": { "alias": "selectClearLabel"; "required": false; }; "selectNotFoundLabel": { "alias": "selectNotFoundLabel"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, false, never>;
31
+ }
@@ -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.ɵɵ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
+ 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: any[];
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": { "alias": "requiredLabel"; "required": false; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; }; "addLoopLabel": { "alias": "addLoopLabel"; "required": false; }; "additionalAttributesLabel": { "alias": "additionalAttributesLabel"; "required": false; }; "customAttributeRemoveLabel": { "alias": "customAttributeRemoveLabel"; "required": false; }; "newCustomFieldNameLabel": { "alias": "newCustomFieldNameLabel"; "required": false; }; "newCustomFieldValueLabel": { "alias": "newCustomFieldValueLabel"; "required": false; }; "newCustomFieldAddLabel": { "alias": "newCustomFieldAddLabel"; "required": false; }; "newCustomFieldSaveLabel": { "alias": "newCustomFieldSaveLabel"; "required": false; }; "newCustomFieldCancelLabel": { "alias": "newCustomFieldCancelLabel"; "required": false; }; "selectPlaceHolderLabel": { "alias": "selectPlaceHolderLabel"; "required": false; }; "selectSearchPlaceHolderLabel": { "alias": "selectSearchPlaceHolderLabel"; "required": false; }; "selectClearLabel": { "alias": "selectClearLabel"; "required": false; }; "selectNotFoundLabel": { "alias": "selectNotFoundLabel"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "schemas": { "alias": "schemas"; "required": false; }; "customProperties": { "alias": "customProperties"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "inputType": { "alias": "inputType"; "required": false; }; }, {}, 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.ɵɵ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
+ 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": { "alias": "requiredLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "required": { "alias": "required"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, {}, 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.ɵɵFactoryDeclaration<BooleanInputComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanInputComponent, "boolean-input", never, { "placeholder": "placeholder"; "inputId": "inputId"; "maxLength": "maxLength"; }, {}, never, never, false, never>;
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": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; }, {}, 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.ɵɵ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
+ 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": { "alias": "selectPlaceHolderLabel"; "required": false; }; "selectSearchPlaceHolderLabel": { "alias": "selectSearchPlaceHolderLabel"; "required": false; }; "selectClearLabel": { "alias": "selectClearLabel"; "required": false; }; "selectNotFoundLabel": { "alias": "selectNotFoundLabel"; "required": false; }; "schema": { "alias": "schema"; "required": false; }; "modelPropertiesPath": { "alias": "modelPropertiesPath"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; }, { "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.ɵɵFactoryDeclaration<NumberInputComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "number-input", never, { "placeholder": "placeholder"; "inputId": "inputId"; "maxLength": "maxLength"; }, {}, never, never, false, never>;
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": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; }, {}, never, never, false, never>;
15
+ }
@@ -1,19 +1,18 @@
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
+ 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
+ editing: boolean;
12
+ index: number | undefined;
13
+ loaded: boolean | undefined;
14
+ ngAfterContentInit(): void;
15
+ getId(index: any): string;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SchemaInputComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SchemaInputComponent, "schema-input", never, { "requiredLabel": { "alias": "requiredLabel"; "required": false; }; "selectPlaceHolderLabel": { "alias": "selectPlaceHolderLabel"; "required": false; }; "selectSearchPlaceHolderLabel": { "alias": "selectSearchPlaceHolderLabel"; "required": false; }; "selectClearLabel": { "alias": "selectClearLabel"; "required": false; }; "selectNotFoundLabel": { "alias": "selectNotFoundLabel"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -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.ɵɵ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
- }
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": { "alias": "requiredLabel"; "required": false; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; }; "addLoopLabel": { "alias": "addLoopLabel"; "required": false; }; "additionalAttributesLabel": { "alias": "additionalAttributesLabel"; "required": false; }; "customAttributeRemoveLabel": { "alias": "customAttributeRemoveLabel"; "required": false; }; "newCustomFieldNameLabel": { "alias": "newCustomFieldNameLabel"; "required": false; }; "newCustomFieldValueLabel": { "alias": "newCustomFieldValueLabel"; "required": false; }; "newCustomFieldAddLabel": { "alias": "newCustomFieldAddLabel"; "required": false; }; "newCustomFieldSaveLabel": { "alias": "newCustomFieldSaveLabel"; "required": false; }; "newCustomFieldCancelLabel": { "alias": "newCustomFieldCancelLabel"; "required": false; }; "selectPlaceHolderLabel": { "alias": "selectPlaceHolderLabel"; "required": false; }; "selectSearchPlaceHolderLabel": { "alias": "selectSearchPlaceHolderLabel"; "required": false; }; "selectClearLabel": { "alias": "selectClearLabel"; "required": false; }; "selectNotFoundLabel": { "alias": "selectNotFoundLabel"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "modelPropertiesPath": { "alias": "modelPropertiesPath"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, { "onDropEvent": "onDropEvent"; }, never, never, false, never>;
34
+ }
@@ -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.ɵɵ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
+ 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: any[];
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": { "alias": "requiredLabel"; "required": false; }; "addItemLabel": { "alias": "addItemLabel"; "required": false; }; "addLoopLabel": { "alias": "addLoopLabel"; "required": false; }; "additionalAttributesLabel": { "alias": "additionalAttributesLabel"; "required": false; }; "customAttributeRemoveLabel": { "alias": "customAttributeRemoveLabel"; "required": false; }; "newCustomFieldNameLabel": { "alias": "newCustomFieldNameLabel"; "required": false; }; "newCustomFieldValueLabel": { "alias": "newCustomFieldValueLabel"; "required": false; }; "newCustomFieldAddLabel": { "alias": "newCustomFieldAddLabel"; "required": false; }; "newCustomFieldSaveLabel": { "alias": "newCustomFieldSaveLabel"; "required": false; }; "newCustomFieldCancelLabel": { "alias": "newCustomFieldCancelLabel"; "required": false; }; "selectPlaceHolderLabel": { "alias": "selectPlaceHolderLabel"; "required": false; }; "selectSearchPlaceHolderLabel": { "alias": "selectSearchPlaceHolderLabel"; "required": false; }; "selectClearLabel": { "alias": "selectClearLabel"; "required": false; }; "selectNotFoundLabel": { "alias": "selectNotFoundLabel"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "schemas": { "alias": "schemas"; "required": false; }; "customProperties": { "alias": "customProperties"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "inputType": { "alias": "inputType"; "required": false; }; }, {}, never, never, false, never>;
31
+ }
@@ -1,23 +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 ɵ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
+ 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 type StructFieldType = Array<{
2
+ title?: string;
3
+ id: string;
4
+ description?: string;
5
+ propertyOrder?: number;
6
+ minLength?: number;
7
+ maxLength?: number;
8
+ }>;
9
+ export 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;