@jsonforms/angular-material 3.2.0-alpha.4 → 3.2.0-beta.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.
- package/lib/LICENSE +22 -0
- package/lib/README.md +137 -0
- package/lib/esm2022/jsonforms-angular-material.mjs +5 -0
- package/lib/esm2022/library/controls/autocomplete.renderer.mjs +171 -0
- package/lib/esm2022/library/controls/boolean.renderer.mjs +84 -0
- package/lib/esm2022/library/controls/date.renderer.mjs +93 -0
- package/lib/esm2022/library/controls/index.mjs +33 -0
- package/lib/esm2022/library/controls/number.renderer.mjs +173 -0
- package/lib/esm2022/library/controls/range.renderer.mjs +104 -0
- package/lib/esm2022/library/controls/text.renderer.mjs +98 -0
- package/lib/esm2022/library/controls/textarea.renderer.mjs +80 -0
- package/lib/esm2022/library/controls/toggle.renderer.mjs +86 -0
- package/lib/esm2022/library/index.mjs +69 -0
- package/lib/esm2022/library/layouts/array-layout.renderer.mjs +259 -0
- package/lib/esm2022/library/layouts/categorization-layout.renderer.mjs +105 -0
- package/lib/esm2022/library/layouts/group-layout.renderer.mjs +78 -0
- package/lib/esm2022/library/layouts/horizontal-layout.renderer.mjs +73 -0
- package/lib/esm2022/library/layouts/index.mjs +30 -0
- package/lib/esm2022/library/layouts/layout.renderer.mjs +86 -0
- package/lib/esm2022/library/layouts/vertical-layout.renderer.mjs +67 -0
- package/lib/esm2022/library/module.mjs +239 -0
- package/lib/esm2022/library/other/index.mjs +29 -0
- package/lib/esm2022/library/other/label.renderer.mjs +61 -0
- package/lib/esm2022/library/other/master-detail/detail.mjs +59 -0
- package/lib/esm2022/library/other/master-detail/index.mjs +27 -0
- package/lib/esm2022/library/other/master-detail/master.mjs +250 -0
- package/lib/esm2022/library/other/object.renderer.mjs +84 -0
- package/lib/esm2022/library/other/table.renderer.mjs +314 -0
- package/lib/esm2022/public_api.mjs +2 -0
- package/lib/fesm2022/jsonforms-angular-material.mjs +2564 -0
- package/lib/fesm2022/jsonforms-angular-material.mjs.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/jsonforms-angular-material.d.ts.map +1 -0
- package/lib/{cjs → library}/controls/autocomplete.renderer.d.ts +3 -3
- package/lib/library/controls/autocomplete.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/controls/boolean.renderer.d.ts +1 -0
- package/lib/library/controls/boolean.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/controls/date.renderer.d.ts +1 -0
- package/lib/library/controls/date.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/controls/index.d.ts +1 -0
- package/lib/library/controls/index.d.ts.map +1 -0
- package/lib/{esm → library}/controls/number.renderer.d.ts +1 -0
- package/lib/library/controls/number.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/controls/range.renderer.d.ts +2 -1
- package/lib/library/controls/range.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/controls/text.renderer.d.ts +1 -0
- package/lib/library/controls/text.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/controls/textarea.renderer.d.ts +1 -0
- package/lib/library/controls/textarea.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/controls/toggle.renderer.d.ts +1 -0
- package/lib/library/controls/toggle.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/index.d.ts +1 -0
- package/lib/library/index.d.ts.map +1 -0
- package/lib/{esm → library}/layouts/array-layout.renderer.d.ts +1 -0
- package/lib/library/layouts/array-layout.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/layouts/categorization-layout.renderer.d.ts +1 -0
- package/lib/library/layouts/categorization-layout.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/layouts/group-layout.renderer.d.ts +1 -0
- package/lib/library/layouts/group-layout.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/layouts/horizontal-layout.renderer.d.ts +1 -0
- package/lib/library/layouts/horizontal-layout.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/layouts/index.d.ts +1 -0
- package/lib/library/layouts/index.d.ts.map +1 -0
- package/lib/{esm → library}/layouts/layout.renderer.d.ts +1 -0
- package/lib/library/layouts/layout.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/layouts/vertical-layout.renderer.d.ts +1 -0
- package/lib/library/layouts/vertical-layout.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/module.d.ts +11 -11
- package/lib/library/module.d.ts.map +1 -0
- package/lib/{esm → library}/other/index.d.ts +1 -0
- package/lib/library/other/index.d.ts.map +1 -0
- package/lib/{esm → library}/other/label.renderer.d.ts +1 -0
- package/lib/library/other/label.renderer.d.ts.map +1 -0
- package/lib/{esm → library}/other/master-detail/detail.d.ts +2 -1
- package/lib/library/other/master-detail/detail.d.ts.map +1 -0
- package/lib/{cjs → library}/other/master-detail/index.d.ts +1 -0
- package/lib/library/other/master-detail/index.d.ts.map +1 -0
- package/lib/{esm → library}/other/master-detail/master.d.ts +1 -0
- package/lib/library/other/master-detail/master.d.ts.map +1 -0
- package/lib/{esm → library}/other/object.renderer.d.ts +1 -0
- package/lib/library/other/object.renderer.d.ts.map +1 -0
- package/lib/{cjs → library}/other/table.renderer.d.ts +1 -0
- package/lib/library/other/table.renderer.d.ts.map +1 -0
- package/lib/package.json +75 -0
- package/lib/public_api.d.ts +2 -0
- package/lib/public_api.d.ts.map +1 -0
- package/package.json +40 -53
- package/src/index.ts +1 -121
- package/src/{controls → library/controls}/autocomplete.renderer.ts +13 -3
- package/src/{controls → library/controls}/boolean.renderer.ts +16 -6
- package/src/{controls → library/controls}/date.renderer.ts +12 -1
- package/src/{controls → library/controls}/number.renderer.ts +12 -1
- package/src/{controls → library/controls}/range.renderer.ts +16 -3
- package/src/{controls → library/controls}/text.renderer.ts +12 -1
- package/src/{controls → library/controls}/textarea.renderer.ts +12 -1
- package/src/{controls → library/controls}/toggle.renderer.ts +1 -1
- package/src/library/index.ts +121 -0
- package/src/{layouts → library/layouts}/array-layout.renderer.ts +21 -12
- package/src/{layouts → library/layouts}/categorization-layout.renderer.ts +4 -1
- package/src/{layouts → library/layouts}/group-layout.renderer.ts +18 -2
- package/src/{layouts → library/layouts}/horizontal-layout.renderer.ts +16 -5
- package/src/{layouts → library/layouts}/vertical-layout.renderer.ts +13 -2
- package/src/{module.ts → library/module.ts} +0 -3
- package/src/{other → library/other}/label.renderer.ts +8 -1
- package/src/{other → library/other}/master-detail/master.ts +4 -4
- package/src/{other → library/other}/object.renderer.ts +8 -1
- package/src/public_api.ts +1 -0
- package/lib/cjs/controls/autocomplete.renderer.js +0 -122
- package/lib/cjs/controls/autocomplete.renderer.js.map +0 -1
- package/lib/cjs/controls/boolean.renderer.d.ts +0 -14
- package/lib/cjs/controls/boolean.renderer.js +0 -67
- package/lib/cjs/controls/boolean.renderer.js.map +0 -1
- package/lib/cjs/controls/date.renderer.js +0 -63
- package/lib/cjs/controls/date.renderer.js.map +0 -1
- package/lib/cjs/controls/index.js +0 -36
- package/lib/cjs/controls/index.js.map +0 -1
- package/lib/cjs/controls/number.renderer.d.ts +0 -23
- package/lib/cjs/controls/number.renderer.js +0 -140
- package/lib/cjs/controls/number.renderer.js.map +0 -1
- package/lib/cjs/controls/range.renderer.d.ts +0 -17
- package/lib/cjs/controls/range.renderer.js +0 -70
- package/lib/cjs/controls/range.renderer.js.map +0 -1
- package/lib/cjs/controls/text.renderer.d.ts +0 -12
- package/lib/cjs/controls/text.renderer.js +0 -78
- package/lib/cjs/controls/text.renderer.js.map +0 -1
- package/lib/cjs/controls/textarea.renderer.d.ts +0 -11
- package/lib/cjs/controls/textarea.renderer.js +0 -62
- package/lib/cjs/controls/textarea.renderer.js.map +0 -1
- package/lib/cjs/controls/toggle.renderer.js +0 -64
- package/lib/cjs/controls/toggle.renderer.js.map +0 -1
- package/lib/cjs/index.js +0 -73
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/layouts/array-layout.renderer.d.ts +0 -29
- package/lib/cjs/layouts/array-layout.renderer.js +0 -103
- package/lib/cjs/layouts/array-layout.renderer.js.map +0 -1
- package/lib/cjs/layouts/categorization-layout.renderer.d.ts +0 -17
- package/lib/cjs/layouts/categorization-layout.renderer.js +0 -78
- package/lib/cjs/layouts/categorization-layout.renderer.js.map +0 -1
- package/lib/cjs/layouts/group-layout.renderer.js +0 -59
- package/lib/cjs/layouts/group-layout.renderer.js.map +0 -1
- package/lib/cjs/layouts/horizontal-layout.renderer.d.ts +0 -11
- package/lib/cjs/layouts/horizontal-layout.renderer.js +0 -58
- package/lib/cjs/layouts/horizontal-layout.renderer.js.map +0 -1
- package/lib/cjs/layouts/index.d.ts +0 -5
- package/lib/cjs/layouts/index.js +0 -33
- package/lib/cjs/layouts/index.js.map +0 -1
- package/lib/cjs/layouts/layout.renderer.d.ts +0 -22
- package/lib/cjs/layouts/layout.renderer.js +0 -94
- package/lib/cjs/layouts/layout.renderer.js.map +0 -1
- package/lib/cjs/layouts/vertical-layout.renderer.js +0 -58
- package/lib/cjs/layouts/vertical-layout.renderer.js.map +0 -1
- package/lib/cjs/module.js +0 -254
- package/lib/cjs/module.js.map +0 -1
- package/lib/cjs/other/index.d.ts +0 -4
- package/lib/cjs/other/index.js +0 -32
- package/lib/cjs/other/index.js.map +0 -1
- package/lib/cjs/other/label.renderer.d.ts +0 -16
- package/lib/cjs/other/label.renderer.js +0 -70
- package/lib/cjs/other/label.renderer.js.map +0 -1
- package/lib/cjs/other/master-detail/detail.d.ts +0 -9
- package/lib/cjs/other/master-detail/detail.js +0 -61
- package/lib/cjs/other/master-detail/detail.js.map +0 -1
- package/lib/cjs/other/master-detail/index.js +0 -30
- package/lib/cjs/other/master-detail/index.js.map +0 -1
- package/lib/cjs/other/master-detail/master.d.ts +0 -27
- package/lib/cjs/other/master-detail/master.js +0 -153
- package/lib/cjs/other/master-detail/master.js.map +0 -1
- package/lib/cjs/other/object.renderer.d.ts +0 -11
- package/lib/cjs/other/object.renderer.js +0 -77
- package/lib/cjs/other/object.renderer.js.map +0 -1
- package/lib/cjs/other/table.renderer.js +0 -147
- package/lib/cjs/other/table.renderer.js.map +0 -1
- package/lib/esm/controls/autocomplete.renderer.d.ts +0 -49
- package/lib/esm/controls/autocomplete.renderer.js +0 -119
- package/lib/esm/controls/autocomplete.renderer.js.map +0 -1
- package/lib/esm/controls/boolean.renderer.js +0 -64
- package/lib/esm/controls/boolean.renderer.js.map +0 -1
- package/lib/esm/controls/date.renderer.d.ts +0 -11
- package/lib/esm/controls/date.renderer.js +0 -60
- package/lib/esm/controls/date.renderer.js.map +0 -1
- package/lib/esm/controls/index.d.ts +0 -8
- package/lib/esm/controls/index.js +0 -33
- package/lib/esm/controls/index.js.map +0 -1
- package/lib/esm/controls/number.renderer.js +0 -137
- package/lib/esm/controls/number.renderer.js.map +0 -1
- package/lib/esm/controls/range.renderer.js +0 -67
- package/lib/esm/controls/range.renderer.js.map +0 -1
- package/lib/esm/controls/text.renderer.js +0 -75
- package/lib/esm/controls/text.renderer.js.map +0 -1
- package/lib/esm/controls/textarea.renderer.js +0 -59
- package/lib/esm/controls/textarea.renderer.js.map +0 -1
- package/lib/esm/controls/toggle.renderer.d.ts +0 -14
- package/lib/esm/controls/toggle.renderer.js +0 -61
- package/lib/esm/controls/toggle.renderer.js.map +0 -1
- package/lib/esm/index.d.ts +0 -10
- package/lib/esm/index.js +0 -69
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/layouts/array-layout.renderer.js +0 -100
- package/lib/esm/layouts/array-layout.renderer.js.map +0 -1
- package/lib/esm/layouts/categorization-layout.renderer.js +0 -75
- package/lib/esm/layouts/categorization-layout.renderer.js.map +0 -1
- package/lib/esm/layouts/group-layout.renderer.d.ts +0 -11
- package/lib/esm/layouts/group-layout.renderer.js +0 -56
- package/lib/esm/layouts/group-layout.renderer.js.map +0 -1
- package/lib/esm/layouts/horizontal-layout.renderer.js +0 -55
- package/lib/esm/layouts/horizontal-layout.renderer.js.map +0 -1
- package/lib/esm/layouts/index.js +0 -30
- package/lib/esm/layouts/index.js.map +0 -1
- package/lib/esm/layouts/layout.renderer.js +0 -91
- package/lib/esm/layouts/layout.renderer.js.map +0 -1
- package/lib/esm/layouts/vertical-layout.renderer.d.ts +0 -11
- package/lib/esm/layouts/vertical-layout.renderer.js +0 -55
- package/lib/esm/layouts/vertical-layout.renderer.js.map +0 -1
- package/lib/esm/module.d.ts +0 -48
- package/lib/esm/module.js +0 -250
- package/lib/esm/module.js.map +0 -1
- package/lib/esm/other/index.js +0 -29
- package/lib/esm/other/index.js.map +0 -1
- package/lib/esm/other/label.renderer.js +0 -67
- package/lib/esm/other/label.renderer.js.map +0 -1
- package/lib/esm/other/master-detail/detail.js +0 -57
- package/lib/esm/other/master-detail/detail.js.map +0 -1
- package/lib/esm/other/master-detail/index.d.ts +0 -2
- package/lib/esm/other/master-detail/index.js +0 -27
- package/lib/esm/other/master-detail/index.js.map +0 -1
- package/lib/esm/other/master-detail/master.js +0 -149
- package/lib/esm/other/master-detail/master.js.map +0 -1
- package/lib/esm/other/object.renderer.js +0 -74
- package/lib/esm/other/object.renderer.js.map +0 -1
- package/lib/esm/other/table.renderer.d.ts +0 -36
- package/lib/esm/other/table.renderer.js +0 -143
- package/lib/esm/other/table.renderer.js.map +0 -1
- /package/src/{controls → library/controls}/index.ts +0 -0
- /package/src/{layouts → library/layouts}/index.ts +0 -0
- /package/src/{layouts → library/layouts}/layout.renderer.ts +0 -0
- /package/src/{other → library/other}/index.ts +0 -0
- /package/src/{other → library/other}/master-detail/detail.ts +0 -0
- /package/src/{other → library/other}/master-detail/index.ts +0 -0
- /package/src/{other → library/other}/table.renderer.ts +0 -0
- /package/src/{other → library/other}/util.ts +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2020 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { ChangeDetectionStrategy, Component, } from '@angular/core';
|
|
27
|
-
import { JsonFormsAngularService, JsonFormsAbstractControl, } from '@jsonforms/angular';
|
|
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";
|
|
39
|
-
var ArrayLayoutRenderer = /** @class */ (function (_super) {
|
|
40
|
-
__extends(ArrayLayoutRenderer, _super);
|
|
41
|
-
function ArrayLayoutRenderer(jsonFormsService) {
|
|
42
|
-
return _super.call(this, jsonFormsService) || this;
|
|
43
|
-
}
|
|
44
|
-
ArrayLayoutRenderer.prototype.mapToProps = function (state) {
|
|
45
|
-
var props = mapStateToArrayLayoutProps(state, this.getOwnProps());
|
|
46
|
-
return __assign({}, props);
|
|
47
|
-
};
|
|
48
|
-
ArrayLayoutRenderer.prototype.remove = function (index) {
|
|
49
|
-
this.removeItems(this.propsPath, [index])();
|
|
50
|
-
};
|
|
51
|
-
ArrayLayoutRenderer.prototype.add = function () {
|
|
52
|
-
this.addItem(this.propsPath, createDefaultValue(this.scopedSchema, this.rootSchema))();
|
|
53
|
-
};
|
|
54
|
-
ArrayLayoutRenderer.prototype.up = function (index) {
|
|
55
|
-
this.moveItemUp(this.propsPath, index)();
|
|
56
|
-
};
|
|
57
|
-
ArrayLayoutRenderer.prototype.down = function (index) {
|
|
58
|
-
this.moveItemDown(this.propsPath, index)();
|
|
59
|
-
};
|
|
60
|
-
ArrayLayoutRenderer.prototype.ngOnInit = function () {
|
|
61
|
-
_super.prototype.ngOnInit.call(this);
|
|
62
|
-
var _a = mapDispatchToArrayControlProps(this.jsonFormsService.updateCore.bind(this.jsonFormsService)), addItem = _a.addItem, removeItems = _a.removeItems, moveUp = _a.moveUp, moveDown = _a.moveDown;
|
|
63
|
-
this.addItem = addItem;
|
|
64
|
-
this.moveItemUp = moveUp;
|
|
65
|
-
this.moveItemDown = moveDown;
|
|
66
|
-
this.removeItems = removeItems;
|
|
67
|
-
};
|
|
68
|
-
ArrayLayoutRenderer.prototype.mapAdditionalProps = function (props) {
|
|
69
|
-
this.translations = props.translations;
|
|
70
|
-
this.noData = !props.data || props.data === 0;
|
|
71
|
-
this.uischemas = props.uischemas;
|
|
72
|
-
};
|
|
73
|
-
ArrayLayoutRenderer.prototype.getProps = function (index) {
|
|
74
|
-
var uischema = findUISchema(this.uischemas, this.scopedSchema, this.uischema.scope, this.propsPath, undefined, this.uischema, this.rootSchema);
|
|
75
|
-
if (this.isEnabled()) {
|
|
76
|
-
unsetReadonly(uischema);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
setReadonly(uischema);
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
schema: this.scopedSchema,
|
|
83
|
-
path: Paths.compose(this.propsPath, "".concat(index)),
|
|
84
|
-
uischema: uischema,
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
ArrayLayoutRenderer.prototype.trackByFn = function (index) {
|
|
88
|
-
return index;
|
|
89
|
-
};
|
|
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 });
|
|
92
|
-
return ArrayLayoutRenderer;
|
|
93
|
-
}(JsonFormsAbstractControl));
|
|
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 }]; } });
|
|
99
|
-
export var ArrayLayoutRendererTester = rankWith(4, isObjectArrayWithNesting);
|
|
100
|
-
//# sourceMappingURL=array-layout.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,75 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { and, categorizationHasCategory, defaultJsonFormsI18nState, deriveLabelForUISchemaElement, getAjv, isVisible, mapStateToLayoutProps, rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
27
|
-
import { Component } from '@angular/core';
|
|
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";
|
|
34
|
-
var CategorizationTabLayoutRenderer = /** @class */ (function (_super) {
|
|
35
|
-
__extends(CategorizationTabLayoutRenderer, _super);
|
|
36
|
-
function CategorizationTabLayoutRenderer(jsonFormsService) {
|
|
37
|
-
var _this = _super.call(this) || this;
|
|
38
|
-
_this.jsonFormsService = jsonFormsService;
|
|
39
|
-
return _this;
|
|
40
|
-
}
|
|
41
|
-
CategorizationTabLayoutRenderer.prototype.ngOnInit = function () {
|
|
42
|
-
var _this = this;
|
|
43
|
-
this.subscription = this.jsonFormsService.$state.subscribe({
|
|
44
|
-
next: function (state) {
|
|
45
|
-
var props = mapStateToLayoutProps(state, _this.getOwnProps());
|
|
46
|
-
_this.hidden = !props.visible;
|
|
47
|
-
_this.visibleCategories = _this.uischema.elements.filter(function (category) {
|
|
48
|
-
return isVisible(category, props.data, undefined, getAjv(state));
|
|
49
|
-
});
|
|
50
|
-
_this.categoryLabels = _this.visibleCategories.map(function (element) {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
return deriveLabelForUISchemaElement(element, (_b = (_a = state.jsonforms.i18n) === null || _a === void 0 ? void 0 : _a.translate) !== null && _b !== void 0 ? _b : defaultJsonFormsI18nState.translate);
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
CategorizationTabLayoutRenderer.prototype.ngOnDestroy = function () {
|
|
58
|
-
if (this.subscription) {
|
|
59
|
-
this.subscription.unsubscribe();
|
|
60
|
-
}
|
|
61
|
-
};
|
|
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"] }] });
|
|
64
|
-
return CategorizationTabLayoutRenderer;
|
|
65
|
-
}(JsonFormsBaseRenderer));
|
|
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 }]; } });
|
|
74
|
-
export var categorizationTester = rankWith(2, and(uiTypeIs('Categorization'), categorizationHasCategory));
|
|
75
|
-
//# sourceMappingURL=categorization-layout.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { GroupLayout, RankedTester } from '@jsonforms/core';
|
|
3
|
-
import { LayoutRenderer } from './layout.renderer';
|
|
4
|
-
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GroupLayoutRenderer extends LayoutRenderer<GroupLayout> {
|
|
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>;
|
|
10
|
-
}
|
|
11
|
-
export declare const groupLayoutTester: RankedTester;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular/core';
|
|
27
|
-
import { rankWith, uiTypeIs } from '@jsonforms/core';
|
|
28
|
-
import { LayoutRenderer } from './layout.renderer';
|
|
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";
|
|
37
|
-
var GroupLayoutRenderer = /** @class */ (function (_super) {
|
|
38
|
-
__extends(GroupLayoutRenderer, _super);
|
|
39
|
-
function GroupLayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
40
|
-
return _super.call(this, jsonFormsService, changeDetectionRef) || this;
|
|
41
|
-
}
|
|
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 });
|
|
44
|
-
return GroupLayoutRenderer;
|
|
45
|
-
}(LayoutRenderer));
|
|
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 }]; } });
|
|
55
|
-
export var groupLayoutTester = rankWith(1, uiTypeIs('Group'));
|
|
56
|
-
//# sourceMappingURL=group-layout.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular/core';
|
|
27
|
-
import { rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
28
|
-
import { LayoutRenderer } from './layout.renderer';
|
|
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";
|
|
36
|
-
var HorizontalLayoutRenderer = /** @class */ (function (_super) {
|
|
37
|
-
__extends(HorizontalLayoutRenderer, _super);
|
|
38
|
-
function HorizontalLayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
39
|
-
return _super.call(this, jsonFormsService, changeDetectionRef) || this;
|
|
40
|
-
}
|
|
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 });
|
|
43
|
-
return HorizontalLayoutRenderer;
|
|
44
|
-
}(LayoutRenderer));
|
|
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 }]; } });
|
|
54
|
-
export var horizontalLayoutTester = rankWith(1, uiTypeIs('HorizontalLayout'));
|
|
55
|
-
//# sourceMappingURL=horizontal-layout.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/esm/layouts/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
export * from './horizontal-layout.renderer';
|
|
26
|
-
export * from './vertical-layout.renderer';
|
|
27
|
-
export * from './categorization-layout.renderer';
|
|
28
|
-
export * from './layout.renderer';
|
|
29
|
-
export * from './group-layout.renderer';
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { ChangeDetectorRef, Component, Pipe, } from '@angular/core';
|
|
27
|
-
import { JsonFormsAngularService, JsonFormsBaseRenderer, } from '@jsonforms/angular';
|
|
28
|
-
import { mapStateToLayoutProps, } from '@jsonforms/core';
|
|
29
|
-
import * as i0 from "@angular/core";
|
|
30
|
-
import * as i1 from "@jsonforms/angular";
|
|
31
|
-
var LayoutRenderer = /** @class */ (function (_super) {
|
|
32
|
-
__extends(LayoutRenderer, _super);
|
|
33
|
-
function LayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
34
|
-
var _this = _super.call(this) || this;
|
|
35
|
-
_this.jsonFormsService = jsonFormsService;
|
|
36
|
-
_this.changeDetectionRef = changeDetectionRef;
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
LayoutRenderer.prototype.ngOnInit = function () {
|
|
40
|
-
var _this = this;
|
|
41
|
-
this.subscription = this.jsonFormsService.$state.subscribe({
|
|
42
|
-
next: function (state) {
|
|
43
|
-
var props = mapStateToLayoutProps(state, _this.getOwnProps());
|
|
44
|
-
_this.label = props.label;
|
|
45
|
-
_this.hidden = !props.visible;
|
|
46
|
-
_this.changeDetectionRef.markForCheck();
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
LayoutRenderer.prototype.ngOnDestroy = function () {
|
|
51
|
-
if (this.subscription) {
|
|
52
|
-
this.subscription.unsubscribe();
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
LayoutRenderer.prototype.trackElement = function (_index, renderProp) {
|
|
56
|
-
return renderProp
|
|
57
|
-
? renderProp.path + JSON.stringify(renderProp.uischema)
|
|
58
|
-
: null;
|
|
59
|
-
};
|
|
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 });
|
|
62
|
-
return LayoutRenderer;
|
|
63
|
-
}(JsonFormsBaseRenderer));
|
|
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 }]; } });
|
|
71
|
-
var LayoutChildrenRenderPropsPipe = /** @class */ (function () {
|
|
72
|
-
function LayoutChildrenRenderPropsPipe() {
|
|
73
|
-
}
|
|
74
|
-
LayoutChildrenRenderPropsPipe.prototype.transform = function (uischema, schema, path) {
|
|
75
|
-
var elements = (uischema.elements || []).map(function (el) { return ({
|
|
76
|
-
uischema: el,
|
|
77
|
-
schema: schema,
|
|
78
|
-
path: path,
|
|
79
|
-
}); });
|
|
80
|
-
return elements;
|
|
81
|
-
};
|
|
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
|
-
return LayoutChildrenRenderPropsPipe;
|
|
85
|
-
}());
|
|
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
|
-
}] });
|
|
91
|
-
//# sourceMappingURL=layout.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { RankedTester, VerticalLayout } from '@jsonforms/core';
|
|
3
|
-
import { LayoutRenderer } from './layout.renderer';
|
|
4
|
-
import { JsonFormsAngularService } from '@jsonforms/angular';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class VerticalLayoutRenderer extends LayoutRenderer<VerticalLayout> {
|
|
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>;
|
|
10
|
-
}
|
|
11
|
-
export declare const verticalLayoutTester: RankedTester;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular/core';
|
|
27
|
-
import { rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
28
|
-
import { LayoutRenderer } from './layout.renderer';
|
|
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";
|
|
36
|
-
var VerticalLayoutRenderer = /** @class */ (function (_super) {
|
|
37
|
-
__extends(VerticalLayoutRenderer, _super);
|
|
38
|
-
function VerticalLayoutRenderer(jsonFormsService, changeDetectionRef) {
|
|
39
|
-
return _super.call(this, jsonFormsService, changeDetectionRef) || this;
|
|
40
|
-
}
|
|
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 });
|
|
43
|
-
return VerticalLayoutRenderer;
|
|
44
|
-
}(LayoutRenderer));
|
|
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 }]; } });
|
|
54
|
-
export var verticalLayoutTester = rankWith(1, uiTypeIs('VerticalLayout'));
|
|
55
|
-
//# sourceMappingURL=vertical-layout.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|