@pie-element/rubric 1.5.16 → 1.5.17-beta.587
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/CHANGELOG.md +443 -0
- package/configure/CHANGELOG.md +389 -0
- package/configure/lib/defaults.js +29 -0
- package/configure/lib/defaults.js.map +1 -0
- package/configure/lib/index.js +46 -9
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/main.js +100 -0
- package/configure/lib/main.js.map +1 -0
- package/configure/package.json +5 -3
- package/configure/src/defaults.js +21 -0
- package/configure/src/index.js +34 -8
- package/configure/src/main.jsx +48 -0
- package/controller/CHANGELOG.md +46 -0
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +1 -1
- package/controller/src/__tests__/index.test.js +2 -5
- package/controller/src/index.js +2 -2
- package/docs/config-schema.json +79 -0
- package/docs/config-schema.json.md +65 -0
- package/docs/demo/config.js +2 -2
- package/docs/demo/generate.js +2 -1
- package/docs/demo/index.html +1 -2
- package/docs/pie-schema.json +80 -0
- package/docs/pie-schema.json.md +53 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/main.js +44 -19
- package/lib/main.js.map +1 -1
- package/lib/print.js +114 -0
- package/lib/print.js.map +1 -0
- package/package.json +6 -2
- package/src/__tests__/__snapshots__/rubric-view.test.jsx.snap +7271 -263
- package/src/__tests__/rubric-view.test.jsx +11 -12
- package/src/index.js +2 -5
- package/src/main.jsx +51 -23
- package/src/print.js +63 -0
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,395 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.2.0...@pie-element/rubric-configure@2.3.0) (2023-01-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update pie-libs ([6423903](https://github.com/pie-framework/pie-elements/commit/6423903898b041f56db2111de2e4aac4ee9f1fd3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.6...@pie-element/rubric-configure@2.2.0) (2023-01-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* update pie-libs ([b174476](https://github.com/pie-framework/pie-elements/commit/b174476729119a0689f1f8adfc8c235246676cab))
|
|
23
|
+
* update pie-libs ([f72c3c8](https://github.com/pie-framework/pie-elements/commit/f72c3c8d8bc9bbf061bb81502317157a63c22972))
|
|
24
|
+
* update pie-libs ([8490729](https://github.com/pie-framework/pie-elements/commit/8490729a2389d36fd3968f0806119fde96577842))
|
|
25
|
+
* **rubric:** added configuration prop to hide the settings panel PD-1999 and updated documentation ([a01748b](https://github.com/pie-framework/pie-elements/commit/a01748bbddd34848dd07ec6be7d8a2b55c47214d))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [2.1.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.5...@pie-element/rubric-configure@2.1.6) (2022-12-21)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* updated pie-libs ([8cb5b90](https://github.com/pie-framework/pie-elements/commit/8cb5b90d501ccbdf5ffd764e6555faa48b8f54d6))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [2.1.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.4...@pie-element/rubric-configure@2.1.5) (2022-12-20)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* updated pie-libs ([6549302](https://github.com/pie-framework/pie-elements/commit/65493026fbf356c5ab752ae6a14d961d4b256368))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## [2.1.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.3...@pie-element/rubric-configure@2.1.4) (2022-12-07)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* update libs ([441f403](https://github.com/pie-framework/pie-elements/commit/441f403870b7bec0d61fab58b8d93dbe0ead4c32))
|
|
59
|
+
* update libs for PD-2030 PD-2031 ([3174022](https://github.com/pie-framework/pie-elements/commit/3174022d45603ed217bbe8804a142b07084636a5))
|
|
60
|
+
* updated lib PD-1715 ([42e788d](https://github.com/pie-framework/pie-elements/commit/42e788db0c792838994e55001952da7701251a8e))
|
|
61
|
+
* updated libs ([c20de3a](https://github.com/pie-framework/pie-elements/commit/c20de3a6ba4499a090c809e18e52588d2a585fa0))
|
|
62
|
+
* updated libs ([0eed79a](https://github.com/pie-framework/pie-elements/commit/0eed79a32c3b777c16c8cabf201513fc1d2726a0))
|
|
63
|
+
* updated libs ([343c9ec](https://github.com/pie-framework/pie-elements/commit/343c9ec3dccba7f781e90ae2bd195cac6f78f467))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [2.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.2...@pie-element/rubric-configure@2.1.3) (2022-11-15)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [2.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.1...@pie-element/rubric-configure@2.1.2) (2022-10-31)
|
|
78
|
+
|
|
79
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## [2.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.1.0...@pie-element/rubric-configure@2.1.1) (2022-10-18)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
* rubric imports ([08a8b1b](https://github.com/pie-framework/pie-elements/commit/08a8b1b94cc50b952793c59b70192c20885a2d14))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# [2.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.11...@pie-element/rubric-configure@2.1.0) (2022-10-17)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* default rubric model ([6454f5f](https://github.com/pie-framework/pie-elements/commit/6454f5fbced5d843fe9500ca00db70d926a86819))
|
|
102
|
+
* rubric imports ([4b8a9de](https://github.com/pie-framework/pie-elements/commit/4b8a9de461846ce1722f56208abb54999a59dc29))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Features
|
|
106
|
+
|
|
107
|
+
* update pie-lib/rubric dependecies version ([5546015](https://github.com/pie-framework/pie-elements/commit/5546015c3923ce2e34ab810ccd698424c1009c03))
|
|
108
|
+
* **rubric:** add settings panel to rubric PD-2040 ([697428f](https://github.com/pie-framework/pie-elements/commit/697428fb3f0562c3df54e35a4a7abca0e8719660))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## [2.0.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.10...@pie-element/rubric-configure@2.0.11) (2022-09-29)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## [2.0.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.9...@pie-element/rubric-configure@2.0.10) (2022-09-14)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
## [2.0.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.8...@pie-element/rubric-configure@2.0.9) (2022-09-13)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## [2.0.8](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.7...@pie-element/rubric-configure@2.0.8) (2022-08-31)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## [2.0.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.6...@pie-element/rubric-configure@2.0.7) (2022-08-16)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## [2.0.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.5...@pie-element/rubric-configure@2.0.6) (2022-08-08)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## [2.0.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.4...@pie-element/rubric-configure@2.0.5) (2022-08-02)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## [2.0.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.3...@pie-element/rubric-configure@2.0.4) (2022-07-22)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## [2.0.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.2...@pie-element/rubric-configure@2.0.3) (2022-07-20)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
## [2.0.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.1...@pie-element/rubric-configure@2.0.2) (2022-07-19)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
## [2.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@2.0.0...@pie-element/rubric-configure@2.0.1) (2022-06-28)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
# [2.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.47...@pie-element/rubric-configure@2.0.0) (2022-06-28)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### chore
|
|
206
|
+
|
|
207
|
+
* Merge master with develop. ([cdca48a](https://github.com/pie-framework/pie-elements/commit/cdca48abaa1d4179e4a961e13d171e14b7ed2444))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### BREAKING CHANGES
|
|
211
|
+
|
|
212
|
+
* Image percent buttons were removed from toolbar.
|
|
213
|
+
New properties maxImageWidth and maxImageHeight were added.
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## [1.2.47](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.46...@pie-element/rubric-configure@1.2.47) (2022-06-13)
|
|
220
|
+
|
|
221
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## [1.2.46](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.45...@pie-element/rubric-configure@1.2.46) (2022-05-30)
|
|
228
|
+
|
|
229
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## [1.2.45](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.44...@pie-element/rubric-configure@1.2.45) (2022-05-16)
|
|
236
|
+
|
|
237
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
## [1.2.44](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.43...@pie-element/rubric-configure@1.2.44) (2022-05-09)
|
|
244
|
+
|
|
245
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
## [1.2.43](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.42...@pie-element/rubric-configure@1.2.43) (2022-05-03)
|
|
252
|
+
|
|
253
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
## [1.2.42](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.41...@pie-element/rubric-configure@1.2.42) (2022-04-12)
|
|
260
|
+
|
|
261
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
## [1.2.41](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.40...@pie-element/rubric-configure@1.2.41) (2022-03-22)
|
|
268
|
+
|
|
269
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
## [1.2.40](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.39...@pie-element/rubric-configure@1.2.40) (2022-03-08)
|
|
276
|
+
|
|
277
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## [1.2.39](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.38...@pie-element/rubric-configure@1.2.39) (2022-03-08)
|
|
284
|
+
|
|
285
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
## [1.2.38](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.37...@pie-element/rubric-configure@1.2.38) (2022-02-21)
|
|
292
|
+
|
|
293
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
## [1.2.37](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.36...@pie-element/rubric-configure@1.2.37) (2022-02-04)
|
|
300
|
+
|
|
301
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## [1.2.36](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.35...@pie-element/rubric-configure@1.2.36) (2022-01-24)
|
|
308
|
+
|
|
309
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## [1.2.35](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.34...@pie-element/rubric-configure@1.2.35) (2022-01-10)
|
|
316
|
+
|
|
317
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## [1.2.34](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.33...@pie-element/rubric-configure@1.2.34) (2021-12-23)
|
|
324
|
+
|
|
325
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## [1.2.32](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.31...@pie-element/rubric-configure@1.2.32) (2021-12-13)
|
|
332
|
+
|
|
333
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
## [1.2.29](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.28...@pie-element/rubric-configure@1.2.29) (2021-11-29)
|
|
340
|
+
|
|
341
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
## [1.2.28](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.27...@pie-element/rubric-configure@1.2.28) (2021-10-04)
|
|
348
|
+
|
|
349
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
## [1.2.27](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.26...@pie-element/rubric-configure@1.2.27) (2021-09-20)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
### Bug Fixes
|
|
359
|
+
|
|
360
|
+
* pie-lib updates ([e521c2f](https://github.com/pie-framework/pie-elements/commit/e521c2f1a44aa7f3e14f82a1cee05ceb484ed0a6))
|
|
361
|
+
* Updated pie-lib versions ([2fe4c5d](https://github.com/pie-framework/pie-elements/commit/2fe4c5d0be2d40f5fdb34815855695a7f1087f56))
|
|
362
|
+
* Updated pie-lib versions ([1c23830](https://github.com/pie-framework/pie-elements/commit/1c23830fc75d1de5f7bb3bb16de3c665ae5fa350))
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
## [1.2.26](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.25...@pie-element/rubric-configure@1.2.26) (2021-08-05)
|
|
369
|
+
|
|
370
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
## [1.2.25](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.23...@pie-element/rubric-configure@1.2.25) (2021-08-05)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Bug Fixes
|
|
380
|
+
|
|
381
|
+
* force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
## [1.2.23](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.22...@pie-element/rubric-configure@1.2.23) (2021-06-29)
|
|
388
|
+
|
|
389
|
+
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
6
395
|
## [1.2.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/rubric-configure@1.2.21...@pie-element/rubric-configure@1.2.22) (2021-04-07)
|
|
7
396
|
|
|
8
397
|
**Note:** Version bump only for package @pie-element/rubric-configure
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
model: {
|
|
9
|
+
points: ['', '', '', ''],
|
|
10
|
+
sampleAnswers: [null, null, null, null],
|
|
11
|
+
maxPoints: 4,
|
|
12
|
+
excludeZero: false,
|
|
13
|
+
excludeZeroEnabled: true,
|
|
14
|
+
maxPointsEnabled: true
|
|
15
|
+
},
|
|
16
|
+
configuration: {
|
|
17
|
+
showExcludeZero: {
|
|
18
|
+
settings: true,
|
|
19
|
+
label: 'Ability to exclude zero'
|
|
20
|
+
},
|
|
21
|
+
showMaxPoint: {
|
|
22
|
+
settings: true,
|
|
23
|
+
label: 'Show max points dropdown'
|
|
24
|
+
},
|
|
25
|
+
settingsPanelDisabled: false
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports["default"] = _default;
|
|
29
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/defaults.js"],"names":["model","points","sampleAnswers","maxPoints","excludeZero","excludeZeroEnabled","maxPointsEnabled","configuration","showExcludeZero","settings","label","showMaxPoint","settingsPanelDisabled"],"mappings":";;;;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CAAC,EAAD,EAAK,EAAL,EAAS,EAAT,EAAa,EAAb,CADH;AAELC,IAAAA,aAAa,EAAE,CAAC,IAAD,EAAO,IAAP,EAAa,IAAb,EAAmB,IAAnB,CAFV;AAGLC,IAAAA,SAAS,EAAE,CAHN;AAILC,IAAAA,WAAW,EAAE,KAJR;AAKLC,IAAAA,kBAAkB,EAAE,IALf;AAMLC,IAAAA,gBAAgB,EAAE;AANb,GADM;AASbC,EAAAA,aAAa,EAAE;AACbC,IAAAA,eAAe,EAAE;AACfC,MAAAA,QAAQ,EAAE,IADK;AAEfC,MAAAA,KAAK,EAAE;AAFQ,KADJ;AAKbC,IAAAA,YAAY,EAAE;AACZF,MAAAA,QAAQ,EAAE,IADE;AAEZC,MAAAA,KAAK,EAAE;AAFK,KALD;AASbE,IAAAA,qBAAqB,EAAE;AATV;AATF,C","sourcesContent":["export default {\n model: {\n points: ['', '', '', ''],\n sampleAnswers: [null, null, null, null],\n maxPoints: 4,\n excludeZero: false,\n excludeZeroEnabled: true,\n maxPointsEnabled: true,\n },\n configuration: {\n showExcludeZero: {\n settings: true,\n label: 'Ability to exclude zero',\n },\n showMaxPoint: {\n settings: true,\n label: 'Show max points dropdown',\n },\n settingsPanelDisabled: false,\n },\n};\n"],"file":"defaults.js"}
|
package/configure/lib/index.js
CHANGED
|
@@ -21,19 +21,35 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
21
21
|
|
|
22
22
|
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
23
23
|
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
|
|
24
26
|
var _pieConfigureEvents = require("@pie-framework/pie-configure-events");
|
|
25
27
|
|
|
26
28
|
var _react = _interopRequireDefault(require("react"));
|
|
27
29
|
|
|
28
30
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
29
31
|
|
|
30
|
-
var _rubric = require("@pie-lib/rubric");
|
|
31
|
-
|
|
32
32
|
var _debug = _interopRequireDefault(require("debug"));
|
|
33
33
|
|
|
34
|
+
var _main = _interopRequireDefault(require("./main"));
|
|
35
|
+
|
|
36
|
+
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
37
|
+
|
|
34
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
35
39
|
|
|
36
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try {
|
|
40
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
+
|
|
42
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
43
|
+
|
|
44
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45
|
+
|
|
46
|
+
var modelWithDefaults = function modelWithDefaults(m) {
|
|
47
|
+
return _objectSpread(_objectSpread({}, _defaults["default"].model), m);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var configurationWithDefaults = function configurationWithDefaults(c) {
|
|
51
|
+
return _objectSpread(_objectSpread({}, _defaults["default"].configuration), c);
|
|
52
|
+
};
|
|
37
53
|
|
|
38
54
|
var RubricElement = /*#__PURE__*/function (_HTMLElement) {
|
|
39
55
|
(0, _inherits2["default"])(RubricElement, _HTMLElement);
|
|
@@ -45,17 +61,36 @@ var RubricElement = /*#__PURE__*/function (_HTMLElement) {
|
|
|
45
61
|
|
|
46
62
|
(0, _classCallCheck2["default"])(this, RubricElement);
|
|
47
63
|
_this = _super.call(this);
|
|
64
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onConfigurationChanged", function (c) {
|
|
65
|
+
_this._configuration = configurationWithDefaults(c);
|
|
66
|
+
|
|
67
|
+
if (_this._model) {
|
|
68
|
+
_this.onModelChanged(_this._model);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
_this._render();
|
|
72
|
+
});
|
|
48
73
|
|
|
49
74
|
_debug["default"].log('constructor called');
|
|
50
75
|
|
|
76
|
+
_this._model = modelWithDefaults();
|
|
77
|
+
_this._configuration = configurationWithDefaults();
|
|
51
78
|
_this.onModelChanged = _this.onModelChanged.bind((0, _assertThisInitialized2["default"])(_this));
|
|
79
|
+
_this.onConfigurationChanged = _this.onConfigurationChanged.bind((0, _assertThisInitialized2["default"])(_this));
|
|
52
80
|
return _this;
|
|
53
81
|
}
|
|
54
82
|
|
|
55
83
|
(0, _createClass2["default"])(RubricElement, [{
|
|
56
84
|
key: "model",
|
|
57
|
-
set: function set(
|
|
58
|
-
this._model =
|
|
85
|
+
set: function set(m) {
|
|
86
|
+
this._model = modelWithDefaults(m);
|
|
87
|
+
|
|
88
|
+
this._render();
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "configuration",
|
|
92
|
+
set: function set(c) {
|
|
93
|
+
this._configuration = configurationWithDefaults(c);
|
|
59
94
|
|
|
60
95
|
this._render();
|
|
61
96
|
}
|
|
@@ -77,12 +112,14 @@ var RubricElement = /*#__PURE__*/function (_HTMLElement) {
|
|
|
77
112
|
key: "_render",
|
|
78
113
|
value: function _render() {
|
|
79
114
|
if (this._model) {
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
115
|
+
var element = /*#__PURE__*/_react["default"].createElement(_main["default"], {
|
|
116
|
+
model: this._model,
|
|
117
|
+
configuration: this._configuration,
|
|
118
|
+
onModelChanged: this.onModelChanged,
|
|
119
|
+
onConfigurationChanged: this.onConfigurationChanged
|
|
83
120
|
});
|
|
84
121
|
|
|
85
|
-
_reactDom["default"].render(
|
|
122
|
+
_reactDom["default"].render(element, this);
|
|
86
123
|
}
|
|
87
124
|
}
|
|
88
125
|
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["modelWithDefaults","m","defaults","model","configurationWithDefaults","c","configuration","RubricElement","_configuration","_model","onModelChanged","_render","debug","log","bind","onConfigurationChanged","dispatchEvent","ModelUpdatedEvent","element","React","createElement","Main","ReactDOM","render","HTMLElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,CAAD;AAAA,yCAAaC,qBAASC,KAAtB,GAAgCF,CAAhC;AAAA,CAA1B;;AACA,IAAMG,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACC,CAAD;AAAA,yCAAaH,qBAASI,aAAtB,GAAwCD,CAAxC;AAAA,CAAlC;;IAEqBE,a;;;;;AACnB,2BAAc;AAAA;;AAAA;AACZ;AADY,+GAyBW,UAACF,CAAD,EAAO;AAC9B,YAAKG,cAAL,GAAsBJ,yBAAyB,CAACC,CAAD,CAA/C;;AAEA,UAAI,MAAKI,MAAT,EAAiB;AACf,cAAKC,cAAL,CAAoB,MAAKD,MAAzB;AACD;;AAED,YAAKE,OAAL;AACD,KAjCa;;AAEZC,sBAAMC,GAAN,CAAU,oBAAV;;AACA,UAAKJ,MAAL,GAAcT,iBAAiB,EAA/B;AACA,UAAKQ,cAAL,GAAsBJ,yBAAyB,EAA/C;AACA,UAAKM,cAAL,GAAsB,MAAKA,cAAL,CAAoBI,IAApB,gDAAtB;AACA,UAAKC,sBAAL,GAA8B,MAAKA,sBAAL,CAA4BD,IAA5B,gDAA9B;AANY;AAOb;;;;SAED,aAAUb,CAAV,EAAa;AACX,WAAKQ,MAAL,GAAcT,iBAAiB,CAACC,CAAD,CAA/B;;AACA,WAAKU,OAAL;AACD;;;SAED,aAAkBN,CAAlB,EAAqB;AACnB,WAAKG,cAAL,GAAsBJ,yBAAyB,CAACC,CAAD,CAA/C;;AACA,WAAKM,OAAL;AACD;;;WAED,wBAAeV,CAAf,EAAkB;AAChB,WAAKQ,MAAL,GAAcR,CAAd;;AACA,WAAKU,OAAL;;AACA,WAAKK,aAAL,CAAmB,IAAIC,qCAAJ,CAAsB,KAAKR,MAA3B,EAAmC,KAAnC,CAAnB;AACD;;;WAYD,6BAAoB;AAClB,WAAKE,OAAL;AACD;;;WAED,mBAAU;AACR,UAAI,KAAKF,MAAT,EAAiB;AACf,YAAIS,OAAO,gBAAGC,kBAAMC,aAAN,CAAoBC,gBAApB,EAA0B;AACtClB,UAAAA,KAAK,EAAE,KAAKM,MAD0B;AAEtCH,UAAAA,aAAa,EAAE,KAAKE,cAFkB;AAGtCE,UAAAA,cAAc,EAAE,KAAKA,cAHiB;AAItCK,UAAAA,sBAAsB,EAAE,KAAKA;AAJS,SAA1B,CAAd;;AAOAO,6BAASC,MAAT,CAAgBL,OAAhB,EAAyB,IAAzB;AACD;AACF;;;kDAnDwCM,W","sourcesContent":["import { ModelUpdatedEvent } from '@pie-framework/pie-configure-events';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport debug from 'debug';\n\nimport Main from './main';\nimport defaults from './defaults';\n\nconst modelWithDefaults = (m) => ({ ...defaults.model, ...m });\nconst configurationWithDefaults = (c) => ({ ...defaults.configuration, ...c });\n\nexport default class RubricElement extends HTMLElement {\n constructor() {\n super();\n debug.log('constructor called');\n this._model = modelWithDefaults();\n this._configuration = configurationWithDefaults();\n this.onModelChanged = this.onModelChanged.bind(this);\n this.onConfigurationChanged = this.onConfigurationChanged.bind(this);\n }\n\n set model(m) {\n this._model = modelWithDefaults(m);\n this._render();\n }\n\n set configuration(c) {\n this._configuration = configurationWithDefaults(c);\n this._render();\n }\n\n onModelChanged(m) {\n this._model = m;\n this._render();\n this.dispatchEvent(new ModelUpdatedEvent(this._model, false));\n }\n\n onConfigurationChanged = (c) => {\n this._configuration = configurationWithDefaults(c);\n\n if (this._model) {\n this.onModelChanged(this._model);\n }\n\n this._render();\n };\n\n connectedCallback() {\n this._render();\n }\n\n _render() {\n if (this._model) {\n let element = React.createElement(Main, {\n model: this._model,\n configuration: this._configuration,\n onModelChanged: this.onModelChanged,\n onConfigurationChanged: this.onConfigurationChanged,\n });\n\n ReactDOM.render(element, this);\n }\n }\n}\n"],"file":"index.js"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
+
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
17
|
+
|
|
18
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
|
+
|
|
20
|
+
var _react = _interopRequireDefault(require("react"));
|
|
21
|
+
|
|
22
|
+
var _rubric = require("@pie-lib/rubric");
|
|
23
|
+
|
|
24
|
+
var _styles = require("@material-ui/core/styles");
|
|
25
|
+
|
|
26
|
+
var _configUi = require("@pie-lib/config-ui");
|
|
27
|
+
|
|
28
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
29
|
+
|
|
30
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
+
|
|
32
|
+
var Panel = _configUi.settings.Panel,
|
|
33
|
+
toggle = _configUi.settings.toggle;
|
|
34
|
+
|
|
35
|
+
var styles = function styles(theme) {
|
|
36
|
+
return {
|
|
37
|
+
design: {
|
|
38
|
+
fontFamily: 'Cerebri Sans',
|
|
39
|
+
fontSize: theme.typography.fontSize
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var Main = /*#__PURE__*/function (_React$Component) {
|
|
45
|
+
(0, _inherits2["default"])(Main, _React$Component);
|
|
46
|
+
|
|
47
|
+
var _super = _createSuper(Main);
|
|
48
|
+
|
|
49
|
+
function Main() {
|
|
50
|
+
(0, _classCallCheck2["default"])(this, Main);
|
|
51
|
+
return _super.apply(this, arguments);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
(0, _createClass2["default"])(Main, [{
|
|
55
|
+
key: "render",
|
|
56
|
+
value: function render() {
|
|
57
|
+
var _ref = this.props || {},
|
|
58
|
+
model = _ref.model,
|
|
59
|
+
classes = _ref.classes,
|
|
60
|
+
configuration = _ref.configuration,
|
|
61
|
+
onConfigurationChanged = _ref.onConfigurationChanged,
|
|
62
|
+
onModelChanged = _ref.onModelChanged;
|
|
63
|
+
|
|
64
|
+
var _ref2 = configuration || {},
|
|
65
|
+
settingsPanelDisabled = _ref2.settingsPanelDisabled,
|
|
66
|
+
_ref2$showExcludeZero = _ref2.showExcludeZero,
|
|
67
|
+
showExcludeZero = _ref2$showExcludeZero === void 0 ? {} : _ref2$showExcludeZero,
|
|
68
|
+
_ref2$showMaxPoint = _ref2.showMaxPoint,
|
|
69
|
+
showMaxPoint = _ref2$showMaxPoint === void 0 ? {} : _ref2$showMaxPoint;
|
|
70
|
+
|
|
71
|
+
var panelProperties = {
|
|
72
|
+
excludeZeroEnabled: showExcludeZero.settings && toggle(showExcludeZero.label),
|
|
73
|
+
maxPointsEnabled: showMaxPoint.settings && toggle(showMaxPoint.label)
|
|
74
|
+
};
|
|
75
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
+
className: classes.design
|
|
77
|
+
}, /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
|
|
78
|
+
hideSettings: settingsPanelDisabled,
|
|
79
|
+
settings: /*#__PURE__*/_react["default"].createElement(Panel, {
|
|
80
|
+
model: model,
|
|
81
|
+
onChangeModel: onModelChanged,
|
|
82
|
+
configuration: configuration,
|
|
83
|
+
onChangeConfiguration: onConfigurationChanged,
|
|
84
|
+
groups: {
|
|
85
|
+
Properties: panelProperties
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement(_rubric.Authoring, {
|
|
89
|
+
value: model,
|
|
90
|
+
onChange: onModelChanged
|
|
91
|
+
})));
|
|
92
|
+
}
|
|
93
|
+
}]);
|
|
94
|
+
return Main;
|
|
95
|
+
}(_react["default"].Component);
|
|
96
|
+
|
|
97
|
+
var _default = (0, _styles.withStyles)(styles)(Main);
|
|
98
|
+
|
|
99
|
+
exports["default"] = _default;
|
|
100
|
+
//# sourceMappingURL=main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","styles","theme","design","fontFamily","fontSize","typography","Main","props","model","classes","configuration","onConfigurationChanged","onModelChanged","settingsPanelDisabled","showExcludeZero","showMaxPoint","panelProperties","excludeZeroEnabled","label","maxPointsEnabled","Properties","React","Component"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAQA,KAAR,GAA0BC,kBAA1B,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA0BD,kBAA1B,CAAeC,MAAf;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,MAAM,EAAE;AACNC,MAAAA,UAAU,EAAE,cADN;AAENC,MAAAA,QAAQ,EAAEH,KAAK,CAACI,UAAN,CAAiBD;AAFrB;AADiB,GAAZ;AAAA,CAAf;;IAOME,I;;;;;;;;;;;;WACJ,kBAAS;AACP,iBAAkF,KAAKC,KAAL,IAAc,EAAhG;AAAA,UAAQC,KAAR,QAAQA,KAAR;AAAA,UAAeC,OAAf,QAAeA,OAAf;AAAA,UAAwBC,aAAxB,QAAwBA,aAAxB;AAAA,UAAuCC,sBAAvC,QAAuCA,sBAAvC;AAAA,UAA+DC,cAA/D,QAA+DA,cAA/D;;AACA,kBAA2EF,aAAa,IAAI,EAA5F;AAAA,UAAQG,qBAAR,SAAQA,qBAAR;AAAA,wCAA+BC,eAA/B;AAAA,UAA+BA,eAA/B,sCAAiD,EAAjD;AAAA,qCAAqDC,YAArD;AAAA,UAAqDA,YAArD,mCAAoE,EAApE;;AAEA,UAAMC,eAAe,GAAG;AACtBC,QAAAA,kBAAkB,EAAEH,eAAe,CAAChB,QAAhB,IAA4BC,MAAM,CAACe,eAAe,CAACI,KAAjB,CADhC;AAEtBC,QAAAA,gBAAgB,EAAEJ,YAAY,CAACjB,QAAb,IAAyBC,MAAM,CAACgB,YAAY,CAACG,KAAd;AAF3B,OAAxB;AAKA,0BACE;AAAK,QAAA,SAAS,EAAET,OAAO,CAACP;AAAxB,sBACE,gCAAC,gBAAD,CAAQ,YAAR;AACE,QAAA,YAAY,EAAEW,qBADhB;AAEE,QAAA,QAAQ,eACN,gCAAC,KAAD;AACE,UAAA,KAAK,EAAEL,KADT;AAEE,UAAA,aAAa,EAAEI,cAFjB;AAGE,UAAA,aAAa,EAAEF,aAHjB;AAIE,UAAA,qBAAqB,EAAEC,sBAJzB;AAKE,UAAA,MAAM,EAAE;AACNS,YAAAA,UAAU,EAAEJ;AADN;AALV;AAHJ,sBAcE,gCAAC,iBAAD;AAAW,QAAA,KAAK,EAAER,KAAlB;AAAyB,QAAA,QAAQ,EAAEI;AAAnC,QAdF,CADF,CADF;AAoBD;;;EA9BgBS,kBAAMC,S;;eAiCV,wBAAWtB,MAAX,EAAmBM,IAAnB,C","sourcesContent":["import React from 'react';\nimport { Authoring } from '@pie-lib/rubric';\nimport { withStyles } from '@material-ui/core/styles';\nimport { layout, settings } from '@pie-lib/config-ui';\n\nconst { Panel, toggle } = settings;\n\nconst styles = (theme) => ({\n design: {\n fontFamily: 'Cerebri Sans',\n fontSize: theme.typography.fontSize,\n },\n});\n\nclass Main extends React.Component {\n render() {\n const { model, classes, configuration, onConfigurationChanged, onModelChanged } = this.props || {};\n const { settingsPanelDisabled, showExcludeZero = {}, showMaxPoint = {} } = configuration || {};\n\n const panelProperties = {\n excludeZeroEnabled: showExcludeZero.settings && toggle(showExcludeZero.label),\n maxPointsEnabled: showMaxPoint.settings && toggle(showMaxPoint.label),\n };\n\n return (\n <div className={classes.design}>\n <layout.ConfigLayout\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onModelChanged}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Properties: panelProperties,\n }}\n />\n }\n >\n <Authoring value={model} onChange={onModelChanged} />\n </layout.ConfigLayout>\n </div>\n );\n }\n}\n\nexport default withStyles(styles)(Main);\n"],"file":"main.js"}
|
package/configure/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"description": "Rubric authoring view",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"author": "Pie Framework Authors",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@
|
|
10
|
-
"@pie-
|
|
9
|
+
"@material-ui/core": "^3.9.2",
|
|
10
|
+
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
+
"@pie-lib/config-ui": "12.0.0-beta.3",
|
|
12
|
+
"@pie-lib/rubric": "1.0.0-beta.2",
|
|
11
13
|
"debug": "^4.1.1",
|
|
12
14
|
"react": "^16.8.6",
|
|
13
15
|
"react-dom": "^16.8.6"
|