@jsonforms/examples 3.0.0-alpha.1 → 3.0.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/docs/assets/js/search.json +1 -1
- package/docs/globals.html +2371 -2178
- package/docs/index.html +5 -26
- package/docs/interfaces/exampledescription.html +34 -6
- package/docs/interfaces/stateprops.html +229 -0
- package/lib/example.d.ts +23 -15
- package/lib/{1169.d.ts → examples/1169.d.ts} +24 -24
- package/lib/examples/1220.d.ts +4 -0
- package/lib/{1253.d.ts → examples/1253.d.ts} +16 -16
- package/lib/{1254.d.ts → examples/1254.d.ts} +21 -21
- package/lib/examples/1645.d.ts +68 -0
- package/lib/{1779.d.ts → examples/1779.d.ts} +1 -1
- package/lib/{allOf.d.ts → examples/allOf.d.ts} +56 -56
- package/lib/{anyOf-oneOf-allOf-resolve.d.ts → examples/anyOf-oneOf-allOf-resolve.d.ts} +44 -44
- package/lib/{anyOf.d.ts → examples/anyOf.d.ts} +64 -64
- package/lib/{arrays-with-custom-element-label.d.ts → examples/arrays-with-custom-element-label.d.ts} +43 -43
- package/lib/{arrays-with-detail-and-rule.d.ts → examples/arrays-with-detail-and-rule.d.ts} +91 -91
- package/lib/{arrays-with-detail.d.ts → examples/arrays-with-detail.d.ts} +65 -65
- package/lib/{arrays.d.ts → examples/arrays.d.ts} +51 -38
- package/lib/{booleanToggle.d.ts → examples/booleanToggle.d.ts} +62 -62
- package/lib/{categorization.d.ts → examples/categorization.d.ts} +135 -135
- package/lib/{config.d.ts → examples/config.d.ts} +29 -29
- package/lib/{control-options.d.ts → examples/control-options.d.ts} +190 -190
- package/lib/{dates.d.ts → examples/dates.d.ts} +1 -1
- package/lib/{day1.d.ts → examples/day1.d.ts} +23 -23
- package/lib/{day2.d.ts → examples/day2.d.ts} +42 -42
- package/lib/{day3.d.ts → examples/day3.d.ts} +51 -51
- package/lib/{day4.d.ts → examples/day4.d.ts} +72 -72
- package/lib/{day5.d.ts → examples/day5.d.ts} +133 -133
- package/lib/{day6.d.ts → examples/day6.d.ts} +85 -85
- package/lib/{default.d.ts → examples/default.d.ts} +64 -64
- package/lib/{dynamic.d.ts → examples/dynamic.d.ts} +1 -1
- package/lib/{enum.d.ts → examples/enum.d.ts} +49 -49
- package/lib/{enumInArray.d.ts → examples/enumInArray.d.ts} +27 -27
- package/lib/{generate.d.ts → examples/generate.d.ts} +12 -12
- package/lib/{generateUI.d.ts → examples/generateUI.d.ts} +33 -33
- package/lib/{huge.d.ts → examples/huge.d.ts} +1 -1
- package/lib/{i18n.d.ts → examples/i18n.d.ts} +25 -25
- package/lib/{if_then_else.d.ts → examples/if_then_else.d.ts} +25 -25
- package/lib/{layout.d.ts → examples/layout.d.ts} +97 -97
- package/lib/{list-with-detail-registered.d.ts → examples/list-with-detail-registered.d.ts} +1 -1
- package/lib/{list-with-detail.d.ts → examples/list-with-detail.d.ts} +1 -1
- package/lib/{multi-enum.d.ts → examples/multi-enum.d.ts} +34 -34
- package/lib/examples/nestedArrays.d.ts +11 -0
- package/lib/{numbers.d.ts → examples/numbers.d.ts} +46 -46
- package/lib/{object.d.ts → examples/object.d.ts} +56 -56
- package/lib/{onChange.d.ts → examples/onChange.d.ts} +18 -18
- package/lib/{oneOf-recursive.d.ts → examples/oneOf-recursive.d.ts} +48 -48
- package/lib/{oneOf.d.ts → examples/oneOf.d.ts} +53 -53
- package/lib/{oneOfArray.d.ts → examples/oneOfArray.d.ts} +53 -53
- package/lib/{person.d.ts → examples/person.d.ts} +99 -99
- package/lib/{radioGroup.d.ts → examples/radioGroup.d.ts} +1 -1
- package/lib/{readonly.d.ts → examples/readonly.d.ts} +36 -36
- package/lib/{resolve.d.ts → examples/resolve.d.ts} +45 -45
- package/lib/{rule.d.ts → examples/rule.d.ts} +59 -59
- package/lib/{ruleInheritance.d.ts → examples/ruleInheritance.d.ts} +26 -26
- package/lib/{scope.d.ts → examples/scope.d.ts} +50 -50
- package/lib/{stepper.d.ts → examples/stepper.d.ts} +138 -138
- package/lib/{steppershownav.d.ts → examples/steppershownav.d.ts} +139 -139
- package/lib/{stringArray.d.ts → examples/stringArray.d.ts} +22 -22
- package/lib/{text.d.ts → examples/text.d.ts} +37 -37
- package/lib/index.d.ts +58 -57
- package/lib/jsonforms-examples.cjs.js +6082 -0
- package/lib/jsonforms-examples.cjs.js.map +1 -0
- package/lib/jsonforms-examples.esm.js +6060 -0
- package/lib/jsonforms-examples.esm.js.map +1 -0
- package/lib/register.d.ts +3 -3
- package/package.json +16 -8
- package/rollup.config.js +48 -0
- package/src/example.ts +18 -12
- package/src/{1169.ts → examples/1169.ts} +1 -1
- package/src/{1220.ts → examples/1220.ts} +58 -36
- package/src/{1253.ts → examples/1253.ts} +1 -1
- package/src/{1254.ts → examples/1254.ts} +1 -1
- package/src/examples/1645.ts +66 -0
- package/src/{1779.ts → examples/1779.ts} +1 -1
- package/src/{allOf.ts → examples/allOf.ts} +1 -1
- package/src/{anyOf-oneOf-allOf-resolve.ts → examples/anyOf-oneOf-allOf-resolve.ts} +1 -1
- package/src/{anyOf.ts → examples/anyOf.ts} +1 -1
- package/src/{arrays-with-custom-element-label.ts → examples/arrays-with-custom-element-label.ts} +1 -1
- package/src/{arrays-with-detail-and-rule.ts → examples/arrays-with-detail-and-rule.ts} +1 -1
- package/src/{arrays-with-detail.ts → examples/arrays-with-detail.ts} +1 -1
- package/src/{arrays.ts → examples/arrays.ts} +36 -8
- package/src/{booleanToggle.ts → examples/booleanToggle.ts} +1 -1
- package/src/{categorization.ts → examples/categorization.ts} +1 -1
- package/src/{config.ts → examples/config.ts} +1 -1
- package/src/{control-options.ts → examples/control-options.ts} +2 -2
- package/src/{dates.ts → examples/dates.ts} +1 -1
- package/src/{day1.ts → examples/day1.ts} +1 -1
- package/src/{day2.ts → examples/day2.ts} +5 -5
- package/src/{day3.ts → examples/day3.ts} +1 -1
- package/src/{day4.ts → examples/day4.ts} +1 -1
- package/src/{day5.ts → examples/day5.ts} +1 -1
- package/src/{day6.ts → examples/day6.ts} +1 -1
- package/src/{default.ts → examples/default.ts} +1 -1
- package/src/{dynamic.ts → examples/dynamic.ts} +17 -2
- package/src/{enum.ts → examples/enum.ts} +1 -1
- package/src/{enumInArray.ts → examples/enumInArray.ts} +1 -1
- package/src/{generate.ts → examples/generate.ts} +1 -1
- package/src/{generateUI.ts → examples/generateUI.ts} +1 -1
- package/src/{huge.ts → examples/huge.ts} +1 -1
- package/src/{i18n.ts → examples/i18n.ts} +1 -1
- package/src/{if_then_else.ts → examples/if_then_else.ts} +1 -1
- package/src/{layout.ts → examples/layout.ts} +1 -1
- package/src/{list-with-detail-registered.ts → examples/list-with-detail-registered.ts} +1 -1
- package/src/{list-with-detail.ts → examples/list-with-detail.ts} +1 -1
- package/src/{multi-enum.ts → examples/multi-enum.ts} +1 -1
- package/src/{nestedArrays.ts → examples/nestedArrays.ts} +49 -36
- package/src/{numbers.ts → examples/numbers.ts} +1 -1
- package/src/{object.ts → examples/object.ts} +1 -1
- package/src/{onChange.ts → examples/onChange.ts} +2 -2
- package/src/{oneOf-recursive.ts → examples/oneOf-recursive.ts} +1 -1
- package/src/{oneOf.ts → examples/oneOf.ts} +1 -1
- package/src/{oneOfArray.ts → examples/oneOfArray.ts} +1 -1
- package/src/{person.ts → examples/person.ts} +1 -1
- package/src/{radioGroup.ts → examples/radioGroup.ts} +1 -1
- package/src/{readonly.ts → examples/readonly.ts} +1 -1
- package/src/{resolve.ts → examples/resolve.ts} +1 -1
- package/src/{rule.ts → examples/rule.ts} +1 -1
- package/src/{ruleInheritance.ts → examples/ruleInheritance.ts} +25 -2
- package/src/{scope.ts → examples/scope.ts} +1 -1
- package/src/{stepper.ts → examples/stepper.ts} +1 -1
- package/src/{steppershownav.ts → examples/steppershownav.ts} +1 -1
- package/src/{stringArray.ts → examples/stringArray.ts} +1 -1
- package/src/{text.ts → examples/text.ts} +1 -1
- package/src/index.ts +57 -55
- package/stats.html +3279 -0
- package/docs/interfaces/changeexampleaction.html +0 -159
- package/lib/1169.js +0 -60
- package/lib/1169.js.map +0 -1
- package/lib/1220.d.ts +0 -3
- package/lib/1220.js +0 -122
- package/lib/1220.js.map +0 -1
- package/lib/1253.js +0 -201
- package/lib/1253.js.map +0 -1
- package/lib/1254.js +0 -66
- package/lib/1254.js.map +0 -1
- package/lib/1779.js +0 -82
- package/lib/1779.js.map +0 -1
- package/lib/allOf.js +0 -91
- package/lib/allOf.js.map +0 -1
- package/lib/anyOf-oneOf-allOf-resolve.js +0 -94
- package/lib/anyOf-oneOf-allOf-resolve.js.map +0 -1
- package/lib/anyOf.js +0 -114
- package/lib/anyOf.js.map +0 -1
- package/lib/arrays-with-custom-element-label.js +0 -94
- package/lib/arrays-with-custom-element-label.js.map +0 -1
- package/lib/arrays-with-detail-and-rule.js +0 -121
- package/lib/arrays-with-detail-and-rule.js.map +0 -1
- package/lib/arrays-with-detail.js +0 -96
- package/lib/arrays-with-detail.js.map +0 -1
- package/lib/arrays.js +0 -98
- package/lib/arrays.js.map +0 -1
- package/lib/booleanToggle.js +0 -67
- package/lib/booleanToggle.js.map +0 -1
- package/lib/categorization.js +0 -300
- package/lib/categorization.js.map +0 -1
- package/lib/config.js +0 -89
- package/lib/config.js.map +0 -1
- package/lib/control-options.js +0 -239
- package/lib/control-options.js.map +0 -1
- package/lib/dates.js +0 -150
- package/lib/dates.js.map +0 -1
- package/lib/day1.js +0 -59
- package/lib/day1.js.map +0 -1
- package/lib/day2.js +0 -61
- package/lib/day2.js.map +0 -1
- package/lib/day3.js +0 -64
- package/lib/day3.js.map +0 -1
- package/lib/day4.js +0 -70
- package/lib/day4.js.map +0 -1
- package/lib/day5.js +0 -167
- package/lib/day5.js.map +0 -1
- package/lib/day6.js +0 -41
- package/lib/day6.js.map +0 -1
- package/lib/default.js +0 -117
- package/lib/default.js.map +0 -1
- package/lib/dynamic.js +0 -37
- package/lib/dynamic.js.map +0 -1
- package/lib/enum.js +0 -128
- package/lib/enum.js.map +0 -1
- package/lib/enumInArray.js +0 -43
- package/lib/enumInArray.js.map +0 -1
- package/lib/example.js +0 -8
- package/lib/example.js.map +0 -1
- package/lib/generate.js +0 -41
- package/lib/generate.js.map +0 -1
- package/lib/generateUI.js +0 -41
- package/lib/generateUI.js.map +0 -1
- package/lib/huge.js +0 -1360
- package/lib/huge.js.map +0 -1
- package/lib/i18n.js +0 -92
- package/lib/i18n.js.map +0 -1
- package/lib/if_then_else.js +0 -48
- package/lib/if_then_else.js.map +0 -1
- package/lib/index.js +0 -138
- package/lib/index.js.map +0 -1
- package/lib/layout.js +0 -148
- package/lib/layout.js.map +0 -1
- package/lib/list-with-detail-registered.js +0 -104
- package/lib/list-with-detail-registered.js.map +0 -1
- package/lib/list-with-detail.js +0 -302
- package/lib/list-with-detail.js.map +0 -1
- package/lib/multi-enum.js +0 -75
- package/lib/multi-enum.js.map +0 -1
- package/lib/nestedArrays.d.ts +0 -4
- package/lib/nestedArrays.js +0 -101
- package/lib/nestedArrays.js.map +0 -1
- package/lib/numbers.js +0 -88
- package/lib/numbers.js.map +0 -1
- package/lib/object.js +0 -99
- package/lib/object.js.map +0 -1
- package/lib/onChange.js +0 -68
- package/lib/onChange.js.map +0 -1
- package/lib/oneOf-recursive.js +0 -80
- package/lib/oneOf-recursive.js.map +0 -1
- package/lib/oneOf.js +0 -336
- package/lib/oneOf.js.map +0 -1
- package/lib/oneOfArray.js +0 -95
- package/lib/oneOfArray.js.map +0 -1
- package/lib/person.js +0 -155
- package/lib/person.js.map +0 -1
- package/lib/radioGroup.js +0 -86
- package/lib/radioGroup.js.map +0 -1
- package/lib/readonly.js +0 -80
- package/lib/readonly.js.map +0 -1
- package/lib/register.js +0 -10
- package/lib/register.js.map +0 -1
- package/lib/resolve.js +0 -86
- package/lib/resolve.js.map +0 -1
- package/lib/rule.js +0 -122
- package/lib/rule.js.map +0 -1
- package/lib/ruleInheritance.js +0 -104
- package/lib/ruleInheritance.js.map +0 -1
- package/lib/scope.js +0 -112
- package/lib/scope.js.map +0 -1
- package/lib/stepper.js +0 -44
- package/lib/stepper.js.map +0 -1
- package/lib/steppershownav.js +0 -45
- package/lib/steppershownav.js.map +0 -1
- package/lib/stringArray.js +0 -61
- package/lib/stringArray.js.map +0 -1
- package/lib/text.js +0 -96
- package/lib/text.js.map +0 -1
- package/webpack.build.js +0 -12
package/lib/list-with-detail.js
DELETED
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
The MIT License
|
|
5
|
-
|
|
6
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
7
|
-
https://github.com/eclipsesource/jsonforms
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
in the Software without restriction, including without limitation the rights
|
|
12
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
furnished to do so, subject to the following conditions:
|
|
15
|
-
|
|
16
|
-
The above copyright notice and this permission notice shall be included in
|
|
17
|
-
all copies or substantial portions of the Software.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
var register_1 = require("./register");
|
|
28
|
-
var data = {
|
|
29
|
-
orders: [
|
|
30
|
-
{
|
|
31
|
-
customer: {
|
|
32
|
-
id: '471201',
|
|
33
|
-
name: 'Sirius Cybernetics Corporation',
|
|
34
|
-
department: 'Complaints Division'
|
|
35
|
-
},
|
|
36
|
-
title: '42 killer robots',
|
|
37
|
-
ordered: true,
|
|
38
|
-
processId: '1890004498',
|
|
39
|
-
assignee: 'Philip J. Fry',
|
|
40
|
-
status: 'ordered',
|
|
41
|
-
startDate: '2018-06-01',
|
|
42
|
-
endDate: '2018-08-01'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
customer: {
|
|
46
|
-
id: '471202',
|
|
47
|
-
name: 'Very Big Corporation of America'
|
|
48
|
-
},
|
|
49
|
-
title: '1000 gallons of MomCorp Oil',
|
|
50
|
-
processId: '1890004499',
|
|
51
|
-
assignee: 'Jen Barber',
|
|
52
|
-
startDate: '2018-07-01',
|
|
53
|
-
status: 'planned'
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
};
|
|
57
|
-
var schema = {
|
|
58
|
-
definitions: {
|
|
59
|
-
order: {
|
|
60
|
-
type: 'object',
|
|
61
|
-
properties: {
|
|
62
|
-
customer: {
|
|
63
|
-
type: 'object',
|
|
64
|
-
properties: {
|
|
65
|
-
id: { type: 'string' },
|
|
66
|
-
name: { type: 'string', format: 'email' },
|
|
67
|
-
department: { type: 'string' }
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
title: {
|
|
71
|
-
type: 'string',
|
|
72
|
-
minLength: 5,
|
|
73
|
-
title: 'Official Title'
|
|
74
|
-
},
|
|
75
|
-
ordered: { type: 'boolean' },
|
|
76
|
-
processId: {
|
|
77
|
-
type: 'number',
|
|
78
|
-
minimum: 0
|
|
79
|
-
},
|
|
80
|
-
assignee: { type: 'string' },
|
|
81
|
-
startDate: {
|
|
82
|
-
type: 'string',
|
|
83
|
-
format: 'date'
|
|
84
|
-
},
|
|
85
|
-
endDate: {
|
|
86
|
-
type: 'string',
|
|
87
|
-
format: 'date'
|
|
88
|
-
},
|
|
89
|
-
status: {
|
|
90
|
-
type: 'string',
|
|
91
|
-
enum: ['unordered', 'planned', 'ordered']
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
required: ['title']
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
type: 'object',
|
|
98
|
-
properties: {
|
|
99
|
-
orders: {
|
|
100
|
-
type: 'array',
|
|
101
|
-
items: {
|
|
102
|
-
$ref: '#/definitions/order'
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
var uischema = {
|
|
108
|
-
type: 'ListWithDetail',
|
|
109
|
-
scope: '#/properties/orders',
|
|
110
|
-
options: {
|
|
111
|
-
labelRef: '#/items/properties/customer/properties/name',
|
|
112
|
-
detail: {
|
|
113
|
-
type: 'VerticalLayout',
|
|
114
|
-
elements: [
|
|
115
|
-
{
|
|
116
|
-
type: 'HorizontalLayout',
|
|
117
|
-
elements: [
|
|
118
|
-
{
|
|
119
|
-
type: 'Control',
|
|
120
|
-
scope: '#/properties/title'
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
type: 'Control',
|
|
124
|
-
scope: '#/properties/processId'
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
type: 'Group',
|
|
130
|
-
label: 'Customer',
|
|
131
|
-
elements: [
|
|
132
|
-
{
|
|
133
|
-
type: 'Control',
|
|
134
|
-
label: 'ID',
|
|
135
|
-
scope: '#/properties/customer/properties/id'
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
type: 'Control',
|
|
139
|
-
label: 'Name',
|
|
140
|
-
scope: '#/properties/customer/properties/name'
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
type: 'Control',
|
|
144
|
-
label: 'Department',
|
|
145
|
-
scope: '#/properties/customer/properties/department'
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
type: 'VerticalLayout',
|
|
151
|
-
elements: [
|
|
152
|
-
{
|
|
153
|
-
type: 'VerticalLayout',
|
|
154
|
-
elements: [
|
|
155
|
-
{
|
|
156
|
-
type: 'HorizontalLayout',
|
|
157
|
-
elements: [
|
|
158
|
-
{
|
|
159
|
-
type: 'Control',
|
|
160
|
-
scope: '#/properties/ordered',
|
|
161
|
-
options: {
|
|
162
|
-
toggle: true
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
type: 'Control',
|
|
167
|
-
scope: '#/properties/assignee'
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
type: 'HorizontalLayout',
|
|
173
|
-
elements: [
|
|
174
|
-
{
|
|
175
|
-
type: 'Control',
|
|
176
|
-
scope: '#/properties/startDate'
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
type: 'Control',
|
|
180
|
-
scope: '#/properties/endDate'
|
|
181
|
-
}
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
type: 'Control',
|
|
186
|
-
scope: '#/properties/status'
|
|
187
|
-
}
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
var uischemaNoLabelRef = {
|
|
197
|
-
type: 'ListWithDetail',
|
|
198
|
-
scope: '#/properties/orders',
|
|
199
|
-
options: {
|
|
200
|
-
detail: {
|
|
201
|
-
type: 'VerticalLayout',
|
|
202
|
-
elements: [
|
|
203
|
-
{
|
|
204
|
-
type: 'HorizontalLayout',
|
|
205
|
-
elements: [
|
|
206
|
-
{
|
|
207
|
-
type: 'Control',
|
|
208
|
-
scope: '#/properties/title'
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
type: 'Control',
|
|
212
|
-
scope: '#/properties/processId'
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
type: 'Group',
|
|
218
|
-
label: 'Customer',
|
|
219
|
-
elements: [
|
|
220
|
-
{
|
|
221
|
-
type: 'Control',
|
|
222
|
-
label: 'ID',
|
|
223
|
-
scope: '#/properties/customer/properties/id'
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: 'Control',
|
|
227
|
-
label: 'Name',
|
|
228
|
-
scope: '#/properties/customer/properties/name'
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
type: 'Control',
|
|
232
|
-
label: 'Department',
|
|
233
|
-
scope: '#/properties/customer/properties/department'
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
type: 'VerticalLayout',
|
|
239
|
-
elements: [
|
|
240
|
-
{
|
|
241
|
-
type: 'VerticalLayout',
|
|
242
|
-
elements: [
|
|
243
|
-
{
|
|
244
|
-
type: 'HorizontalLayout',
|
|
245
|
-
elements: [
|
|
246
|
-
{
|
|
247
|
-
type: 'Control',
|
|
248
|
-
scope: '#/properties/ordered',
|
|
249
|
-
options: {
|
|
250
|
-
toggle: true
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
type: 'Control',
|
|
255
|
-
scope: '#/properties/assignee'
|
|
256
|
-
}
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
type: 'HorizontalLayout',
|
|
261
|
-
elements: [
|
|
262
|
-
{
|
|
263
|
-
type: 'Control',
|
|
264
|
-
scope: '#/properties/startDate'
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
type: 'Control',
|
|
268
|
-
scope: '#/properties/endDate'
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
type: 'Control',
|
|
274
|
-
scope: '#/properties/status'
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
register_1.registerExamples([
|
|
285
|
-
{
|
|
286
|
-
name: 'list-with-detail',
|
|
287
|
-
label: 'List With Detail',
|
|
288
|
-
data: data,
|
|
289
|
-
schema: schema,
|
|
290
|
-
uischema: uischema
|
|
291
|
-
}
|
|
292
|
-
]);
|
|
293
|
-
register_1.registerExamples([
|
|
294
|
-
{
|
|
295
|
-
name: 'list-with-detail-no-labelref',
|
|
296
|
-
label: 'List With Detail (No Label Ref)',
|
|
297
|
-
data: data,
|
|
298
|
-
schema: schema,
|
|
299
|
-
uischema: uischemaNoLabelRef
|
|
300
|
-
}
|
|
301
|
-
]);
|
|
302
|
-
//# sourceMappingURL=list-with-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-with-detail.js","sourceRoot":"","sources":["../src/list-with-detail.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAE9C,IAAM,IAAI,GAAG;IACX,MAAM,EAAE;QACN;YACE,QAAQ,EAAE;gBACR,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,gCAAgC;gBACtC,UAAU,EAAE,qBAAqB;aAClC;YACD,KAAK,EAAE,kBAAkB;YACzB,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,eAAe;YACzB,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,YAAY;YACvB,OAAO,EAAE,YAAY;SACtB;QACD;YACE,QAAQ,EAAE;gBACR,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,iCAAiC;aACxC;YACD,KAAK,EAAE,6BAA6B;YACpC,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE,YAAY;YACvB,MAAM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CACE,IAAI,EAAE,SAAS;4CACf,KAAK,EAAE,sBAAsB;yCAC9B;qCACF;iCACF;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,KAAK,EAAE,qBAAqB;iCAC7B;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,kBAAkB;QACzB,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,UAAA;KACT;CACF,CAAC,CAAC;AAEH,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,8BAA8B;QACpC,KAAK,EAAE,iCAAiC;QACxC,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,EAAC,kBAAkB;KAC5B;CACF,CAAC,CAAC"}
|
package/lib/multi-enum.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
The MIT License
|
|
5
|
-
|
|
6
|
-
Copyright (c) 2017-2020 EclipseSource Munich
|
|
7
|
-
https://github.com/eclipsesource/jsonforms
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
in the Software without restriction, including without limitation the rights
|
|
12
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
furnished to do so, subject to the following conditions:
|
|
15
|
-
|
|
16
|
-
The above copyright notice and this permission notice shall be included in
|
|
17
|
-
all copies or substantial portions of the Software.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
var register_1 = require("./register");
|
|
28
|
-
exports.schema = {
|
|
29
|
-
type: 'object',
|
|
30
|
-
properties: {
|
|
31
|
-
oneOfMultiEnum: {
|
|
32
|
-
type: 'array',
|
|
33
|
-
uniqueItems: true,
|
|
34
|
-
items: {
|
|
35
|
-
oneOf: [
|
|
36
|
-
{ const: 'foo', title: 'My Foo' },
|
|
37
|
-
{ const: 'bar', title: 'My Bar' },
|
|
38
|
-
{ const: 'foobar', title: 'My FooBar' }
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
multiEnum: {
|
|
43
|
-
type: 'array',
|
|
44
|
-
uniqueItems: true,
|
|
45
|
-
items: {
|
|
46
|
-
type: 'string',
|
|
47
|
-
enum: ['foo', 'bar', 'foobar']
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
exports.uischema = {
|
|
53
|
-
type: 'VerticalLayout',
|
|
54
|
-
elements: [
|
|
55
|
-
{
|
|
56
|
-
type: 'Control',
|
|
57
|
-
scope: '#/properties/oneOfMultiEnum'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
type: 'Control',
|
|
61
|
-
scope: '#/properties/multiEnum'
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
};
|
|
65
|
-
exports.data = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
|
|
66
|
-
register_1.registerExamples([
|
|
67
|
-
{
|
|
68
|
-
name: 'multi-enum',
|
|
69
|
-
label: 'Multi Enum',
|
|
70
|
-
data: exports.data,
|
|
71
|
-
schema: exports.schema,
|
|
72
|
-
uischema: exports.uischema
|
|
73
|
-
}
|
|
74
|
-
]);
|
|
75
|
-
//# sourceMappingURL=multi-enum.js.map
|
package/lib/multi-enum.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-enum.js","sourceRoot":"","sources":["../src/multi-enum.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,cAAc,EAAE;YACd,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACjC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACjC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE;iBACxC;aACF;SACF;QACD,SAAS,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC;aAC/B;SACF;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,6BAA6B;SACrC;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,wBAAwB;SAChC;KACF;CACF,CAAC;AAEW,QAAA,IAAI,GAAG,EAAE,cAAc,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;AAEpE,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,YAAY;QACnB,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
|
package/lib/nestedArrays.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { VerticalLayout, AnyAction, Dispatch } from '@jsonforms/core';
|
|
2
|
-
export declare const nestedArrayLayout: VerticalLayout;
|
|
3
|
-
export declare const registerNestedArrayUISchema: (dispatch: Dispatch<AnyAction>) => void;
|
|
4
|
-
export declare const unregisterNestedArrayUISchema: (dispatch: Dispatch<AnyAction>) => void;
|
package/lib/nestedArrays.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
The MIT License
|
|
5
|
-
|
|
6
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
7
|
-
https://github.com/eclipsesource/jsonforms
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
in the Software without restriction, including without limitation the rights
|
|
12
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
furnished to do so, subject to the following conditions:
|
|
15
|
-
|
|
16
|
-
The above copyright notice and this permission notice shall be included in
|
|
17
|
-
all copies or substantial portions of the Software.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
var register_1 = require("./register");
|
|
28
|
-
var core_1 = require("@jsonforms/core");
|
|
29
|
-
var schema = {
|
|
30
|
-
type: 'object',
|
|
31
|
-
properties: {
|
|
32
|
-
exampleArray: {
|
|
33
|
-
type: 'array',
|
|
34
|
-
items: {
|
|
35
|
-
type: 'object',
|
|
36
|
-
properties: {
|
|
37
|
-
name: { type: 'string' },
|
|
38
|
-
choices: {
|
|
39
|
-
type: 'array',
|
|
40
|
-
items: {
|
|
41
|
-
type: 'string'
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var uischema = {
|
|
50
|
-
type: 'HorizontalLayout',
|
|
51
|
-
elements: [
|
|
52
|
-
{
|
|
53
|
-
type: 'Control',
|
|
54
|
-
label: {
|
|
55
|
-
text: 'Example Array',
|
|
56
|
-
show: true
|
|
57
|
-
},
|
|
58
|
-
scope: '#/properties/exampleArray'
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
};
|
|
62
|
-
var data = {
|
|
63
|
-
exampleArray: [
|
|
64
|
-
{
|
|
65
|
-
choices: ['This', 'is', 'an', 'example'],
|
|
66
|
-
name: 'Hi there'
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
};
|
|
70
|
-
register_1.registerExamples([
|
|
71
|
-
{
|
|
72
|
-
name: 'nestedArray',
|
|
73
|
-
label: 'Nested Array',
|
|
74
|
-
data: data,
|
|
75
|
-
schema: schema,
|
|
76
|
-
uischema: uischema
|
|
77
|
-
}
|
|
78
|
-
]);
|
|
79
|
-
var nestedArrayTester = function (_jsonSchema, schemaPath) {
|
|
80
|
-
return schemaPath === '#/properties/exampleArray' ? 2 : core_1.NOT_APPLICABLE;
|
|
81
|
-
};
|
|
82
|
-
var control1 = {
|
|
83
|
-
type: 'Control',
|
|
84
|
-
scope: '#/properties/name'
|
|
85
|
-
};
|
|
86
|
-
// register inner layout
|
|
87
|
-
var control2 = {
|
|
88
|
-
type: 'Control',
|
|
89
|
-
scope: '#/properties/choices'
|
|
90
|
-
};
|
|
91
|
-
exports.nestedArrayLayout = {
|
|
92
|
-
type: 'VerticalLayout',
|
|
93
|
-
elements: [control1, control2]
|
|
94
|
-
};
|
|
95
|
-
exports.registerNestedArrayUISchema = function (dispatch) {
|
|
96
|
-
dispatch(core_1.Actions.registerUISchema(nestedArrayTester, exports.nestedArrayLayout));
|
|
97
|
-
};
|
|
98
|
-
exports.unregisterNestedArrayUISchema = function (dispatch) {
|
|
99
|
-
dispatch(core_1.Actions.unregisterUISchema(nestedArrayTester));
|
|
100
|
-
};
|
|
101
|
-
//# sourceMappingURL=nestedArrays.js.map
|
package/lib/nestedArrays.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nestedArrays.js","sourceRoot":"","sources":["../src/nestedArrays.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAC9C,wCAQyB;AAEzB,IAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB,OAAO,EAAE;wBACP,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;KAC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kB,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC"}
|
package/lib/numbers.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
The MIT License
|
|
5
|
-
|
|
6
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
7
|
-
https://github.com/eclipsesource/jsonforms
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
in the Software without restriction, including without limitation the rights
|
|
12
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
furnished to do so, subject to the following conditions:
|
|
15
|
-
|
|
16
|
-
The above copyright notice and this permission notice shall be included in
|
|
17
|
-
all copies or substantial portions of the Software.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
var register_1 = require("./register");
|
|
28
|
-
exports.schema = {
|
|
29
|
-
type: 'object',
|
|
30
|
-
properties: {
|
|
31
|
-
price: {
|
|
32
|
-
type: 'number',
|
|
33
|
-
maximum: 100,
|
|
34
|
-
minimum: 1,
|
|
35
|
-
default: 50
|
|
36
|
-
},
|
|
37
|
-
age: {
|
|
38
|
-
type: 'integer'
|
|
39
|
-
},
|
|
40
|
-
height: {
|
|
41
|
-
type: 'number'
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.uischema = {
|
|
46
|
-
type: 'VerticalLayout',
|
|
47
|
-
elements: [
|
|
48
|
-
{
|
|
49
|
-
type: 'HorizontalLayout',
|
|
50
|
-
elements: [
|
|
51
|
-
{
|
|
52
|
-
type: 'Control',
|
|
53
|
-
scope: '#/properties/price',
|
|
54
|
-
label: {
|
|
55
|
-
text: 'Price'
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'Control',
|
|
60
|
-
scope: '#/properties/age'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: 'Control',
|
|
64
|
-
scope: '#/properties/height'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: 'Control',
|
|
68
|
-
scope: '#/properties/price',
|
|
69
|
-
label: {
|
|
70
|
-
text: 'Price with Slider'
|
|
71
|
-
},
|
|
72
|
-
options: { slider: true }
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
};
|
|
78
|
-
exports.data = {};
|
|
79
|
-
register_1.registerExamples([
|
|
80
|
-
{
|
|
81
|
-
name: 'numbers',
|
|
82
|
-
label: 'Numbers',
|
|
83
|
-
data: exports.data,
|
|
84
|
-
schema: exports.schema,
|
|
85
|
-
uischema: exports.uischema
|
|
86
|
-
}
|
|
87
|
-
]);
|
|
88
|
-
//# sourceMappingURL=numbers.js.map
|
package/lib/numbers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../src/numbers.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,EAAE;SACZ;QACD,GAAG,EAAE;YACH,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,kBAAkB;YACxB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,oBAAoB;oBAC3B,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,kBAAkB;iBAC1B;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,qBAAqB;iBAC7B;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,oBAAoB;oBAC3B,KAAK,EAAE;wBACL,IAAI,EAAE,mBAAmB;qBAC1B;oBACD,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;iBAC1B;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,IAAI,GAAG,EAAE,CAAC;AAEvB,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;QAChB,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
|