@jsonforms/angular-material 3.2.0-beta.0 → 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 +1 -0
- 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 +1 -0
- 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/{cjs → 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/{esm → library}/module.d.ts +1 -0
- 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 +1 -0
- 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 +12 -20
- package/src/index.ts +1 -121
- package/src/library/index.ts +121 -0
- package/src/public_api.ts +1 -0
- package/lib/cjs/controls/autocomplete.renderer.js +0 -115
- 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 -61
- package/lib/cjs/controls/boolean.renderer.js.map +0 -1
- package/lib/cjs/controls/date.renderer.js +0 -57
- 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 -134
- 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 -64
- 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 -72
- 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 -56
- package/lib/cjs/controls/textarea.renderer.js.map +0 -1
- package/lib/cjs/controls/toggle.renderer.js +0 -63
- 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.js +0 -101
- 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 -77
- package/lib/cjs/layouts/categorization-layout.renderer.js.map +0 -1
- package/lib/cjs/layouts/group-layout.renderer.js +0 -53
- 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 -52
- 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 -52
- package/lib/cjs/layouts/vertical-layout.renderer.js.map +0 -1
- package/lib/cjs/module.d.ts +0 -47
- package/lib/cjs/module.js +0 -247
- 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 -66
- 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 -152
- 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 -73
- 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 -48
- package/lib/esm/controls/autocomplete.renderer.js +0 -112
- package/lib/esm/controls/autocomplete.renderer.js.map +0 -1
- package/lib/esm/controls/boolean.renderer.js +0 -58
- 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 -54
- 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 -131
- package/lib/esm/controls/number.renderer.js.map +0 -1
- package/lib/esm/controls/range.renderer.js +0 -61
- package/lib/esm/controls/range.renderer.js.map +0 -1
- package/lib/esm/controls/text.renderer.js +0 -69
- package/lib/esm/controls/text.renderer.js.map +0 -1
- package/lib/esm/controls/textarea.renderer.js +0 -53
- 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 -60
- 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.d.ts +0 -29
- package/lib/esm/layouts/array-layout.renderer.js +0 -98
- package/lib/esm/layouts/array-layout.renderer.js.map +0 -1
- package/lib/esm/layouts/categorization-layout.renderer.js +0 -74
- 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 -50
- package/lib/esm/layouts/group-layout.renderer.js.map +0 -1
- package/lib/esm/layouts/horizontal-layout.renderer.js +0 -49
- 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 -49
- package/lib/esm/layouts/vertical-layout.renderer.js.map +0 -1
- package/lib/esm/module.js +0 -243
- 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 -63
- 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 -148
- package/lib/esm/other/master-detail/master.js.map +0 -1
- package/lib/esm/other/object.renderer.js +0 -70
- 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}/autocomplete.renderer.ts +0 -0
- /package/src/{controls → library/controls}/boolean.renderer.ts +0 -0
- /package/src/{controls → library/controls}/date.renderer.ts +0 -0
- /package/src/{controls → library/controls}/index.ts +0 -0
- /package/src/{controls → library/controls}/number.renderer.ts +0 -0
- /package/src/{controls → library/controls}/range.renderer.ts +0 -0
- /package/src/{controls → library/controls}/text.renderer.ts +0 -0
- /package/src/{controls → library/controls}/textarea.renderer.ts +0 -0
- /package/src/{controls → library/controls}/toggle.renderer.ts +0 -0
- /package/src/{layouts → library/layouts}/array-layout.renderer.ts +0 -0
- /package/src/{layouts → library/layouts}/categorization-layout.renderer.ts +0 -0
- /package/src/{layouts → library/layouts}/group-layout.renderer.ts +0 -0
- /package/src/{layouts → library/layouts}/horizontal-layout.renderer.ts +0 -0
- /package/src/{layouts → library/layouts}/index.ts +0 -0
- /package/src/{layouts → library/layouts}/layout.renderer.ts +0 -0
- /package/src/{layouts → library/layouts}/vertical-layout.renderer.ts +0 -0
- /package/src/{module.ts → library/module.ts} +0 -0
- /package/src/{other → library/other}/index.ts +0 -0
- /package/src/{other → library/other}/label.renderer.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}/master-detail/master.ts +0 -0
- /package/src/{other → library/other}/object.renderer.ts +0 -0
- /package/src/{other → library/other}/table.renderer.ts +0 -0
- /package/src/{other → library/other}/util.ts +0 -0
package/lib/esm/module.js
DELETED
|
@@ -1,243 +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
|
-
import { CommonModule } from '@angular/common';
|
|
26
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
27
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
28
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
29
|
-
import { MatBadgeModule } from '@angular/material/badge';
|
|
30
|
-
import { MatCardModule } from '@angular/material/card';
|
|
31
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
32
|
-
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
33
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
34
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
35
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
36
|
-
import { MatInputModule } from '@angular/material/input';
|
|
37
|
-
import { MatListModule } from '@angular/material/list';
|
|
38
|
-
import { MatNativeDateModule } from '@angular/material/core';
|
|
39
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
40
|
-
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
41
|
-
import { MatSliderModule } from '@angular/material/slider';
|
|
42
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
43
|
-
import { MatTableModule } from '@angular/material/table';
|
|
44
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
|
45
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
46
|
-
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
47
|
-
import { JsonFormsModule } from '@jsonforms/angular';
|
|
48
|
-
import { AutocompleteControlRenderer } from './controls/autocomplete.renderer';
|
|
49
|
-
import { BooleanControlRenderer } from './controls/boolean.renderer';
|
|
50
|
-
import { DateControlRenderer } from './controls/date.renderer';
|
|
51
|
-
import { NumberControlRenderer } from './controls/number.renderer';
|
|
52
|
-
import { RangeControlRenderer } from './controls/range.renderer';
|
|
53
|
-
import { TextAreaRenderer } from './controls/textarea.renderer';
|
|
54
|
-
import { TextControlRenderer } from './controls/text.renderer';
|
|
55
|
-
import { ToggleControlRenderer } from './controls/toggle.renderer';
|
|
56
|
-
import { LabelRenderer } from './other/label.renderer';
|
|
57
|
-
import { JsonFormsDetailComponent } from './other/master-detail/detail';
|
|
58
|
-
import { MasterListComponent } from './other/master-detail/master';
|
|
59
|
-
import { ObjectControlRenderer } from './other/object.renderer';
|
|
60
|
-
import { TableRenderer } from './other/table.renderer';
|
|
61
|
-
import { CategorizationTabLayoutRenderer } from './layouts/categorization-layout.renderer';
|
|
62
|
-
import { GroupLayoutRenderer } from './layouts/group-layout.renderer';
|
|
63
|
-
import { HorizontalLayoutRenderer } from './layouts/horizontal-layout.renderer';
|
|
64
|
-
import { VerticalLayoutRenderer } from './layouts/vertical-layout.renderer';
|
|
65
|
-
import { ArrayLayoutRenderer } from './layouts/array-layout.renderer';
|
|
66
|
-
import { LayoutChildrenRenderPropsPipe } from './layouts';
|
|
67
|
-
import * as i0 from "@angular/core";
|
|
68
|
-
var JsonFormsAngularMaterialModule = /** @class */ (function () {
|
|
69
|
-
function JsonFormsAngularMaterialModule() {
|
|
70
|
-
}
|
|
71
|
-
JsonFormsAngularMaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAngularMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
72
|
-
JsonFormsAngularMaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAngularMaterialModule, declarations: [BooleanControlRenderer,
|
|
73
|
-
TextAreaRenderer,
|
|
74
|
-
TextControlRenderer,
|
|
75
|
-
NumberControlRenderer,
|
|
76
|
-
RangeControlRenderer,
|
|
77
|
-
DateControlRenderer,
|
|
78
|
-
ToggleControlRenderer,
|
|
79
|
-
VerticalLayoutRenderer,
|
|
80
|
-
HorizontalLayoutRenderer,
|
|
81
|
-
CategorizationTabLayoutRenderer,
|
|
82
|
-
GroupLayoutRenderer,
|
|
83
|
-
LabelRenderer,
|
|
84
|
-
MasterListComponent,
|
|
85
|
-
JsonFormsDetailComponent,
|
|
86
|
-
ObjectControlRenderer,
|
|
87
|
-
AutocompleteControlRenderer,
|
|
88
|
-
TableRenderer,
|
|
89
|
-
ArrayLayoutRenderer,
|
|
90
|
-
LayoutChildrenRenderPropsPipe], imports: [CommonModule,
|
|
91
|
-
JsonFormsModule,
|
|
92
|
-
MatFormFieldModule,
|
|
93
|
-
MatCheckboxModule,
|
|
94
|
-
MatInputModule,
|
|
95
|
-
MatSliderModule,
|
|
96
|
-
MatSlideToggleModule,
|
|
97
|
-
MatNativeDateModule,
|
|
98
|
-
MatDatepickerModule,
|
|
99
|
-
MatTabsModule,
|
|
100
|
-
MatSidenavModule,
|
|
101
|
-
MatListModule,
|
|
102
|
-
ReactiveFormsModule,
|
|
103
|
-
MatCardModule,
|
|
104
|
-
MatSelectModule,
|
|
105
|
-
MatButtonModule,
|
|
106
|
-
MatIconModule,
|
|
107
|
-
MatAutocompleteModule,
|
|
108
|
-
MatTableModule,
|
|
109
|
-
MatToolbarModule,
|
|
110
|
-
MatTooltipModule,
|
|
111
|
-
MatBadgeModule], exports: [CommonModule,
|
|
112
|
-
JsonFormsModule,
|
|
113
|
-
MatFormFieldModule,
|
|
114
|
-
MatCheckboxModule,
|
|
115
|
-
MatInputModule,
|
|
116
|
-
MatSliderModule,
|
|
117
|
-
MatSlideToggleModule,
|
|
118
|
-
MatNativeDateModule,
|
|
119
|
-
MatDatepickerModule,
|
|
120
|
-
MatTabsModule,
|
|
121
|
-
MatSidenavModule,
|
|
122
|
-
MatListModule,
|
|
123
|
-
ReactiveFormsModule,
|
|
124
|
-
MatCardModule,
|
|
125
|
-
MatSelectModule,
|
|
126
|
-
MatButtonModule,
|
|
127
|
-
MatIconModule,
|
|
128
|
-
MatAutocompleteModule] });
|
|
129
|
-
JsonFormsAngularMaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAngularMaterialModule, imports: [CommonModule,
|
|
130
|
-
JsonFormsModule,
|
|
131
|
-
MatFormFieldModule,
|
|
132
|
-
MatCheckboxModule,
|
|
133
|
-
MatInputModule,
|
|
134
|
-
MatSliderModule,
|
|
135
|
-
MatSlideToggleModule,
|
|
136
|
-
MatNativeDateModule,
|
|
137
|
-
MatDatepickerModule,
|
|
138
|
-
MatTabsModule,
|
|
139
|
-
MatSidenavModule,
|
|
140
|
-
MatListModule,
|
|
141
|
-
ReactiveFormsModule,
|
|
142
|
-
MatCardModule,
|
|
143
|
-
MatSelectModule,
|
|
144
|
-
MatButtonModule,
|
|
145
|
-
MatIconModule,
|
|
146
|
-
MatAutocompleteModule,
|
|
147
|
-
MatTableModule,
|
|
148
|
-
MatToolbarModule,
|
|
149
|
-
MatTooltipModule,
|
|
150
|
-
MatBadgeModule, CommonModule,
|
|
151
|
-
JsonFormsModule,
|
|
152
|
-
MatFormFieldModule,
|
|
153
|
-
MatCheckboxModule,
|
|
154
|
-
MatInputModule,
|
|
155
|
-
MatSliderModule,
|
|
156
|
-
MatSlideToggleModule,
|
|
157
|
-
MatNativeDateModule,
|
|
158
|
-
MatDatepickerModule,
|
|
159
|
-
MatTabsModule,
|
|
160
|
-
MatSidenavModule,
|
|
161
|
-
MatListModule,
|
|
162
|
-
ReactiveFormsModule,
|
|
163
|
-
MatCardModule,
|
|
164
|
-
MatSelectModule,
|
|
165
|
-
MatButtonModule,
|
|
166
|
-
MatIconModule,
|
|
167
|
-
MatAutocompleteModule] });
|
|
168
|
-
return JsonFormsAngularMaterialModule;
|
|
169
|
-
}());
|
|
170
|
-
export { JsonFormsAngularMaterialModule };
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsAngularMaterialModule, decorators: [{
|
|
172
|
-
type: NgModule,
|
|
173
|
-
args: [{
|
|
174
|
-
imports: [
|
|
175
|
-
CommonModule,
|
|
176
|
-
JsonFormsModule,
|
|
177
|
-
MatFormFieldModule,
|
|
178
|
-
MatCheckboxModule,
|
|
179
|
-
MatInputModule,
|
|
180
|
-
MatSliderModule,
|
|
181
|
-
MatSlideToggleModule,
|
|
182
|
-
MatNativeDateModule,
|
|
183
|
-
MatDatepickerModule,
|
|
184
|
-
MatTabsModule,
|
|
185
|
-
MatSidenavModule,
|
|
186
|
-
MatListModule,
|
|
187
|
-
ReactiveFormsModule,
|
|
188
|
-
MatCardModule,
|
|
189
|
-
MatSelectModule,
|
|
190
|
-
MatButtonModule,
|
|
191
|
-
MatIconModule,
|
|
192
|
-
MatAutocompleteModule,
|
|
193
|
-
MatTableModule,
|
|
194
|
-
MatToolbarModule,
|
|
195
|
-
MatTooltipModule,
|
|
196
|
-
MatBadgeModule,
|
|
197
|
-
],
|
|
198
|
-
declarations: [
|
|
199
|
-
BooleanControlRenderer,
|
|
200
|
-
TextAreaRenderer,
|
|
201
|
-
TextControlRenderer,
|
|
202
|
-
NumberControlRenderer,
|
|
203
|
-
RangeControlRenderer,
|
|
204
|
-
DateControlRenderer,
|
|
205
|
-
ToggleControlRenderer,
|
|
206
|
-
VerticalLayoutRenderer,
|
|
207
|
-
HorizontalLayoutRenderer,
|
|
208
|
-
CategorizationTabLayoutRenderer,
|
|
209
|
-
GroupLayoutRenderer,
|
|
210
|
-
LabelRenderer,
|
|
211
|
-
MasterListComponent,
|
|
212
|
-
JsonFormsDetailComponent,
|
|
213
|
-
ObjectControlRenderer,
|
|
214
|
-
AutocompleteControlRenderer,
|
|
215
|
-
TableRenderer,
|
|
216
|
-
ArrayLayoutRenderer,
|
|
217
|
-
LayoutChildrenRenderPropsPipe,
|
|
218
|
-
],
|
|
219
|
-
exports: [
|
|
220
|
-
CommonModule,
|
|
221
|
-
JsonFormsModule,
|
|
222
|
-
MatFormFieldModule,
|
|
223
|
-
MatCheckboxModule,
|
|
224
|
-
MatInputModule,
|
|
225
|
-
MatSliderModule,
|
|
226
|
-
MatSlideToggleModule,
|
|
227
|
-
MatNativeDateModule,
|
|
228
|
-
MatDatepickerModule,
|
|
229
|
-
MatTabsModule,
|
|
230
|
-
MatSidenavModule,
|
|
231
|
-
MatListModule,
|
|
232
|
-
ReactiveFormsModule,
|
|
233
|
-
MatCardModule,
|
|
234
|
-
MatSelectModule,
|
|
235
|
-
MatButtonModule,
|
|
236
|
-
MatIconModule,
|
|
237
|
-
MatAutocompleteModule,
|
|
238
|
-
],
|
|
239
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
240
|
-
providers: [],
|
|
241
|
-
}]
|
|
242
|
-
}] });
|
|
243
|
-
//# sourceMappingURL=module.js.map
|
package/lib/esm/module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"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;mBAAC;oBACR,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;wBACf,kBAAkB;wBAClB,iBAAiB;wBACjB,cAAc;wBACd,eAAe;wBACf,oBAAoB;wBACpB,mBAAmB;wBACnB,mBAAmB;wBACnB,aAAa;wBACb,gBAAgB;wBAChB,aAAa;wBACb,mBAAmB;wBACnB,aAAa;wBACb,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,qBAAqB;wBACrB,cAAc;wBACd,gBAAgB;wBAChB,gBAAgB;wBAChB,cAAc;qBACf;oBACD,YAAY,EAAE;wBACZ,sBAAsB;wBACtB,gBAAgB;wBAChB,mBAAmB;wBACnB,qBAAqB;wBACrB,oBAAoB;wBACpB,mBAAmB;wBACnB,qBAAqB;wBACrB,sBAAsB;wBACtB,wBAAwB;wBACxB,+BAA+B;wBAC/B,mBAAmB;wBACnB,aAAa;wBACb,mBAAmB;wBACnB,wBAAwB;wBACxB,qBAAqB;wBACrB,2BAA2B;wBAC3B,aAAa;wBACb,mBAAmB;wBACnB,6BAA6B;qBAC9B;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;wBACf,kBAAkB;wBAClB,iBAAiB;wBACjB,cAAc;wBACd,eAAe;wBACf,oBAAoB;wBACpB,mBAAmB;wBACnB,mBAAmB;wBACnB,aAAa;wBACb,gBAAgB;wBAChB,aAAa;wBACb,mBAAmB;wBACnB,aAAa;wBACb,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,qBAAqB;qBACtB;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,SAAS,EAAE,EAAE;iBACd"}
|
package/lib/esm/other/index.js
DELETED
|
@@ -1,29 +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 './label.renderer';
|
|
26
|
-
export * from './master-detail';
|
|
27
|
-
export * from './object.renderer';
|
|
28
|
-
export * from './table.renderer';
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/other/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,63 +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 { Component } from '@angular/core';
|
|
27
|
-
import { JsonFormsAngularService, JsonFormsBaseRenderer, } from '@jsonforms/angular';
|
|
28
|
-
import { mapStateToLabelProps, rankWith, uiTypeIs, } from '@jsonforms/core';
|
|
29
|
-
import * as i0 from "@angular/core";
|
|
30
|
-
import * as i1 from "@jsonforms/angular";
|
|
31
|
-
var LabelRenderer = /** @class */ (function (_super) {
|
|
32
|
-
__extends(LabelRenderer, _super);
|
|
33
|
-
function LabelRenderer(jsonFormsService) {
|
|
34
|
-
var _this = _super.call(this) || this;
|
|
35
|
-
_this.jsonFormsService = jsonFormsService;
|
|
36
|
-
return _this;
|
|
37
|
-
}
|
|
38
|
-
LabelRenderer.prototype.ngOnInit = function () {
|
|
39
|
-
var _this = this;
|
|
40
|
-
this.subscription = this.jsonFormsService.$state.subscribe({
|
|
41
|
-
next: function (state) {
|
|
42
|
-
var props = mapStateToLabelProps(state, _this.getOwnProps());
|
|
43
|
-
_this.visible = props.visible;
|
|
44
|
-
_this.label = props.text;
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
LabelRenderer.prototype.ngOnDestroy = function () {
|
|
49
|
-
if (this.subscription) {
|
|
50
|
-
this.subscription.unsubscribe();
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
LabelRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelRenderer, deps: [{ token: i1.JsonFormsAngularService }], target: i0.ɵɵFactoryTarget.Component });
|
|
54
|
-
LabelRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LabelRenderer, selector: "LabelRenderer", usesInheritance: true, ngImport: i0, template: " <label class=\"mat-headline-6\"> {{ label }} </label> ", isInline: true, styles: ["\n :host {\n flex: 1 1 auto;\n }\n "] });
|
|
55
|
-
return LabelRenderer;
|
|
56
|
-
}(JsonFormsBaseRenderer));
|
|
57
|
-
export { LabelRenderer };
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LabelRenderer, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{ selector: 'LabelRenderer', template: " <label class=\"mat-headline-6\"> {{ label }} </label> ", styles: ["\n :host {\n flex: 1 1 auto;\n }\n "] }]
|
|
61
|
-
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }]; } });
|
|
62
|
-
export var LabelRendererTester = rankWith(4, uiTypeIs('Label'));
|
|
63
|
-
//# sourceMappingURL=label.renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label.renderer.js","sourceRoot":"","sources":["../../../src/other/label.renderer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,oBAAoB,EAGpB,QAAQ,EACR,QAAQ,GACT,MAAM,iBAAiB,CAAC;;;AAGzB;IAYU,iCAAmC;IAQ3C,uBAAoB,gBAAyC;QAA7D,YACE,iBAAO,SACR;QAFmB,sBAAgB,GAAhB,gBAAgB,CAAyB;;IAE7D,CAAC;IACD,gCAAQ,GAAR;QAAA,iBAWC;QAVC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC;YACzD,IAAI,EAAE,UAAC,KAAqB;gBAC1B,IAAM,KAAK,GAAG,oBAAoB,CAChC,KAAK,EACL,KAAI,CAAC,WAAW,EAAqB,CACtC,CAAC;gBACF,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;gBAC7B,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC;YAC1B,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,mCAAW,GAAX;QACE,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;SACjC;IACH,CAAC;+GA7BU,aAAa;mGAAb,aAAa,4EATd,yDAAuD;wBA1CnE;CAiFC,AAzCD,CAYU,qBAAqB,GA6B9B;SA9BY,aAAa;4FAAb,aAAa;kBAXzB,SAAS;+BACE,eAAe,YACf,yDAAuD;;AAyCnE,MAAM,CAAC,IAAM,mBAAmB,GAAiB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,57 +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
|
-
import { Component, Input } from '@angular/core';
|
|
26
|
-
import * as i0 from "@angular/core";
|
|
27
|
-
import * as i1 from "@angular/common";
|
|
28
|
-
import * as i2 from "@jsonforms/angular";
|
|
29
|
-
var JsonFormsDetailComponent = /** @class */ (function () {
|
|
30
|
-
function JsonFormsDetailComponent() {
|
|
31
|
-
this.initialized = false;
|
|
32
|
-
}
|
|
33
|
-
Object.defineProperty(JsonFormsDetailComponent.prototype, "item", {
|
|
34
|
-
set: function (item) {
|
|
35
|
-
if (item) {
|
|
36
|
-
this._item = item;
|
|
37
|
-
this.initialized = true;
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
enumerable: false,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
JsonFormsDetailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
JsonFormsDetailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: JsonFormsDetailComponent, selector: "jsonforms-detail", inputs: { item: "item" }, ngImport: i0, template: "\n <div *ngIf=\"initialized\">\n <jsonforms-outlet [renderProps]=\"_item\"></jsonforms-outlet>\n </div>\n ", isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.JsonFormsOutlet, selector: "jsonforms-outlet", inputs: ["renderProps"] }] });
|
|
45
|
-
return JsonFormsDetailComponent;
|
|
46
|
-
}());
|
|
47
|
-
export { JsonFormsDetailComponent };
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: JsonFormsDetailComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'jsonforms-detail',
|
|
52
|
-
template: "\n <div *ngIf=\"initialized\">\n <jsonforms-outlet [renderProps]=\"_item\"></jsonforms-outlet>\n </div>\n ",
|
|
53
|
-
}]
|
|
54
|
-
}], propDecorators: { item: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}] } });
|
|
57
|
-
//# sourceMappingURL=detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"detail.js","sourceRoot":"","sources":["../../../../src/other/master-detail/detail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;;;AAEjD;IAAA;QAWE,gBAAW,GAAG,KAAK,CAAC;KASrB;IAPC,sBACI,0CAAI;aADR,UACS,IAAS;YAChB,IAAI,IAAI,EAAE;gBACR,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;gBAClB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;aACzB;QACH,CAAC;;;OAAA;0HAXU,wBAAwB;8GAAxB,wBAAwB,kFANzB,wHAIT;mCAhCH;CA8CC,AApBD,IAoBC;SAZY,wBAAwB;4FAAxB,wBAAwB;kBARpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,QAAQ,EAAE,wHAIT;iBACF;8BAOK,IAAI;sBADP,KAAK"}
|
|
@@ -1,27 +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 './detail';
|
|
26
|
-
export * from './master';
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/other/master-detail/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { __assign, __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 some from 'lodash/some';
|
|
27
|
-
import get from 'lodash/get';
|
|
28
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular/core';
|
|
29
|
-
import { JsonFormsAngularService, JsonFormsArrayControl, } from '@jsonforms/angular';
|
|
30
|
-
import { createDefaultValue, decode, findUISchema, getFirstPrimitiveProp, mapDispatchToArrayControlProps, mapStateToArrayControlProps, rankWith, setReadonly, uiTypeIs, } from '@jsonforms/core';
|
|
31
|
-
import * as i0 from "@angular/core";
|
|
32
|
-
import * as i1 from "@jsonforms/angular";
|
|
33
|
-
import * as i2 from "@angular/common";
|
|
34
|
-
import * as i3 from "@angular/material/sidenav";
|
|
35
|
-
import * as i4 from "@angular/material/list";
|
|
36
|
-
import * as i5 from "@angular/material/button";
|
|
37
|
-
import * as i6 from "@angular/material/icon";
|
|
38
|
-
import * as i7 from "./detail";
|
|
39
|
-
var keywords = ['#', 'properties', 'items'];
|
|
40
|
-
export var removeSchemaKeywords = function (path) {
|
|
41
|
-
return decode(path
|
|
42
|
-
.split('/')
|
|
43
|
-
.filter(function (s) { return !some(keywords, function (key) { return key === s; }); })
|
|
44
|
-
.join('.'));
|
|
45
|
-
};
|
|
46
|
-
var MasterListComponent = /** @class */ (function (_super) {
|
|
47
|
-
__extends(MasterListComponent, _super);
|
|
48
|
-
function MasterListComponent(jsonformsService, changeDetectorRef) {
|
|
49
|
-
var _this = _super.call(this, jsonformsService) || this;
|
|
50
|
-
_this.changeDetectorRef = changeDetectorRef;
|
|
51
|
-
return _this;
|
|
52
|
-
}
|
|
53
|
-
MasterListComponent.prototype.onListItemHover = function (idx) {
|
|
54
|
-
this.highlightedIdx = idx;
|
|
55
|
-
};
|
|
56
|
-
MasterListComponent.prototype.trackElement = function (_index, element) {
|
|
57
|
-
return element ? element.label : null;
|
|
58
|
-
};
|
|
59
|
-
MasterListComponent.prototype.ngOnInit = function () {
|
|
60
|
-
_super.prototype.ngOnInit.call(this);
|
|
61
|
-
var dispatch = this.jsonFormsService.updateCore.bind(this.jsonFormsService);
|
|
62
|
-
var _a = mapDispatchToArrayControlProps(dispatch), addItem = _a.addItem, removeItems = _a.removeItems;
|
|
63
|
-
this.addItem = addItem;
|
|
64
|
-
this.removeItems = removeItems;
|
|
65
|
-
};
|
|
66
|
-
MasterListComponent.prototype.mapAdditionalProps = function (props) {
|
|
67
|
-
var data = props.data, path = props.path, schema = props.schema, uischema = props.uischema;
|
|
68
|
-
var controlElement = uischema;
|
|
69
|
-
this.propsPath = props.path;
|
|
70
|
-
var detailUISchema = findUISchema(props.uischemas, schema, "".concat(controlElement.scope, "/items"), props.path, 'VerticalLayout', controlElement, props.rootSchema);
|
|
71
|
-
if (!this.isEnabled()) {
|
|
72
|
-
setReadonly(detailUISchema);
|
|
73
|
-
}
|
|
74
|
-
this.translations = props.translations;
|
|
75
|
-
var masterItems = (data || []).map(function (d, index) {
|
|
76
|
-
var _a;
|
|
77
|
-
var labelRefInstancePath = ((_a = controlElement.options) === null || _a === void 0 ? void 0 : _a.labelRef) &&
|
|
78
|
-
removeSchemaKeywords(controlElement.options.labelRef);
|
|
79
|
-
var isPrimitive = d !== undefined && typeof d !== 'object';
|
|
80
|
-
var masterItem = {
|
|
81
|
-
label: isPrimitive
|
|
82
|
-
? d.toString()
|
|
83
|
-
: get(d, labelRefInstancePath !== null && labelRefInstancePath !== void 0 ? labelRefInstancePath : getFirstPrimitiveProp(schema)),
|
|
84
|
-
data: d,
|
|
85
|
-
path: "".concat(path, ".").concat(index),
|
|
86
|
-
schema: schema,
|
|
87
|
-
uischema: detailUISchema,
|
|
88
|
-
};
|
|
89
|
-
return masterItem;
|
|
90
|
-
});
|
|
91
|
-
this.masterItems = masterItems;
|
|
92
|
-
var newSelectedIdx = -1;
|
|
93
|
-
var newSelectedItem;
|
|
94
|
-
if (this.masterItems.length === 0) {
|
|
95
|
-
// unset select if no elements anymore
|
|
96
|
-
this.selectedItem = undefined;
|
|
97
|
-
this.selectedItemIdx = -1;
|
|
98
|
-
}
|
|
99
|
-
else if (this.selectedItemIdx >= this.masterItems.length) {
|
|
100
|
-
// the previous index is to high, reduce it to the maximal possible
|
|
101
|
-
newSelectedIdx = this.masterItems.length - 1;
|
|
102
|
-
newSelectedItem = this.masterItems[newSelectedIdx];
|
|
103
|
-
}
|
|
104
|
-
else if (this.selectedItemIdx !== -1 &&
|
|
105
|
-
this.selectedItemIdx < this.masterItems.length) {
|
|
106
|
-
newSelectedIdx = this.selectedItemIdx;
|
|
107
|
-
newSelectedItem = this.masterItems[this.selectedItemIdx];
|
|
108
|
-
}
|
|
109
|
-
if (newSelectedItem !== undefined &&
|
|
110
|
-
this.selectedItem !== undefined &&
|
|
111
|
-
(newSelectedItem.label === this.selectedItem.label ||
|
|
112
|
-
newSelectedItem.path === this.selectedItem.path)) {
|
|
113
|
-
// after checking that we are on the same path, set selection
|
|
114
|
-
this.selectedItem = newSelectedItem;
|
|
115
|
-
this.selectedItemIdx = newSelectedIdx;
|
|
116
|
-
}
|
|
117
|
-
else if (this.masterItems.length > 0) {
|
|
118
|
-
// pre-select 1st entry if the previous selected element as fallback
|
|
119
|
-
this.selectedItem = this.masterItems[0];
|
|
120
|
-
this.selectedItemIdx = 0;
|
|
121
|
-
}
|
|
122
|
-
this.changeDetectorRef.markForCheck();
|
|
123
|
-
};
|
|
124
|
-
MasterListComponent.prototype.onSelect = function (item, idx) {
|
|
125
|
-
this.selectedItem = item;
|
|
126
|
-
this.selectedItemIdx = idx;
|
|
127
|
-
};
|
|
128
|
-
MasterListComponent.prototype.onAddClick = function () {
|
|
129
|
-
this.addItem(this.propsPath, createDefaultValue(this.scopedSchema, this.rootSchema))();
|
|
130
|
-
};
|
|
131
|
-
MasterListComponent.prototype.onDeleteClick = function (item) {
|
|
132
|
-
this.removeItems(this.propsPath, [item])();
|
|
133
|
-
};
|
|
134
|
-
MasterListComponent.prototype.mapToProps = function (state) {
|
|
135
|
-
var props = mapStateToArrayControlProps(state, this.getOwnProps());
|
|
136
|
-
return __assign({}, props);
|
|
137
|
-
};
|
|
138
|
-
MasterListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MasterListComponent, deps: [{ token: i1.JsonFormsAngularService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
139
|
-
MasterListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: MasterListComponent, selector: "jsonforms-list-with-detail-master", usesInheritance: true, ngImport: i0, template: "\n <mat-sidenav-container\n [ngStyle]=\"{ display: hidden ? 'none' : '' }\"\n class=\"container\"\n >\n <mat-sidenav mode=\"side\" opened>\n <mat-nav-list>\n <mat-list-item *ngIf=\"masterItems.length === 0\">{{\n translations.noDataMessage\n }}</mat-list-item>\n <mat-list-item\n *ngFor=\"\n let item of masterItems;\n let i = index;\n trackBy: trackElement\n \"\n [class.selected]=\"item === selectedItem\"\n (click)=\"onSelect(item, i)\"\n (mouseover)=\"onListItemHover(i)\"\n (mouseout)=\"onListItemHover(undefined)\"\n >\n <a matLine>{{ item.label || 'No label set' }}</a>\n <button\n mat-icon-button\n class=\"button item-button hide\"\n (click)=\"onDeleteClick(i)\"\n [ngClass]=\"{ show: highlightedIdx == i }\"\n *ngIf=\"isEnabled()\"\n >\n <mat-icon mat-list-icon>delete</mat-icon>\n </button>\n </mat-list-item>\n </mat-nav-list>\n <button\n mat-fab\n color=\"primary\"\n class=\"add-button\"\n (click)=\"onAddClick()\"\n *ngIf=\"isEnabled()\"\n >\n <mat-icon [attr.aria-label]=\"translations.addAriaLabel\">add</mat-icon>\n </button>\n </mat-sidenav>\n <mat-sidenav-content class=\"content\">\n <jsonforms-detail\n *ngIf=\"selectedItem\"\n [item]=\"selectedItem\"\n ></jsonforms-detail>\n </mat-sidenav-content>\n </mat-sidenav-container>\n ", isInline: true, styles: ["\n /* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */\n mat-list-item.selected {\n background: rgba(0, 0, 0, 0.04);\n }\n .container {\n height: 100vh;\n }\n .content {\n padding: 15px;\n background-color: #fff;\n }\n .add-button {\n float: right;\n margin-top: 0.5em;\n margin-right: 0.25em;\n }\n .button {\n float: right;\n margin-right: 0.25em;\n }\n .item-button {\n position: absolute;\n top: 0;\n right: 0;\n }\n .show {\n display: inline-block;\n }\n mat-sidenav {\n width: 20%;\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: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i3.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i3.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i4.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i4.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.JsonFormsDetailComponent, selector: "jsonforms-detail", inputs: ["item"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
140
|
-
return MasterListComponent;
|
|
141
|
-
}(JsonFormsArrayControl));
|
|
142
|
-
export { MasterListComponent };
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MasterListComponent, decorators: [{
|
|
144
|
-
type: Component,
|
|
145
|
-
args: [{ selector: 'jsonforms-list-with-detail-master', template: "\n <mat-sidenav-container\n [ngStyle]=\"{ display: hidden ? 'none' : '' }\"\n class=\"container\"\n >\n <mat-sidenav mode=\"side\" opened>\n <mat-nav-list>\n <mat-list-item *ngIf=\"masterItems.length === 0\">{{\n translations.noDataMessage\n }}</mat-list-item>\n <mat-list-item\n *ngFor=\"\n let item of masterItems;\n let i = index;\n trackBy: trackElement\n \"\n [class.selected]=\"item === selectedItem\"\n (click)=\"onSelect(item, i)\"\n (mouseover)=\"onListItemHover(i)\"\n (mouseout)=\"onListItemHover(undefined)\"\n >\n <a matLine>{{ item.label || 'No label set' }}</a>\n <button\n mat-icon-button\n class=\"button item-button hide\"\n (click)=\"onDeleteClick(i)\"\n [ngClass]=\"{ show: highlightedIdx == i }\"\n *ngIf=\"isEnabled()\"\n >\n <mat-icon mat-list-icon>delete</mat-icon>\n </button>\n </mat-list-item>\n </mat-nav-list>\n <button\n mat-fab\n color=\"primary\"\n class=\"add-button\"\n (click)=\"onAddClick()\"\n *ngIf=\"isEnabled()\"\n >\n <mat-icon [attr.aria-label]=\"translations.addAriaLabel\">add</mat-icon>\n </button>\n </mat-sidenav>\n <mat-sidenav-content class=\"content\">\n <jsonforms-detail\n *ngIf=\"selectedItem\"\n [item]=\"selectedItem\"\n ></jsonforms-detail>\n </mat-sidenav-content>\n </mat-sidenav-container>\n ", changeDetection: ChangeDetectionStrategy.OnPush, styles: ["\n /* TODO(mdc-migration): The following rule targets internal classes of list that may no longer apply for the MDC version. */\n mat-list-item.selected {\n background: rgba(0, 0, 0, 0.04);\n }\n .container {\n height: 100vh;\n }\n .content {\n padding: 15px;\n background-color: #fff;\n }\n .add-button {\n float: right;\n margin-top: 0.5em;\n margin-right: 0.25em;\n }\n .button {\n float: right;\n margin-right: 0.25em;\n }\n .item-button {\n position: absolute;\n top: 0;\n right: 0;\n }\n .show {\n display: inline-block;\n }\n mat-sidenav {\n width: 20%;\n }\n "] }]
|
|
146
|
-
}], ctorParameters: function () { return [{ type: i1.JsonFormsAngularService }, { type: i0.ChangeDetectorRef }]; } });
|
|
147
|
-
export var masterDetailTester = rankWith(4, uiTypeIs('ListWithDetail'));
|
|
148
|
-
//# sourceMappingURL=master.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"master.js","sourceRoot":"","sources":["../../../../src/other/master-detail/master.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,GAAG,MAAM,YAAY,CAAC;AAC7B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,kBAAkB,EAClB,MAAM,EACN,YAAY,EACZ,qBAAqB,EAErB,8BAA8B,EAC9B,2BAA2B,EAE3B,QAAQ,EACR,WAAW,EAEX,QAAQ,GACT,MAAM,iBAAiB,CAAC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