@apipass/schemas 0.2.1-alpha.3 → 0.2.1-test.1

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 (52) hide show
  1. package/apipass-schemas.d.ts +5 -5
  2. package/assets/css/buttons.scss +112 -112
  3. package/assets/css/colors.scss +34 -34
  4. package/assets/css/fonts.scss +24 -24
  5. package/assets/css/inputs.scss +197 -197
  6. package/assets/css/pt_sans.scss +143 -143
  7. package/assets/css/spacing.scss +28 -28
  8. package/assets/css/texts.scss +18 -18
  9. package/base-schema.component.d.ts +11 -11
  10. package/bundles/apipass-schemas.umd.js +1926 -1921
  11. package/bundles/apipass-schemas.umd.js.map +1 -1
  12. package/bundles/apipass-schemas.umd.min.js +1 -1
  13. package/bundles/apipass-schemas.umd.min.js.map +1 -1
  14. package/esm2015/apipass-schemas.js +4 -4
  15. package/esm2015/base-schema.component.js +30 -30
  16. package/esm2015/public-api.js +17 -17
  17. package/esm2015/schema-custom-attributes/schema-custom-attributes.js +177 -177
  18. package/esm2015/schema-fields.service.js +77 -77
  19. package/esm2015/schema-form/schema-array/array-session/array-session.js +158 -158
  20. package/esm2015/schema-form/schema-array/schema-array.js +196 -195
  21. package/esm2015/schema-form/schema-form.js +73 -72
  22. package/esm2015/schema-form/schema-input/field-render/field-render.js +72 -72
  23. package/esm2015/schema-form/schema-input/input-render/boolean-input/boolean-input.component.js +45 -45
  24. package/esm2015/schema-form/schema-input/input-render/input-render.js +124 -124
  25. package/esm2015/schema-form/schema-input/input-render/number-input/number-input.component.js +43 -43
  26. package/esm2015/schema-form/schema-input/schema-input.js +99 -98
  27. package/esm2015/schema-form/schema-object/schema-object.js +95 -94
  28. package/esm2015/schema-form-render.js +97 -96
  29. package/esm2015/schema-form-render.module.js +121 -121
  30. package/esm2015/schema-validation-field.js +15 -15
  31. package/esm2015/struct.utils.js +9 -9
  32. package/esm2015/type-script-compile.js +77 -77
  33. package/fesm2015/apipass-schemas.js +1363 -1358
  34. package/fesm2015/apipass-schemas.js.map +1 -1
  35. package/package.json +1 -2
  36. package/public-api.d.ts +16 -16
  37. package/schema-custom-attributes/schema-custom-attributes.d.ts +15 -15
  38. package/schema-fields.service.d.ts +12 -12
  39. package/schema-form/schema-array/array-session/array-session.d.ts +17 -17
  40. package/schema-form/schema-array/schema-array.d.ts +18 -18
  41. package/schema-form/schema-form.d.ts +17 -17
  42. package/schema-form/schema-input/field-render/field-render.d.ts +15 -15
  43. package/schema-form/schema-input/input-render/boolean-input/boolean-input.component.d.ts +13 -13
  44. package/schema-form/schema-input/input-render/input-render.d.ts +19 -19
  45. package/schema-form/schema-input/input-render/number-input/number-input.component.d.ts +13 -13
  46. package/schema-form/schema-input/schema-input.d.ts +14 -14
  47. package/schema-form/schema-object/schema-object.d.ts +20 -20
  48. package/schema-form-render.d.ts +17 -17
  49. package/schema-form-render.module.d.ts +22 -22
  50. package/schema-validation-field.d.ts +17 -17
  51. package/struct.utils.d.ts +1 -1
  52. package/type-script-compile.d.ts +10 -10
