@jsonforms/angular-material 3.2.0-alpha.2 → 3.2.0-alpha.4
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/lib/cjs/controls/autocomplete.renderer.d.ts +4 -0
- package/lib/cjs/controls/autocomplete.renderer.js +26 -16
- package/lib/cjs/controls/autocomplete.renderer.js.map +1 -1
- package/lib/cjs/controls/boolean.renderer.d.ts +3 -0
- package/lib/cjs/controls/boolean.renderer.js +18 -12
- package/lib/cjs/controls/boolean.renderer.js.map +1 -1
- package/lib/cjs/controls/date.renderer.d.ts +4 -0
- package/lib/cjs/controls/date.renderer.js +21 -11
- package/lib/cjs/controls/date.renderer.js.map +1 -1
- package/lib/cjs/controls/number.renderer.d.ts +4 -0
- package/lib/cjs/controls/number.renderer.js +23 -14
- package/lib/cjs/controls/number.renderer.js.map +1 -1
- package/lib/cjs/controls/range.renderer.d.ts +4 -0
- package/lib/cjs/controls/range.renderer.js +19 -12
- package/lib/cjs/controls/range.renderer.js.map +1 -1
- package/lib/cjs/controls/text.renderer.d.ts +4 -0
- package/lib/cjs/controls/text.renderer.js +20 -11
- package/lib/cjs/controls/text.renderer.js.map +1 -1
- package/lib/cjs/controls/textarea.renderer.d.ts +4 -0
- package/lib/cjs/controls/textarea.renderer.js +20 -11
- package/lib/cjs/controls/textarea.renderer.js.map +1 -1
- package/lib/cjs/controls/toggle.renderer.d.ts +3 -0
- package/lib/cjs/controls/toggle.renderer.js +17 -12
- package/lib/cjs/controls/toggle.renderer.js.map +1 -1
- package/lib/cjs/layouts/array-layout.renderer.d.ts +3 -0
- package/lib/cjs/layouts/array-layout.renderer.js +24 -21
- package/lib/cjs/layouts/array-layout.renderer.js.map +1 -1
- package/lib/cjs/layouts/categorization-layout.renderer.d.ts +3 -0
- package/lib/cjs/layouts/categorization-layout.renderer.js +18 -13
- package/lib/cjs/layouts/categorization-layout.renderer.js.map +1 -1
- package/lib/cjs/layouts/group-layout.renderer.d.ts +3 -0
- package/lib/cjs/layouts/group-layout.renderer.js +18 -12
- package/lib/cjs/layouts/group-layout.renderer.js.map +1 -1
- package/lib/cjs/layouts/horizontal-layout.renderer.d.ts +3 -0
- package/lib/cjs/layouts/horizontal-layout.renderer.js +17 -12
- package/lib/cjs/layouts/horizontal-layout.renderer.js.map +1 -1
- package/lib/cjs/layouts/layout.renderer.d.ts +5 -0
- package/lib/cjs/layouts/layout.renderer.js +17 -13
- package/lib/cjs/layouts/layout.renderer.js.map +1 -1
- package/lib/cjs/layouts/vertical-layout.renderer.d.ts +3 -0
- package/lib/cjs/layouts/vertical-layout.renderer.js +17 -12
- package/lib/cjs/layouts/vertical-layout.renderer.js.map +1 -1
- package/lib/cjs/module.d.ts +46 -0
- package/lib/cjs/module.js +111 -27
- package/lib/cjs/module.js.map +1 -1
- package/lib/cjs/other/label.renderer.d.ts +3 -0
- package/lib/cjs/other/label.renderer.js +14 -11
- package/lib/cjs/other/label.renderer.js.map +1 -1
- package/lib/cjs/other/master-detail/detail.d.ts +3 -0
- package/lib/cjs/other/master-detail/detail.js +15 -9
- package/lib/cjs/other/master-detail/detail.js.map +1 -1
- package/lib/cjs/other/master-detail/master.d.ts +3 -1
- package/lib/cjs/other/master-detail/master.js +26 -25
- package/lib/cjs/other/master-detail/master.js.map +1 -1
- package/lib/cjs/other/object.renderer.d.ts +3 -0
- package/lib/cjs/other/object.renderer.js +21 -17
- package/lib/cjs/other/object.renderer.js.map +1 -1
- package/lib/cjs/other/table.renderer.d.ts +3 -0
- package/lib/cjs/other/table.renderer.js +23 -20
- package/lib/cjs/other/table.renderer.js.map +1 -1
- package/lib/esm/controls/autocomplete.renderer.d.ts +4 -0
- package/lib/esm/controls/autocomplete.renderer.js +23 -13
- package/lib/esm/controls/autocomplete.renderer.js.map +1 -1
- package/lib/esm/controls/boolean.renderer.d.ts +3 -0
- package/lib/esm/controls/boolean.renderer.js +17 -11
- package/lib/esm/controls/boolean.renderer.js.map +1 -1
- package/lib/esm/controls/date.renderer.d.ts +4 -0
- package/lib/esm/controls/date.renderer.js +20 -10
- package/lib/esm/controls/date.renderer.js.map +1 -1
- package/lib/esm/controls/number.renderer.d.ts +4 -0
- package/lib/esm/controls/number.renderer.js +20 -11
- package/lib/esm/controls/number.renderer.js.map +1 -1
- package/lib/esm/controls/range.renderer.d.ts +4 -0
- package/lib/esm/controls/range.renderer.js +18 -11
- package/lib/esm/controls/range.renderer.js.map +1 -1
- package/lib/esm/controls/text.renderer.d.ts +4 -0
- package/lib/esm/controls/text.renderer.js +19 -10
- package/lib/esm/controls/text.renderer.js.map +1 -1
- package/lib/esm/controls/textarea.renderer.d.ts +4 -0
- package/lib/esm/controls/textarea.renderer.js +19 -10
- package/lib/esm/controls/textarea.renderer.js.map +1 -1
- package/lib/esm/controls/toggle.renderer.d.ts +3 -0
- package/lib/esm/controls/toggle.renderer.js +16 -11
- package/lib/esm/controls/toggle.renderer.js.map +1 -1
- package/lib/esm/layouts/array-layout.renderer.d.ts +3 -0
- package/lib/esm/layouts/array-layout.renderer.js +18 -15
- package/lib/esm/layouts/array-layout.renderer.js.map +1 -1
- package/lib/esm/layouts/categorization-layout.renderer.d.ts +3 -0
- package/lib/esm/layouts/categorization-layout.renderer.js +14 -9
- package/lib/esm/layouts/categorization-layout.renderer.js.map +1 -1
- package/lib/esm/layouts/group-layout.renderer.d.ts +3 -0
- package/lib/esm/layouts/group-layout.renderer.js +17 -11
- package/lib/esm/layouts/group-layout.renderer.js.map +1 -1
- package/lib/esm/layouts/horizontal-layout.renderer.d.ts +3 -0
- package/lib/esm/layouts/horizontal-layout.renderer.js +16 -11
- package/lib/esm/layouts/horizontal-layout.renderer.js.map +1 -1
- package/lib/esm/layouts/layout.renderer.d.ts +5 -0
- package/lib/esm/layouts/layout.renderer.js +16 -12
- package/lib/esm/layouts/layout.renderer.js.map +1 -1
- package/lib/esm/layouts/vertical-layout.renderer.d.ts +3 -0
- package/lib/esm/layouts/vertical-layout.renderer.js +16 -11
- package/lib/esm/layouts/vertical-layout.renderer.js.map +1 -1
- package/lib/esm/module.d.ts +46 -0
- package/lib/esm/module.js +110 -27
- package/lib/esm/module.js.map +1 -1
- package/lib/esm/other/label.renderer.d.ts +3 -0
- package/lib/esm/other/label.renderer.js +12 -9
- package/lib/esm/other/label.renderer.js.map +1 -1
- package/lib/esm/other/master-detail/detail.d.ts +3 -0
- package/lib/esm/other/master-detail/detail.js +14 -9
- package/lib/esm/other/master-detail/detail.js.map +1 -1
- package/lib/esm/other/master-detail/master.d.ts +3 -1
- package/lib/esm/other/master-detail/master.js +18 -17
- package/lib/esm/other/master-detail/master.js.map +1 -1
- package/lib/esm/other/object.renderer.d.ts +3 -0
- package/lib/esm/other/object.renderer.js +15 -11
- package/lib/esm/other/object.renderer.js.map +1 -1
- package/lib/esm/other/table.renderer.d.ts +3 -0
- package/lib/esm/other/table.renderer.js +16 -13
- package/lib/esm/other/table.renderer.js.map +1 -1
- package/package.json +70 -69
- package/src/controls/autocomplete.renderer.ts +1 -0
- package/src/controls/date.renderer.ts +2 -0
- package/src/controls/number.renderer.ts +1 -0
- package/src/controls/range.renderer.ts +7 -5
- package/src/controls/text.renderer.ts +1 -0
- package/src/controls/textarea.renderer.ts +1 -0
- package/src/layouts/array-layout.renderer.ts +5 -2
- package/src/layouts/group-layout.renderer.ts +2 -2
- package/src/module.ts +0 -20
- package/src/other/label.renderer.ts +1 -1
- package/src/other/master-detail/master.ts +11 -3
- package/src/other/object.renderer.ts +7 -2
- package/src/other/table.renderer.ts +4 -1
- package/lib/cjs/controls/autocomplete.renderer.metadata.json +0 -1
- package/lib/cjs/controls/boolean.renderer.metadata.json +0 -1
- package/lib/cjs/controls/date.renderer.metadata.json +0 -1
- package/lib/cjs/controls/index.metadata.json +0 -1
- package/lib/cjs/controls/number.renderer.metadata.json +0 -1
- package/lib/cjs/controls/range.renderer.metadata.json +0 -1
- package/lib/cjs/controls/text.renderer.metadata.json +0 -1
- package/lib/cjs/controls/textarea.renderer.metadata.json +0 -1
- package/lib/cjs/controls/toggle.renderer.metadata.json +0 -1
- package/lib/cjs/index.metadata.json +0 -1
- package/lib/cjs/layouts/array-layout.renderer.metadata.json +0 -1
- package/lib/cjs/layouts/categorization-layout.renderer.metadata.json +0 -1
- package/lib/cjs/layouts/group-layout.renderer.metadata.json +0 -1
- package/lib/cjs/layouts/horizontal-layout.renderer.metadata.json +0 -1
- package/lib/cjs/layouts/index.metadata.json +0 -1
- package/lib/cjs/layouts/layout.renderer.metadata.json +0 -1
- package/lib/cjs/layouts/vertical-layout.renderer.metadata.json +0 -1
- package/lib/cjs/module.metadata.json +0 -1
- package/lib/cjs/other/index.metadata.json +0 -1
- package/lib/cjs/other/label.renderer.metadata.json +0 -1
- package/lib/cjs/other/master-detail/detail.metadata.json +0 -1
- package/lib/cjs/other/master-detail/index.metadata.json +0 -1
- package/lib/cjs/other/master-detail/master.metadata.json +0 -1
- package/lib/cjs/other/object.renderer.metadata.json +0 -1
- package/lib/cjs/other/table.renderer.metadata.json +0 -1
- package/lib/esm/controls/autocomplete.renderer.metadata.json +0 -1
- package/lib/esm/controls/boolean.renderer.metadata.json +0 -1
- package/lib/esm/controls/date.renderer.metadata.json +0 -1
- package/lib/esm/controls/index.metadata.json +0 -1
- package/lib/esm/controls/number.renderer.metadata.json +0 -1
- package/lib/esm/controls/range.renderer.metadata.json +0 -1
- package/lib/esm/controls/text.renderer.metadata.json +0 -1
- package/lib/esm/controls/textarea.renderer.metadata.json +0 -1
- package/lib/esm/controls/toggle.renderer.metadata.json +0 -1
- package/lib/esm/index.metadata.json +0 -1
- package/lib/esm/layouts/array-layout.renderer.metadata.json +0 -1
- package/lib/esm/layouts/categorization-layout.renderer.metadata.json +0 -1
- package/lib/esm/layouts/group-layout.renderer.metadata.json +0 -1
- package/lib/esm/layouts/horizontal-layout.renderer.metadata.json +0 -1
- package/lib/esm/layouts/index.metadata.json +0 -1
- package/lib/esm/layouts/layout.renderer.metadata.json +0 -1
- package/lib/esm/layouts/vertical-layout.renderer.metadata.json +0 -1
- package/lib/esm/module.metadata.json +0 -1
- package/lib/esm/other/index.metadata.json +0 -1
- package/lib/esm/other/label.renderer.metadata.json +0 -1
- package/lib/esm/other/master-detail/detail.metadata.json +0 -1
- package/lib/esm/other/master-detail/index.metadata.json +0 -1
- package/lib/esm/other/master-detail/master.metadata.json +0 -1
- package/lib/esm/other/object.renderer.metadata.json +0 -1
- package/lib/esm/other/table.renderer.metadata.json +0 -1
|
@@ -26,6 +26,16 @@ import { __assign, __extends } from "tslib";
|
|
|
26
26
|
import { ChangeDetectionStrategy, Component, } from '@angular/core';
|
|
27
27
|
import { JsonFormsAngularService, JsonFormsAbstractControl, } from '@jsonforms/angular';
|
|
28
28
|
import { createDefaultValue, findUISchema, isObjectArrayWithNesting, mapDispatchToArrayControlProps, mapStateToArrayLayoutProps, Paths, rankWith, setReadonly, unsetReadonly, } from '@jsonforms/core';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@jsonforms/angular";
|
|
31
|
+
import * as i2 from "@angular/common";
|
|
32
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
33
|
+
import * as i4 from "@angular/flex-layout/extended";
|
|
34
|
+
import * as i5 from "@angular/material/card";
|
|
35
|
+
import * as i6 from "@angular/material/button";
|
|
36
|
+
import * as i7 from "@angular/material/icon";
|
|
37
|
+
import * as i8 from "@angular/material/tooltip";
|
|
38
|
+
import * as i9 from "@angular/material/badge";
|
|
29
39
|
var ArrayLayoutRenderer = /** @class */ (function (_super) {
|
|
30
40
|
__extends(ArrayLayoutRenderer, _super);
|
|
31
41
|
function ArrayLayoutRenderer(jsonFormsService) {
|
|
@@ -39,7 +49,7 @@ var ArrayLayoutRenderer = /** @class */ (function (_super) {
|
|
|
39
49
|
this.removeItems(this.propsPath, [index])();
|
|
40
50
|
};
|
|
41
51
|
ArrayLayoutRenderer.prototype.add = function () {
|
|
42
|
-
this.addItem(this.propsPath, createDefaultValue(this.scopedSchema))();
|
|
52
|
+
this.addItem(this.propsPath, createDefaultValue(this.scopedSchema, this.rootSchema))();
|
|
43
53
|
};
|
|
44
54
|
ArrayLayoutRenderer.prototype.up = function (index) {
|
|
45
55
|
this.moveItemUp(this.propsPath, index)();
|
|
@@ -70,28 +80,21 @@ var ArrayLayoutRenderer = /** @class */ (function (_super) {
|
|
|
70
80
|
}
|
|
71
81
|
return {
|
|
72
82
|
schema: this.scopedSchema,
|
|
73
|
-
path: Paths.compose(this.propsPath, ""
|
|
83
|
+
path: Paths.compose(this.propsPath, "".concat(index)),
|
|
74
84
|
uischema: uischema,
|
|
75
85
|
};
|
|
76
86
|
};
|
|
77
87
|
ArrayLayoutRenderer.prototype.trackByFn = function (index) {
|
|
78
88
|
return index;
|
|
79
89
|
};
|
|
80
|
-
ArrayLayoutRenderer
|
|
81
|
-
{ type:
|
|
82
|
-
selector: 'app-array-layout-renderer',
|
|
83
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"16px\" [fxHide]=\"hidden\">\n <div [ngClass]=\"'array-layout-toolbar'\">\n <h2 [ngClass]=\"['mat-h2', 'array-layout-title']\">{{ label }}</h2>\n <span fxFlex></span>\n <mat-icon\n *ngIf=\"this.error?.length\"\n color=\"warn\"\n matBadge=\"{{\n this.error.split(\n '\n'\n ).length\n }}\"\n matBadgeColor=\"warn\"\n matTooltip=\"{{ this.error }}\"\n matTooltipClass=\"error-message-tooltip\"\n >\n error_outline\n </mat-icon>\n <span fxFlex></span>\n <button\n mat-button\n matTooltip=\"{{ translations.addTooltip }}\"\n [disabled]=\"!isEnabled()\"\n (click)=\"add()\"\n attr.aria-label=\"{{ translations.addAriaLabel }}\"\n >\n <mat-icon>add</mat-icon>\n </button>\n </div>\n <p *ngIf=\"noData\">{{ translations.noDataMessage }}</p>\n <div\n *ngFor=\"\n let item of [].constructor(data);\n let idx = index;\n trackBy: trackByFn;\n last as last;\n first as first\n \"\n >\n <mat-card>\n <mat-card-content>\n <jsonforms-outlet [renderProps]=\"getProps(idx)\"></jsonforms-outlet>\n </mat-card-content>\n <mat-card-actions *ngIf=\"isEnabled()\">\n <button\n *ngIf=\"uischema?.options?.showSortButtons\"\n class=\"item-up\"\n mat-button\n [disabled]=\"first\"\n (click)=\"up(idx)\"\n attr.aria-label=\"{{ translations.upAriaLabel }}\"\n matTooltip=\"{{ translations.up }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button\n *ngIf=\"uischema?.options?.showSortButtons\"\n class=\"item-down\"\n mat-button\n [disabled]=\"last\"\n (click)=\"down(idx)\"\n attr.aria-label=\"{{ translations.downAriaLabel }}\"\n matTooltip=\"{{ translations.down }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>arrow_downward</mat-icon>\n </button>\n <button\n mat-button\n color=\"warn\"\n (click)=\"remove(idx)\"\n attr.aria-label=\"{{ translations.removeAriaLabel }}\"\n matTooltip=\"{{ translations.removeTooltip }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </mat-card-actions>\n </mat-card>\n </div>\n </div>\n ",
|
|
84
|
-
styles: [
|
|
85
|
-
"\n .array-layout-toolbar {\n display: flex;\n align-items: center;\n }\n .array-layout-title {\n margin: 0;\n }\n ::ng-deep .error-message-tooltip {\n white-space: pre-line;\n }\n ",
|
|
86
|
-
],
|
|
87
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
88
|
-
},] }
|
|
89
|
-
];
|
|
90
|
-
ArrayLayoutRenderer.ctorParameters = function () { return [
|
|
91
|
-
{ type: JsonFormsAngularService }
|
|
92
|
-
]; };
|
|
90
|
+
ArrayLayoutRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ArrayLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
ArrayLayoutRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ArrayLayoutRenderer, selector: "app-array-layout-renderer", usesInheritance: true, ngImport: i0, template: "\n <div fxLayout=\"column\" fxLayoutGap=\"16px\" [fxHide]=\"hidden\">\n <div [ngClass]=\"'array-layout-toolbar'\">\n <h2 [ngClass]=\"['mat-h2', 'array-layout-title']\">{{ label }}</h2>\n <span fxFlex></span>\n <mat-icon\n *ngIf=\"this.error?.length\"\n color=\"warn\"\n matBadge=\"{{\n this.error.split(\n '\n'\n ).length\n }}\"\n matBadgeColor=\"warn\"\n matTooltip=\"{{ this.error }}\"\n matTooltipClass=\"error-message-tooltip\"\n >\n error_outline\n </mat-icon>\n <span fxFlex></span>\n <button\n mat-button\n matTooltip=\"{{ translations.addTooltip }}\"\n [disabled]=\"!isEnabled()\"\n (click)=\"add()\"\n attr.aria-label=\"{{ translations.addAriaLabel }}\"\n >\n <mat-icon>add</mat-icon>\n </button>\n </div>\n <p *ngIf=\"noData\">{{ translations.noDataMessage }}</p>\n <div\n *ngFor=\"\n let item of [].constructor(data);\n let idx = index;\n trackBy: trackByFn;\n last as last;\n first as first\n \"\n >\n <mat-card appearance=\"outlined\">\n <mat-card-content>\n <jsonforms-outlet [renderProps]=\"getProps(idx)\"></jsonforms-outlet>\n </mat-card-content>\n <mat-card-actions *ngIf=\"isEnabled()\">\n <button\n *ngIf=\"uischema?.options?.showSortButtons\"\n class=\"item-up\"\n mat-button\n [disabled]=\"first\"\n (click)=\"up(idx)\"\n attr.aria-label=\"{{ translations.upAriaLabel }}\"\n matTooltip=\"{{ translations.up }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button\n *ngIf=\"uischema?.options?.showSortButtons\"\n class=\"item-down\"\n mat-button\n [disabled]=\"last\"\n (click)=\"down(idx)\"\n attr.aria-label=\"{{ translations.downAriaLabel }}\"\n matTooltip=\"{{ translations.down }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>arrow_downward</mat-icon>\n </button>\n <button\n mat-button\n color=\"warn\"\n (click)=\"remove(idx)\"\n attr.aria-label=\"{{ translations.removeAriaLabel }}\"\n matTooltip=\"{{ translations.removeTooltip }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </mat-card-actions>\n </mat-card>\n </div>\n </div>\n ", isInline: true, styles: ["\n .array-layout-toolbar {\n display: flex;\n align-items: center;\n }\n .array-layout-title {\n margin: 0;\n }\n ::ng-deep .error-message-tooltip {\n white-space: pre-line;\n }\n "], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i5.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i6.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i9.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
93
92
|
return ArrayLayoutRenderer;
|
|
94
93
|
}(JsonFormsAbstractControl));
|
|
95
94
|
export { ArrayLayoutRenderer };
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ArrayLayoutRenderer, decorators: [{
|
|
96
|
+
type: Component,
|
|
97
|
+
args: [{ selector: 'app-array-layout-renderer', template: "\n <div fxLayout=\"column\" fxLayoutGap=\"16px\" [fxHide]=\"hidden\">\n <div [ngClass]=\"'array-layout-toolbar'\">\n <h2 [ngClass]=\"['mat-h2', 'array-layout-title']\">{{ label }}</h2>\n <span fxFlex></span>\n <mat-icon\n *ngIf=\"this.error?.length\"\n color=\"warn\"\n matBadge=\"{{\n this.error.split(\n '\n'\n ).length\n }}\"\n matBadgeColor=\"warn\"\n matTooltip=\"{{ this.error }}\"\n matTooltipClass=\"error-message-tooltip\"\n >\n error_outline\n </mat-icon>\n <span fxFlex></span>\n <button\n mat-button\n matTooltip=\"{{ translations.addTooltip }}\"\n [disabled]=\"!isEnabled()\"\n (click)=\"add()\"\n attr.aria-label=\"{{ translations.addAriaLabel }}\"\n >\n <mat-icon>add</mat-icon>\n </button>\n </div>\n <p *ngIf=\"noData\">{{ translations.noDataMessage }}</p>\n <div\n *ngFor=\"\n let item of [].constructor(data);\n let idx = index;\n trackBy: trackByFn;\n last as last;\n first as first\n \"\n >\n <mat-card appearance=\"outlined\">\n <mat-card-content>\n <jsonforms-outlet [renderProps]=\"getProps(idx)\"></jsonforms-outlet>\n </mat-card-content>\n <mat-card-actions *ngIf=\"isEnabled()\">\n <button\n *ngIf=\"uischema?.options?.showSortButtons\"\n class=\"item-up\"\n mat-button\n [disabled]=\"first\"\n (click)=\"up(idx)\"\n attr.aria-label=\"{{ translations.upAriaLabel }}\"\n matTooltip=\"{{ translations.up }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button\n *ngIf=\"uischema?.options?.showSortButtons\"\n class=\"item-down\"\n mat-button\n [disabled]=\"last\"\n (click)=\"down(idx)\"\n attr.aria-label=\"{{ translations.downAriaLabel }}\"\n matTooltip=\"{{ translations.down }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>arrow_downward</mat-icon>\n </button>\n <button\n mat-button\n color=\"warn\"\n (click)=\"remove(idx)\"\n attr.aria-label=\"{{ translations.removeAriaLabel }}\"\n matTooltip=\"{{ translations.removeTooltip }}\"\n matTooltipPosition=\"right\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </mat-card-actions>\n </mat-card>\n </div>\n </div>\n ", changeDetection: ChangeDetectionStrategy.OnPush, styles: ["\n .array-layout-toolbar {\n display: flex;\n align-items: center;\n }\n .array-layout-title {\n margin: 0;\n }\n ::ng-deep .error-message-tooltip {\n white-space: pre-line;\n }\n "] }]
|
|
98
|
+
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }]; } });
|
|
96
99
|
export var ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
97
100
|
//# sourceMappingURL=array-layout.renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/array-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,SAAS,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EAExB,8BAA8B,EAC9B,0BAA0B,EAE1B,KAAK,EAEL,QAAQ,EACR,WAAW,EAIX,aAAa,GACd,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"array-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/array-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,SAAS,GAGV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EAExB,8BAA8B,EAC9B,0BAA0B,EAE1B,KAAK,EAEL,QAAQ,EACR,WAAW,EAIX,aAAa,GACd,MAAM,iBAAiB,CAAC;;;;;;;;;;;AAEzB;IAwGU,uCAAiD;IAazD,6BAAY,gBAAyC;eACnD,kBAAM,gBAAgB,CAAC;IACzB,CAAC;IACD,wCAAU,GAAV,UAAW,KAAqB;QAC9B,IAAM,KAAK,GAAG,0BAA0B,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACpE,oBAAY,KAAK,EAAG;IACtB,CAAC;IACD,oCAAM,GAAN,UAAO,KAAa;QAClB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;IAC9C,CAAC;IACD,iCAAG,GAAH;QACE,IAAI,CAAC,OAAO,CACV,IAAI,CAAC,SAAS,EACd,kBAAkB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,CACvD,EAAE,CAAC;IACN,CAAC;IACD,gCAAE,GAAF,UAAG,KAAa;QACd,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAC3C,CAAC;IACD,kCAAI,GAAJ,UAAK,KAAa;QAChB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAC7C,CAAC;IACD,sCAAQ,GAAR;QACE,iBAAM,QAAQ,WAAE,CAAC;QACX,IAAA,KACJ,8BAA8B,CAC5B,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAC7D,EAHK,OAAO,aAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAA,EAAE,QAAQ,cAG3C,CAAC;QACJ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IACD,gDAAkB,GAAlB,UAAmB,KAAuB;QACxC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;IACnC,CAAC;IACD,sCAAQ,GAAR,UAAS,KAAa;QACpB,IAAM,QAAQ,GAAG,YAAY,CAC3B,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,QAAQ,CAAC,KAAK,EACnB,IAAI,CAAC,SAAS,EACd,SAAS,EACT,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE;YACpB,aAAa,CAAC,QAAQ,CAAC,CAAC;SACzB;aAAM;YACL,WAAW,CAAC,QAAQ,CAAC,CAAC;SACvB;QACD,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,YAAY;YACzB,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,UAAG,KAAK,CAAE,CAAC;YAC/C,QAAQ,UAAA;SACT,CAAC;IACJ,CAAC;IACD,uCAAS,GAAT,UAAU,KAAa;QACrB,OAAO,KAAK,CAAC;IACf,CAAC;qHA3EU,mBAAmB;yGAAnB,mBAAmB,wFArGpB,iyFAoFT;8BA5IH;CAyOC,AAnLD,CAwGU,wBAAwB,GA2EjC;SA5EY,mBAAmB;4FAAnB,mBAAmB;kBAvG/B,SAAS;+BACE,2BAA2B,YAC3B,iyFAoFT,mBAegB,uBAAuB,CAAC,MAAM;;AAgFjD,MAAM,CAAC,IAAM,yBAAyB,GAAiB,QAAQ,CAC7D,CAAC,EACD,wBAAwB,CACzB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Categorization, Category, RankedTester } from '@jsonforms/core';
|
|
2
2
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { JsonFormsAngularService, JsonFormsBaseRenderer } from '@jsonforms/angular';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class CategorizationTabLayoutRenderer extends JsonFormsBaseRenderer<Categorization> implements OnInit, OnDestroy {
|
|
5
6
|
private jsonFormsService;
|
|
6
7
|
hidden: boolean;
|
|
@@ -10,5 +11,7 @@ export declare class CategorizationTabLayoutRenderer extends JsonFormsBaseRender
|
|
|
10
11
|
constructor(jsonFormsService: JsonFormsAngularService);
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnDestroy(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CategorizationTabLayoutRenderer, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CategorizationTabLayoutRenderer, "jsonforms-categorization-layout", never, {}, {}, never, never, false, never>;
|
|
13
16
|
}
|
|
14
17
|
export declare const categorizationTester: RankedTester;
|
|
@@ -26,6 +26,11 @@ import { __extends } from "tslib";
|
|
|
26
26
|
import { and, categorizationHasCategory, defaultJsonFormsI18nState, deriveLabelForUISchemaElement, getAjv, isVisible, mapStateToLayoutProps, rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
27
27
|
import { Component } from '@angular/core';
|
|
28
28
|
import { JsonFormsAngularService, JsonFormsBaseRenderer, } from '@jsonforms/angular';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@jsonforms/angular";
|
|
31
|
+
import * as i2 from "@angular/common";
|
|
32
|
+
import * as i3 from "@angular/material/tabs";
|
|
33
|
+
import * as i4 from "@angular/flex-layout/extended";
|
|
29
34
|
var CategorizationTabLayoutRenderer = /** @class */ (function (_super) {
|
|
30
35
|
__extends(CategorizationTabLayoutRenderer, _super);
|
|
31
36
|
function CategorizationTabLayoutRenderer(jsonFormsService) {
|
|
@@ -54,17 +59,17 @@ var CategorizationTabLayoutRenderer = /** @class */ (function (_super) {
|
|
|
54
59
|
this.subscription.unsubscribe();
|
|
55
60
|
}
|
|
56
61
|
};
|
|
57
|
-
CategorizationTabLayoutRenderer
|
|
58
|
-
{ type:
|
|
59
|
-
selector: 'jsonforms-categorization-layout',
|
|
60
|
-
template: "\n <mat-tab-group dynamicHeight=\"true\" [fxHide]=\"hidden\">\n <mat-tab\n *ngFor=\"let category of visibleCategories; let i = index\"\n [label]=\"categoryLabels[i]\"\n >\n <div *ngFor=\"let element of category.elements\">\n <jsonforms-outlet\n [uischema]=\"element\"\n [path]=\"path\"\n [schema]=\"schema\"\n ></jsonforms-outlet>\n </div>\n </mat-tab>\n </mat-tab-group>\n ",
|
|
61
|
-
},] }
|
|
62
|
-
];
|
|
63
|
-
CategorizationTabLayoutRenderer.ctorParameters = function () { return [
|
|
64
|
-
{ type: JsonFormsAngularService }
|
|
65
|
-
]; };
|
|
62
|
+
CategorizationTabLayoutRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CategorizationTabLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
CategorizationTabLayoutRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CategorizationTabLayoutRenderer, selector: "jsonforms-categorization-layout", usesInheritance: true, ngImport: i0, template: "\n <mat-tab-group dynamicHeight=\"true\" [fxHide]=\"hidden\">\n <mat-tab\n *ngFor=\"let category of visibleCategories; let i = index\"\n [label]=\"categoryLabels[i]\"\n >\n <div *ngFor=\"let element of category.elements\">\n <jsonforms-outlet\n [uischema]=\"element\"\n [path]=\"path\"\n [schema]=\"schema\"\n ></jsonforms-outlet>\n </div>\n </mat-tab>\n </mat-tab-group>\n ", isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "component", type: i3.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }] });
|
|
66
64
|
return CategorizationTabLayoutRenderer;
|
|
67
65
|
}(JsonFormsBaseRenderer));
|
|
68
66
|
export { CategorizationTabLayoutRenderer };
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CategorizationTabLayoutRenderer, decorators: [{
|
|
68
|
+
type: Component,
|
|
69
|
+
args: [{
|
|
70
|
+
selector: 'jsonforms-categorization-layout',
|
|
71
|
+
template: "\n <mat-tab-group dynamicHeight=\"true\" [fxHide]=\"hidden\">\n <mat-tab\n *ngFor=\"let category of visibleCategories; let i = index\"\n [label]=\"categoryLabels[i]\"\n >\n <div *ngFor=\"let element of category.elements\">\n <jsonforms-outlet\n [uischema]=\"element\"\n [path]=\"path\"\n [schema]=\"schema\"\n ></jsonforms-outlet>\n </div>\n </mat-tab>\n </mat-tab-group>\n ",
|
|
72
|
+
}]
|
|
73
|
+
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }]; } });
|
|
69
74
|
export var categorizationTester = rankWith(2, and(uiTypeIs('Categorization'), categorizationHasCategory));
|
|
70
75
|
//# sourceMappingURL=categorization-layout.renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categorization-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/categorization-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,GAAG,EAEH,yBAAyB,EAEzB,yBAAyB,EACzB,6BAA6B,EAC7B,MAAM,EACN,SAAS,EAGT,qBAAqB,EAErB,QAAQ,EACR,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"categorization-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/categorization-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,GAAG,EAEH,yBAAyB,EAEzB,yBAAyB,EACzB,6BAA6B,EAC7B,MAAM,EACN,SAAS,EAGT,qBAAqB,EAErB,QAAQ,EACR,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;;;;;;AAG5B;IAoBU,mDAAqC;IAQ7C,yCAAoB,gBAAyC;QAA7D,YACE,iBAAO,SACR;QAFmB,sBAAgB,GAAhB,gBAAgB,CAAyB;;IAE7D,CAAC;IAED,kDAAQ,GAAR;QAAA,iBAkBC;QAjBC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC;YACzD,IAAI,EAAE,UAAC,KAAqB;gBAC1B,IAAM,KAAK,GAAG,qBAAqB,CAAC,KAAK,EAAE,KAAI,CAAC,WAAW,EAAE,CAAC,CAAC;gBAC/D,KAAI,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;gBAC7B,KAAI,CAAC,iBAAiB,GAAG,KAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CACpD,UAAC,QAAmC;oBAClC,OAAA,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;gBAAzD,CAAyD,CAC5D,CAAC;gBACF,KAAI,CAAC,cAAc,GAAG,KAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAC,OAAO;;oBACvD,OAAA,6BAA6B,CAC3B,OAA6B,EAC7B,MAAA,MAAA,KAAK,CAAC,SAAS,CAAC,IAAI,0CAAE,SAAS,mCAC7B,yBAAyB,CAAC,SAAS,CACtC,CAAA;iBAAA,CACF,CAAC;YACJ,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,qDAAW,GAAX;QACE,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;SACjC;IACH,CAAC;iIArCU,+BAA+B;qHAA/B,+BAA+B,8FAjBhC,6dAeT;0CAhEH;CAwGC,AAzDD,CAoBU,qBAAqB,GAqC9B;SAtCY,+BAA+B;4FAA/B,+BAA+B;kBAnB3C,SAAS;mBAAC;oBACT,QAAQ,EAAE,iCAAiC;oBAC3C,QAAQ,EAAE,6dAeT;iBACF;;AAyCD,MAAM,CAAC,IAAM,oBAAoB,GAAiB,QAAQ,CACxD,CAAC,EACD,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,yBAAyB,CAAC,CAC3D,CAAC"}
|
|
@@ -2,7 +2,10 @@ import { ChangeDetectorRef } from '@angular/core';
|
|
|
2
2
|
import { GroupLayout, RankedTester } from '@jsonforms/core';
|
|
3
3
|
import { LayoutRenderer } from './layout.renderer';
|
|
4
4
|
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class GroupLayoutRenderer extends LayoutRenderer<GroupLayout> {
|
|
6
7
|
constructor(jsonFormsService: JsonFormsAngularService, changeDetectionRef: ChangeDetectorRef);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupLayoutRenderer, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupLayoutRenderer, "GroupLayoutRenderer", never, {}, {}, never, never, false, never>;
|
|
7
10
|
}
|
|
8
11
|
export declare const groupLayoutTester: RankedTester;
|
|
@@ -27,24 +27,30 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular
|
|
|
27
27
|
import { rankWith, uiTypeIs } from '@jsonforms/core';
|
|
28
28
|
import { LayoutRenderer } from './layout.renderer';
|
|
29
29
|
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
30
|
+
import * as i0 from "@angular/core";
|
|
31
|
+
import * as i1 from "@jsonforms/angular";
|
|
32
|
+
import * as i2 from "@angular/common";
|
|
33
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
34
|
+
import * as i4 from "@angular/flex-layout/extended";
|
|
35
|
+
import * as i5 from "@angular/material/card";
|
|
36
|
+
import * as i6 from "./layout.renderer";
|
|
30
37
|
var GroupLayoutRenderer = /** @class */ (function (_super) {
|
|
31
38
|
__extends(GroupLayoutRenderer, _super);
|
|
32
39
|
function GroupLayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
33
40
|
return _super.call(this, jsonFormsService, changeDetectionRef) || this;
|
|
34
41
|
}
|
|
35
|
-
GroupLayoutRenderer
|
|
36
|
-
{ type:
|
|
37
|
-
selector: 'GroupLayoutRenderer',
|
|
38
|
-
template: "\n <mat-card fxLayout=\"column\" [fxHide]=\"hidden\">\n <mat-card-title class=\"mat-title\">{{ label }}</mat-card-title>\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </mat-card>\n ",
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
GroupLayoutRenderer.ctorParameters = function () { return [
|
|
43
|
-
{ type: JsonFormsAngularService },
|
|
44
|
-
{ type: ChangeDetectorRef }
|
|
45
|
-
]; };
|
|
42
|
+
GroupLayoutRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GroupLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
GroupLayoutRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GroupLayoutRenderer, selector: "GroupLayoutRenderer", usesInheritance: true, ngImport: i0, template: "\n <mat-card appearance=\"outlined\" fxLayout=\"column\" [fxHide]=\"hidden\">\n <mat-card-title class=\"mat-headline-6\">{{ label }}</mat-card-title>\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </mat-card>\n ", isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "component", type: i5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "pipe", type: i6.LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
46
44
|
return GroupLayoutRenderer;
|
|
47
45
|
}(LayoutRenderer));
|
|
48
46
|
export { GroupLayoutRenderer };
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GroupLayoutRenderer, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: 'GroupLayoutRenderer',
|
|
51
|
+
template: "\n <mat-card appearance=\"outlined\" fxLayout=\"column\" [fxHide]=\"hidden\">\n <mat-card-title class=\"mat-headline-6\">{{ label }}</mat-card-title>\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </mat-card>\n ",
|
|
52
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
53
|
+
}]
|
|
54
|
+
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }, { type: i0.ChangeDetectorRef }]; } });
|
|
49
55
|
export var groupLayoutTester = rankWith(1, uiTypeIs('Group'));
|
|
50
56
|
//# sourceMappingURL=group-layout.renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/group-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAA6B,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"group-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/group-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAA6B,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;AAE7D;IAkByC,uCAA2B;IAClE,6BACE,gBAAyC,EACzC,kBAAqC;eAErC,kBAAM,gBAAgB,EAAE,kBAAkB,CAAC;IAC7C,CAAC;qHANU,mBAAmB;yGAAnB,mBAAmB,kFAhBpB,4bAaT;8BAhDH;CA0DC,AAzBD,CAkByC,cAAc,GAOtD;SAPY,mBAAmB;4FAAnB,mBAAmB;kBAlB/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,QAAQ,EAAE,4bAaT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;AASD,MAAM,CAAC,IAAM,iBAAiB,GAAiB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,10 @@ import { ChangeDetectorRef } from '@angular/core';
|
|
|
2
2
|
import { HorizontalLayout, RankedTester } from '@jsonforms/core';
|
|
3
3
|
import { LayoutRenderer } from './layout.renderer';
|
|
4
4
|
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class HorizontalLayoutRenderer extends LayoutRenderer<HorizontalLayout> {
|
|
6
7
|
constructor(jsonFormsService: JsonFormsAngularService, changeDetectionRef: ChangeDetectorRef);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HorizontalLayoutRenderer, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HorizontalLayoutRenderer, "HorizontalLayoutRenderer", never, {}, {}, never, never, false, never>;
|
|
7
10
|
}
|
|
8
11
|
export declare const horizontalLayoutTester: RankedTester;
|
|
@@ -27,24 +27,29 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular
|
|
|
27
27
|
import { rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
28
28
|
import { LayoutRenderer } from './layout.renderer';
|
|
29
29
|
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
30
|
+
import * as i0 from "@angular/core";
|
|
31
|
+
import * as i1 from "@jsonforms/angular";
|
|
32
|
+
import * as i2 from "@angular/common";
|
|
33
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
34
|
+
import * as i4 from "@angular/flex-layout/extended";
|
|
35
|
+
import * as i5 from "./layout.renderer";
|
|
30
36
|
var HorizontalLayoutRenderer = /** @class */ (function (_super) {
|
|
31
37
|
__extends(HorizontalLayoutRenderer, _super);
|
|
32
38
|
function HorizontalLayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
33
39
|
return _super.call(this, jsonFormsService, changeDetectionRef) || this;
|
|
34
40
|
}
|
|
35
|
-
HorizontalLayoutRenderer
|
|
36
|
-
{ type:
|
|
37
|
-
selector: 'HorizontalLayoutRenderer',
|
|
38
|
-
template: "\n <div\n fxLayout=\"row wrap\"\n fxLayoutGap=\"16px\"\n [fxHide]=\"hidden\"\n fxLayoutAlign=\"center start\"\n >\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </div>\n ",
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
HorizontalLayoutRenderer.ctorParameters = function () { return [
|
|
43
|
-
{ type: JsonFormsAngularService },
|
|
44
|
-
{ type: ChangeDetectorRef }
|
|
45
|
-
]; };
|
|
41
|
+
HorizontalLayoutRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HorizontalLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
HorizontalLayoutRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HorizontalLayoutRenderer, selector: "HorizontalLayoutRenderer", usesInheritance: true, ngImport: i0, template: "\n <div\n fxLayout=\"row wrap\"\n fxLayoutGap=\"16px\"\n [fxHide]=\"hidden\"\n fxLayoutAlign=\"center start\"\n >\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </div>\n ", isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "pipe", type: i5.LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
46
43
|
return HorizontalLayoutRenderer;
|
|
47
44
|
}(LayoutRenderer));
|
|
48
45
|
export { HorizontalLayoutRenderer };
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HorizontalLayoutRenderer, decorators: [{
|
|
47
|
+
type: Component,
|
|
48
|
+
args: [{
|
|
49
|
+
selector: 'HorizontalLayoutRenderer',
|
|
50
|
+
template: "\n <div\n fxLayout=\"row wrap\"\n fxLayoutGap=\"16px\"\n [fxHide]=\"hidden\"\n fxLayoutAlign=\"center start\"\n >\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </div>\n ",
|
|
51
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
52
|
+
}]
|
|
53
|
+
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }, { type: i0.ChangeDetectorRef }]; } });
|
|
49
54
|
export var horizontalLayoutTester = rankWith(1, uiTypeIs('HorizontalLayout'));
|
|
50
55
|
//# sourceMappingURL=horizontal-layout.renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"horizontal-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/horizontal-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,QAAQ,EACR,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"horizontal-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/horizontal-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,QAAQ,EACR,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;;;;;;;AAE7D;IAsB8C,4CAAgC;IAC5E,kCACE,gBAAyC,EACzC,kBAAqC;eAErC,kBAAM,gBAAgB,EAAE,kBAAkB,CAAC;IAC7C,CAAC;0HANU,wBAAwB;8GAAxB,wBAAwB,uFApBzB,qaAiBT;mCAzDH;CAmEC,AA7BD,CAsB8C,cAAc,GAO3D;SAPY,wBAAwB;4FAAxB,wBAAwB;kBAtBpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE,qaAiBT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;AASD,MAAM,CAAC,IAAM,sBAAsB,GAAiB,QAAQ,CAC1D,CAAC,EACD,QAAQ,CAAC,kBAAkB,CAAC,CAC7B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnDestroy, OnInit, ChangeDetectorRef, PipeTransform } from '@angular/core';
|
|
2
2
|
import { JsonFormsAngularService, JsonFormsBaseRenderer } from '@jsonforms/angular';
|
|
3
3
|
import { Layout, OwnPropsOfRenderer, JsonSchema } from '@jsonforms/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LayoutRenderer<T extends Layout> extends JsonFormsBaseRenderer<T> implements OnInit, OnDestroy {
|
|
5
6
|
private jsonFormsService;
|
|
6
7
|
protected changeDetectionRef: ChangeDetectorRef;
|
|
@@ -11,7 +12,11 @@ export declare class LayoutRenderer<T extends Layout> extends JsonFormsBaseRende
|
|
|
11
12
|
ngOnInit(): void;
|
|
12
13
|
ngOnDestroy(): void;
|
|
13
14
|
trackElement(_index: number, renderProp: OwnPropsOfRenderer): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutRenderer<any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutRenderer<any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
14
17
|
}
|
|
15
18
|
export declare class LayoutChildrenRenderPropsPipe implements PipeTransform {
|
|
16
19
|
transform(uischema: Layout, schema: JsonSchema, path: string): OwnPropsOfRenderer[];
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutChildrenRenderPropsPipe, never>;
|
|
21
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LayoutChildrenRenderPropsPipe, "layoutChildrenRenderProps", false>;
|
|
17
22
|
}
|
|
@@ -26,6 +26,8 @@ import { __extends } from "tslib";
|
|
|
26
26
|
import { ChangeDetectorRef, Component, Pipe, } from '@angular/core';
|
|
27
27
|
import { JsonFormsAngularService, JsonFormsBaseRenderer, } from '@jsonforms/angular';
|
|
28
28
|
import { mapStateToLayoutProps, } from '@jsonforms/core';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@jsonforms/angular";
|
|
29
31
|
var LayoutRenderer = /** @class */ (function (_super) {
|
|
30
32
|
__extends(LayoutRenderer, _super);
|
|
31
33
|
function LayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
@@ -55,18 +57,17 @@ var LayoutRenderer = /** @class */ (function (_super) {
|
|
|
55
57
|
? renderProp.path + JSON.stringify(renderProp.uischema)
|
|
56
58
|
: null;
|
|
57
59
|
};
|
|
58
|
-
LayoutRenderer
|
|
59
|
-
|
|
60
|
-
template: '',
|
|
61
|
-
},] }
|
|
62
|
-
];
|
|
63
|
-
LayoutRenderer.ctorParameters = function () { return [
|
|
64
|
-
{ type: JsonFormsAngularService },
|
|
65
|
-
{ type: ChangeDetectorRef }
|
|
66
|
-
]; };
|
|
60
|
+
LayoutRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
LayoutRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LayoutRenderer, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
67
62
|
return LayoutRenderer;
|
|
68
63
|
}(JsonFormsBaseRenderer));
|
|
69
64
|
export { LayoutRenderer };
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LayoutRenderer, decorators: [{
|
|
66
|
+
type: Component,
|
|
67
|
+
args: [{
|
|
68
|
+
template: '',
|
|
69
|
+
}]
|
|
70
|
+
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }, { type: i0.ChangeDetectorRef }]; } });
|
|
70
71
|
var LayoutChildrenRenderPropsPipe = /** @class */ (function () {
|
|
71
72
|
function LayoutChildrenRenderPropsPipe() {
|
|
72
73
|
}
|
|
@@ -78,10 +79,13 @@ var LayoutChildrenRenderPropsPipe = /** @class */ (function () {
|
|
|
78
79
|
}); });
|
|
79
80
|
return elements;
|
|
80
81
|
};
|
|
81
|
-
LayoutChildrenRenderPropsPipe
|
|
82
|
-
|
|
83
|
-
];
|
|
82
|
+
LayoutChildrenRenderPropsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LayoutChildrenRenderPropsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
83
|
+
LayoutChildrenRenderPropsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" });
|
|
84
84
|
return LayoutChildrenRenderPropsPipe;
|
|
85
85
|
}());
|
|
86
86
|
export { LayoutChildrenRenderPropsPipe };
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LayoutChildrenRenderPropsPipe, decorators: [{
|
|
88
|
+
type: Pipe,
|
|
89
|
+
args: [{ name: 'layoutChildrenRenderProps' }]
|
|
90
|
+
}] });
|
|
87
91
|
//# sourceMappingURL=layout.renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAGL,iBAAiB,EACjB,SAAS,EAET,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,qBAAqB,GAItB,MAAM,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAGL,iBAAiB,EACjB,SAAS,EAET,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,qBAAqB,GAItB,MAAM,iBAAiB,CAAC;;;AAGzB;IAIU,kCAAwB;IAOhC,wBACU,gBAAyC,EACvC,kBAAqC;QAFjD,YAIE,iBAAO,SACR;QAJS,sBAAgB,GAAhB,gBAAgB,CAAyB;QACvC,wBAAkB,GAAlB,kBAAkB,CAAmB;;IAGjD,CAAC;IAED,iCAAQ,GAAR;QAAA,iBASC;QARC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC;YACzD,IAAI,EAAE,UAAC,KAAqB;gBAC1B,IAAM,KAAK,GAAG,qBAAqB,CAAC,KAAK,EAAE,KAAI,CAAC,WAAW,EAAE,CAAC,CAAC;gBAC/D,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;gBACzB,KAAI,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;gBAC7B,KAAI,CAAC,kBAAkB,CAAC,YAAY,EAAE,CAAC;YACzC,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,oCAAW,GAAX;QACE,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;SACjC;IACH,CAAC;IAED,qCAAY,GAAZ,UAAa,MAAc,EAAE,UAA8B;QACzD,OAAO,UAAU;YACf,CAAC,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC;IACX,CAAC;gHApCU,cAAc;oGAAd,cAAc,2EAFf,EAAE;yBA/Cd;CAsFC,AAxCD,CAIU,qBAAqB,GAoC9B;SArCY,cAAc;4FAAd,cAAc;kBAH1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,EAAE;iBACb;;AAwCD;IAAA;KAcC;IAZC,iDAAS,GAAT,UACE,QAAgB,EAChB,MAAkB,EAClB,IAAY;QAEZ,IAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,UAAC,EAAmB,IAAK,OAAA,CAAC;YACvE,QAAQ,EAAE,EAAE;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,EAJsE,CAItE,CAAC,CAAC;QACJ,OAAO,QAAQ,CAAC;IAClB,CAAC;+HAZU,6BAA6B;6HAA7B,6BAA6B;wCAzF1C;CAsGC,AAdD,IAcC;SAbY,6BAA6B;4FAA7B,6BAA6B;kBADzC,IAAI;mBAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE"}
|
|
@@ -2,7 +2,10 @@ import { ChangeDetectorRef } from '@angular/core';
|
|
|
2
2
|
import { RankedTester, VerticalLayout } from '@jsonforms/core';
|
|
3
3
|
import { LayoutRenderer } from './layout.renderer';
|
|
4
4
|
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class VerticalLayoutRenderer extends LayoutRenderer<VerticalLayout> {
|
|
6
7
|
constructor(jsonFormsService: JsonFormsAngularService, changeDetectionRef: ChangeDetectorRef);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VerticalLayoutRenderer, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VerticalLayoutRenderer, "VerticalLayoutRenderer", never, {}, {}, never, never, false, never>;
|
|
7
10
|
}
|
|
8
11
|
export declare const verticalLayoutTester: RankedTester;
|
|
@@ -27,24 +27,29 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular
|
|
|
27
27
|
import { rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
28
28
|
import { LayoutRenderer } from './layout.renderer';
|
|
29
29
|
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
30
|
+
import * as i0 from "@angular/core";
|
|
31
|
+
import * as i1 from "@jsonforms/angular";
|
|
32
|
+
import * as i2 from "@angular/common";
|
|
33
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
34
|
+
import * as i4 from "@angular/flex-layout/extended";
|
|
35
|
+
import * as i5 from "./layout.renderer";
|
|
30
36
|
var VerticalLayoutRenderer = /** @class */ (function (_super) {
|
|
31
37
|
__extends(VerticalLayoutRenderer, _super);
|
|
32
38
|
function VerticalLayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
33
39
|
return _super.call(this, jsonFormsService, changeDetectionRef) || this;
|
|
34
40
|
}
|
|
35
|
-
VerticalLayoutRenderer
|
|
36
|
-
{ type:
|
|
37
|
-
selector: 'VerticalLayoutRenderer',
|
|
38
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"16px\" [fxHide]=\"hidden\">\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </div>\n ",
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
VerticalLayoutRenderer.ctorParameters = function () { return [
|
|
43
|
-
{ type: JsonFormsAngularService },
|
|
44
|
-
{ type: ChangeDetectorRef }
|
|
45
|
-
]; };
|
|
41
|
+
VerticalLayoutRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VerticalLayoutRenderer, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
VerticalLayoutRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: VerticalLayoutRenderer, selector: "VerticalLayoutRenderer", usesInheritance: true, ngImport: i0, template: "\n <div fxLayout=\"column\" fxLayoutGap=\"16px\" [fxHide]=\"hidden\">\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </div>\n ", isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }, { kind: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "pipe", type: i5.LayoutChildrenRenderPropsPipe, name: "layoutChildrenRenderProps" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
46
43
|
return VerticalLayoutRenderer;
|
|
47
44
|
}(LayoutRenderer));
|
|
48
45
|
export { VerticalLayoutRenderer };
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: VerticalLayoutRenderer, decorators: [{
|
|
47
|
+
type: Component,
|
|
48
|
+
args: [{
|
|
49
|
+
selector: 'VerticalLayoutRenderer',
|
|
50
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"16px\" [fxHide]=\"hidden\">\n <div\n *ngFor=\"\n let props of uischema | layoutChildrenRenderProps : schema : path;\n trackBy: trackElement\n \"\n fxFlex\n >\n <jsonforms-outlet [renderProps]=\"props\"></jsonforms-outlet>\n </div>\n </div>\n ",
|
|
51
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
52
|
+
}]
|
|
53
|
+
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }, { type: i0.ChangeDetectorRef }]; } });
|
|
49
54
|
export var verticalLayoutTester = rankWith(1, uiTypeIs('VerticalLayout'));
|
|
50
55
|
//# sourceMappingURL=vertical-layout.renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/vertical-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,QAAQ,EACR,QAAQ,GAET,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC
|
|
1
|
+
{"version":3,"file":"vertical-layout.renderer.js","sourceRoot":"","sources":["../../../src/layouts/vertical-layout.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,QAAQ,EACR,QAAQ,GAET,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;;;;;;;AAE7D;IAiB4C,0CAA8B;IACxE,gCACE,gBAAyC,EACzC,kBAAqC;eAErC,kBAAM,gBAAgB,EAAE,kBAAkB,CAAC;IAC7C,CAAC;wHANU,sBAAsB;4GAAtB,sBAAsB,qFAfvB,kWAYT;iCApDH;CA8DC,AAxBD,CAiB4C,cAAc,GAOzD;SAPY,sBAAsB;4FAAtB,sBAAsB;kBAjBlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE,kWAYT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;AASD,MAAM,CAAC,IAAM,oBAAoB,GAAiB,QAAQ,CACxD,CAAC,EACD,QAAQ,CAAC,gBAAgB,CAAC,CAC3B,CAAC"}
|
package/lib/esm/module.d.ts
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./controls/boolean.renderer";
|
|
3
|
+
import * as i2 from "./controls/textarea.renderer";
|
|
4
|
+
import * as i3 from "./controls/text.renderer";
|
|
5
|
+
import * as i4 from "./controls/number.renderer";
|
|
6
|
+
import * as i5 from "./controls/range.renderer";
|
|
7
|
+
import * as i6 from "./controls/date.renderer";
|
|
8
|
+
import * as i7 from "./controls/toggle.renderer";
|
|
9
|
+
import * as i8 from "./layouts/vertical-layout.renderer";
|
|
10
|
+
import * as i9 from "./layouts/horizontal-layout.renderer";
|
|
11
|
+
import * as i10 from "./layouts/categorization-layout.renderer";
|
|
12
|
+
import * as i11 from "./layouts/group-layout.renderer";
|
|
13
|
+
import * as i12 from "./other/label.renderer";
|
|
14
|
+
import * as i13 from "./other/master-detail/master";
|
|
15
|
+
import * as i14 from "./other/master-detail/detail";
|
|
16
|
+
import * as i15 from "./other/object.renderer";
|
|
17
|
+
import * as i16 from "./controls/autocomplete.renderer";
|
|
18
|
+
import * as i17 from "./other/table.renderer";
|
|
19
|
+
import * as i18 from "./layouts/array-layout.renderer";
|
|
20
|
+
import * as i19 from "./layouts/layout.renderer";
|
|
21
|
+
import * as i20 from "@angular/common";
|
|
22
|
+
import * as i21 from "@jsonforms/angular";
|
|
23
|
+
import * as i22 from "@angular/material/form-field";
|
|
24
|
+
import * as i23 from "@angular/material/checkbox";
|
|
25
|
+
import * as i24 from "@angular/material/input";
|
|
26
|
+
import * as i25 from "@angular/material/slider";
|
|
27
|
+
import * as i26 from "@angular/material/slide-toggle";
|
|
28
|
+
import * as i27 from "@angular/material/core";
|
|
29
|
+
import * as i28 from "@angular/material/datepicker";
|
|
30
|
+
import * as i29 from "@angular/material/tabs";
|
|
31
|
+
import * as i30 from "@angular/material/sidenav";
|
|
32
|
+
import * as i31 from "@angular/material/list";
|
|
33
|
+
import * as i32 from "@angular/forms";
|
|
34
|
+
import * as i33 from "@angular/flex-layout";
|
|
35
|
+
import * as i34 from "@angular/material/card";
|
|
36
|
+
import * as i35 from "@angular/material/select";
|
|
37
|
+
import * as i36 from "@angular/material/button";
|
|
38
|
+
import * as i37 from "@angular/material/icon";
|
|
39
|
+
import * as i38 from "@angular/material/autocomplete";
|
|
40
|
+
import * as i39 from "@angular/material/table";
|
|
41
|
+
import * as i40 from "@angular/material/toolbar";
|
|
42
|
+
import * as i41 from "@angular/material/tooltip";
|
|
43
|
+
import * as i42 from "@angular/material/badge";
|
|
1
44
|
export declare class JsonFormsAngularMaterialModule {
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JsonFormsAngularMaterialModule, never>;
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<JsonFormsAngularMaterialModule, [typeof i1.BooleanControlRenderer, typeof i2.TextAreaRenderer, typeof i3.TextControlRenderer, typeof i4.NumberControlRenderer, typeof i5.RangeControlRenderer, typeof i6.DateControlRenderer, typeof i7.ToggleControlRenderer, typeof i8.VerticalLayoutRenderer, typeof i9.HorizontalLayoutRenderer, typeof i10.CategorizationTabLayoutRenderer, typeof i11.GroupLayoutRenderer, typeof i12.LabelRenderer, typeof i13.MasterListComponent, typeof i14.JsonFormsDetailComponent, typeof i15.ObjectControlRenderer, typeof i16.AutocompleteControlRenderer, typeof i17.TableRenderer, typeof i18.ArrayLayoutRenderer, typeof i19.LayoutChildrenRenderPropsPipe], [typeof i20.CommonModule, typeof i21.JsonFormsModule, typeof i22.MatFormFieldModule, typeof i23.MatCheckboxModule, typeof i24.MatInputModule, typeof i25.MatSliderModule, typeof i26.MatSlideToggleModule, typeof i27.MatNativeDateModule, typeof i28.MatDatepickerModule, typeof i29.MatTabsModule, typeof i30.MatSidenavModule, typeof i31.MatListModule, typeof i32.ReactiveFormsModule, typeof i33.FlexLayoutModule, typeof i34.MatCardModule, typeof i35.MatSelectModule, typeof i36.MatButtonModule, typeof i37.MatIconModule, typeof i38.MatAutocompleteModule, typeof i39.MatTableModule, typeof i40.MatToolbarModule, typeof i41.MatTooltipModule, typeof i42.MatBadgeModule], [typeof i20.CommonModule, typeof i21.JsonFormsModule, typeof i22.MatFormFieldModule, typeof i23.MatCheckboxModule, typeof i24.MatInputModule, typeof i25.MatSliderModule, typeof i26.MatSlideToggleModule, typeof i27.MatNativeDateModule, typeof i28.MatDatepickerModule, typeof i29.MatTabsModule, typeof i30.MatSidenavModule, typeof i31.MatListModule, typeof i32.ReactiveFormsModule, typeof i33.FlexLayoutModule, typeof i34.MatCardModule, typeof i35.MatSelectModule, typeof i36.MatButtonModule, typeof i37.MatIconModule, typeof i38.MatAutocompleteModule]>;
|
|
47
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<JsonFormsAngularMaterialModule>;
|
|
2
48
|
}
|