@@ -1,19 +1,19 @@
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
- schema: any;
7
- modelPropertiesPath: string | undefined;
8
- inputId: string | undefined;
9
- editing: boolean;
10
- onDropEvent: EventEmitter<{
11
- $event: DndDropEvent;
12
- modelElement: any;
13
- }>;
14
- value: any;
15
- ngAfterContentInit(): void;
16
- onChange($event: any): void;
17
- static ɵfac: i0.ɵɵFactoryDef<InputRenderComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDefWithMeta<InputRenderComponent, "input-render", never, { "schema": "schema"; "modelPropertiesPath": "modelPropertiesPath"; "inputId": "inputId"; "editing": "editing"; }, { "onDropEvent": "onDropEvent"; }, never, never>;
19
- }
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
+ schema: any;
7
+ modelPropertiesPath: string | undefined;
8
+ inputId: string | undefined;
9
+ editing: boolean;
10
+ onDropEvent: EventEmitter<{
11
+ $event: DndDropEvent;
12
+ modelElement: any;
13
+ }>;
14
+ value: any;
15
+ ngAfterContentInit(): void;
16
+ onChange($event: any): void;
17
+ static ɵfac: i0.ɵɵFactoryDef<InputRenderComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<InputRenderComponent, "input-render", never, { "schema": "schema"; "modelPropertiesPath": "modelPropertiesPath"; "inputId": "inputId"; "editing": "editing"; }, { "onDropEvent": "onDropEvent"; }, never, never>;
19
+ }
@@ -1,13 +1,13 @@
1
- import { AfterContentInit } from '@angular/core';
2
- import { BaseSchemaComponent } from '../../../../base-schema.component';
3
- import * as i0 from "@angular/core";
4
- export declare class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {
5
- placeholder: string | undefined;
6
- inputId: string | undefined;
7
- maxLength: any;
8
- value: string | undefined;
9
- ngAfterContentInit(): void;
10
- changeValue($event: any): void;
11
- static ɵfac: i0.ɵɵFactoryDef<NumberInputComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDefWithMeta<NumberInputComponent, "number-input", never, { "placeholder": "placeholder"; "inputId": "inputId"; "maxLength": "maxLength"; }, {}, never, never>;
13
- }
1
+ import { AfterContentInit } from '@angular/core';
2
+ import { BaseSchemaComponent } from '../../../../base-schema.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NumberInputComponent extends BaseSchemaComponent implements AfterContentInit {
5
+ placeholder: string | undefined;
6
+ inputId: string | undefined;
7
+ maxLength: any;
8
+ value: string | undefined;
9
+ ngAfterContentInit(): void;
10
+ changeValue($event: any): void;
11
+ static ɵfac: i0.ɵɵFactoryDef<NumberInputComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<NumberInputComponent, "number-input", never, { "placeholder": "placeholder"; "inputId": "inputId"; "maxLength": "maxLength"; }, {}, never, never>;
13
+ }
@@ -1,14 +1,14 @@
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
- idPrefix: string | undefined;
6
- schema: any;
7
- editing: boolean;
8
- index: number | undefined;
9
- loaded: boolean | undefined;
10
- ngAfterContentInit(): void;
11
- getId(index: any): string;
12
- static ɵfac: i0.ɵɵFactoryDef<SchemaInputComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaInputComponent, "schema-input", never, { "idPrefix": "idPrefix"; "schema": "schema"; "editing": "editing"; "index": "index"; }, {}, never, never>;
14
- }
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
+ idPrefix: string | undefined;
6
+ schema: any;
7
+ editing: boolean;
8
+ index: number | undefined;
9
+ loaded: boolean | undefined;
10
+ ngAfterContentInit(): void;
11
+ getId(index: any): string;
12
+ static ɵfac: i0.ɵɵFactoryDef<SchemaInputComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaInputComponent, "schema-input", never, { "idPrefix": "idPrefix"; "schema": "schema"; "editing": "editing"; "index": "index"; }, {}, never, never>;
14
+ }
@@ -1,20 +1,20 @@
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
- idPrefix: string | undefined;
7
- modelPropertiesPath: string | undefined;
8
- inputId: string | undefined;
9
- editing: boolean;
10
- index: number | undefined;
11
- onDropEvent: EventEmitter<{
12
- $event: DndDropEvent;
13
- modelElement: any;
14
- }>;
15
- loaded: boolean;
16
- ngAfterContentInit(): void;
17
- onDrop($event: DndDropEvent, modelElement: any): any;
18
- static ɵfac: i0.ɵɵFactoryDef<SchemaObjectComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaObjectComponent, "schema-object", never, { "idPrefix": "idPrefix"; "modelPropertiesPath": "modelPropertiesPath"; "inputId": "inputId"; "editing": "editing"; "index": "index"; }, { "onDropEvent": "onDropEvent"; }, never, never>;
20
- }
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
+ idPrefix: string | undefined;
7
+ modelPropertiesPath: string | undefined;
8
+ inputId: string | undefined;
9
+ editing: boolean;
10
+ index: number | undefined;
11
+ onDropEvent: EventEmitter<{
12
+ $event: DndDropEvent;
13
+ modelElement: any;
14
+ }>;
15
+ loaded: boolean;
16
+ ngAfterContentInit(): void;
17
+ onDrop($event: DndDropEvent, modelElement: any): any;
18
+ static ɵfac: i0.ɵɵFactoryDef<SchemaObjectComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaObjectComponent, "schema-object", never, { "idPrefix": "idPrefix"; "modelPropertiesPath": "modelPropertiesPath"; "inputId": "inputId"; "editing": "editing"; "index": "index"; }, { "onDropEvent": "onDropEvent"; }, never, never>;
20
+ }
@@ -1,17 +1,17 @@
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
- idPrefix: string | undefined;
7
- schemas: never[];
8
- customProperties: boolean;
9
- editing: boolean;
10
- inputType: string | undefined;
11
- loaded: boolean;
12
- ngAfterContentInit(): void;
13
- onDrop($event: DndDropEvent, modelElement: any): any;
14
- getId(index: number): string;
15
- static ɵfac: i0.ɵɵFactoryDef<SchemaFormRenderComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaFormRenderComponent, "schema-form-render", never, { "idPrefix": "idPrefix"; "schemas": "schemas"; "customProperties": "customProperties"; "editing": "editing"; "inputType": "inputType"; }, {}, never, never>;
17
- }
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
+ idPrefix: string | undefined;
7
+ schemas: never[];
8
+ customProperties: boolean;
9
+ editing: boolean;
10
+ inputType: string | undefined;
11
+ loaded: boolean;
12
+ ngAfterContentInit(): void;
13
+ onDrop($event: DndDropEvent, modelElement: any): any;
14
+ getId(index: number): string;
15
+ static ɵfac: i0.ɵɵFactoryDef<SchemaFormRenderComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<SchemaFormRenderComponent, "schema-form-render", never, { "idPrefix": "idPrefix"; "schemas": "schemas"; "customProperties": "customProperties"; "editing": "editing"; "inputType": "inputType"; }, {}, never, never>;
17
+ }
@@ -1,22 +1,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 "@ngx-translate/core";
18
- import * as i17 from "@apipass/inputs";
19
- export declare class SchemaFormRenderModule {
20
- static ɵmod: i0.ɵɵNgModuleDefWithMeta<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.TranslateModule, typeof i17.InputsModule], [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]>;
21
- static ɵinj: i0.ɵɵInjectorDef<SchemaFormRenderModule>;
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 "@ngx-translate/core";
18
+ import * as i17 from "@apipass/inputs";
19
+ export declare class SchemaFormRenderModule {
20
+ static ɵmod: i0.ɵɵNgModuleDefWithMeta<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.TranslateModule, typeof i17.InputsModule], [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]>;
21
+ static ɵinj: i0.ɵɵInjectorDef<SchemaFormRenderModule>;
22
+ }
@@ -1,17 +1,17 @@
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 class SchemaValidationField {
10
- emptyFields: StructFieldType;
11
- invalidMinLengthFields: StructFieldType;
12
- invalidMaxLengthFields: StructFieldType;
13
- validationErrorsLabel: string[] | undefined;
14
- constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType);
15
- isValidSchemaFields(): boolean;
16
- isInvalidSchemaFields(): boolean;
17
- }
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 class SchemaValidationField {
10
+ emptyFields: StructFieldType;
11
+ invalidMinLengthFields: StructFieldType;
12
+ invalidMaxLengthFields: StructFieldType;
13
+ validationErrorsLabel: string[] | undefined;
14
+ constructor(emptyFields: StructFieldType, invalidMinLengthFields: StructFieldType, invalidMaxLengthFields: StructFieldType);
15
+ isValidSchemaFields(): boolean;
16
+ isInvalidSchemaFields(): boolean;
17
+ }
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,10 +1,10 @@
1
- export declare class TypeScriptCompile {
2
- private static addItemToFormProperties;
3
- static compileProperties(input: any): {
4
- compiledProperties: any;
5
- formProperties: any;
6
- inputData: any;
7
- };
8
- private static proccessProperties;
9
- private static hasProperties;
10
- }
1
+ export declare class TypeScriptCompile {
2
+ private static addItemToFormProperties;
3
+ static compileProperties(input: any): {
4
+ compiledProperties: any;
5
+ formProperties: any;
6
+ inputData: any;
7
+ };
8
+ private static proccessProperties;
9
+ private static hasProperties;
10
+ }