@jsonforms/examples 3.9.0-alpha.2 → 3.9.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ const getExamples = () => {
13
13
  return examples;
14
14
  };
15
15
 
16
- const schema$W = {
16
+ const schema$X = {
17
17
  type: 'object',
18
18
  required: ['age'],
19
19
  properties: {
@@ -68,7 +68,7 @@ const schema$W = {
68
68
  },
69
69
  },
70
70
  };
71
- const uischema$W = {
71
+ const uischema$X = {
72
72
  type: 'VerticalLayout',
73
73
  elements: [
74
74
  {
@@ -161,7 +161,7 @@ const uischema$W = {
161
161
  },
162
162
  ],
163
163
  };
164
- const data$Y = {
164
+ const data$Z = {
165
165
  firstName: 'Max',
166
166
  lastName: 'Power',
167
167
  committer: false,
@@ -170,20 +170,20 @@ registerExamples([
170
170
  {
171
171
  name: '1884',
172
172
  label: 'Issue 1884 - Nested enable/disable',
173
- data: data$Y,
174
- schema: schema$W,
175
- uischema: uischema$W,
173
+ data: data$Z,
174
+ schema: schema$X,
175
+ uischema: uischema$X,
176
176
  },
177
177
  ]);
178
178
 
179
179
  var _1884 = /*#__PURE__*/Object.freeze({
180
180
  __proto__: null,
181
- schema: schema$W,
182
- uischema: uischema$W,
183
- data: data$Y
181
+ schema: schema$X,
182
+ uischema: uischema$X,
183
+ data: data$Z
184
184
  });
185
185
 
186
- const schema$V = {
186
+ const schema$W = {
187
187
  type: 'object',
188
188
  definitions: {
189
189
  import: {
@@ -214,8 +214,8 @@ const schema$V = {
214
214
  },
215
215
  },
216
216
  };
217
- const uischema$V = undefined;
218
- const data$X = {
217
+ const uischema$W = undefined;
218
+ const data$Y = {
219
219
  import: [
220
220
  {
221
221
  document: 'Document1',
@@ -228,24 +228,24 @@ registerExamples([
228
228
  {
229
229
  name: '1948_with',
230
230
  label: 'Issue 1948 - Array renderer selection (with schema)',
231
- data: data$X,
232
- schema: schema$V,
233
- uischema: uischema$V,
231
+ data: data$Y,
232
+ schema: schema$W,
233
+ uischema: uischema$W,
234
234
  },
235
235
  {
236
236
  name: '1948_without',
237
237
  label: 'Issue 1948 - Array renderer selection (w/o schema)',
238
- data: data$X,
238
+ data: data$Y,
239
239
  schema: undefined,
240
- uischema: uischema$V,
240
+ uischema: uischema$W,
241
241
  },
242
242
  ]);
243
243
 
244
244
  var _1948 = /*#__PURE__*/Object.freeze({
245
245
  __proto__: null,
246
- schema: schema$V,
247
- uischema: uischema$V,
248
- data: data$X
246
+ schema: schema$W,
247
+ uischema: uischema$W,
248
+ data: data$Y
249
249
  });
250
250
 
251
251
  const personCoreSchema = {
@@ -270,7 +270,7 @@ const personCoreSchema = {
270
270
  },
271
271
  },
272
272
  };
273
- const schema$U = {
273
+ const schema$V = {
274
274
  type: 'object',
275
275
  properties: {
276
276
  ...personCoreSchema.properties,
@@ -310,7 +310,7 @@ const schema$U = {
310
310
  },
311
311
  required: ['occupation', 'nationality'],
312
312
  };
313
- const uischema$U = {
313
+ const uischema$V = {
314
314
  type: 'VerticalLayout',
315
315
  elements: [
316
316
  {
@@ -365,7 +365,7 @@ const uischema$U = {
365
365
  },
366
366
  ],
367
367
  };
368
- const data$W = {
368
+ const data$X = {
369
369
  name: 'John Doe',
370
370
  vegetarian: false,
371
371
  birthDate: '1985-06-02',
@@ -378,18 +378,18 @@ registerExamples([
378
378
  {
379
379
  name: 'person',
380
380
  label: 'Person',
381
- data: data$W,
382
- schema: schema$U,
383
- uischema: uischema$U,
381
+ data: data$X,
382
+ schema: schema$V,
383
+ uischema: uischema$V,
384
384
  },
385
385
  ]);
386
386
 
387
387
  var person = /*#__PURE__*/Object.freeze({
388
388
  __proto__: null,
389
389
  personCoreSchema: personCoreSchema,
390
- schema: schema$U,
391
- uischema: uischema$U,
392
- data: data$W
390
+ schema: schema$V,
391
+ uischema: uischema$V,
392
+ data: data$X
393
393
  });
394
394
 
395
395
  const additionalErrors = [];
@@ -415,9 +415,9 @@ registerExamples([
415
415
  {
416
416
  name: 'additional-errors',
417
417
  label: 'Additional errors',
418
- data: data$W,
419
- schema: schema$U,
420
- uischema: uischema$U,
418
+ data: data$X,
419
+ schema: schema$V,
420
+ uischema: uischema$V,
421
421
  actions: actions$7,
422
422
  },
423
423
  ]);
@@ -428,7 +428,7 @@ var additionalErrors$1 = /*#__PURE__*/Object.freeze({
428
428
  actions: actions$7
429
429
  });
430
430
 
431
- const schema$T = {
431
+ const schema$U = {
432
432
  $schema: 'http://json-schema.org/draft-07/schema#',
433
433
  type: 'object',
434
434
  properties: {
@@ -502,11 +502,11 @@ const schema$T = {
502
502
  },
503
503
  maxProperties: 15,
504
504
  };
505
- const uischema$T = {
505
+ const uischema$U = {
506
506
  type: 'Control',
507
507
  scope: '#/',
508
508
  };
509
- const data$V = {
509
+ const data$W = {
510
510
  propertiesString: 'data',
511
511
  string: 'string value',
512
512
  number: 10.2,
@@ -525,16 +525,131 @@ registerExamples([
525
525
  {
526
526
  name: 'additional-properties',
527
527
  label: 'Additional Properties',
528
+ data: data$W,
529
+ schema: schema$U,
530
+ uischema: uischema$U,
531
+ },
532
+ ]);
533
+
534
+ var additionalProperties = /*#__PURE__*/Object.freeze({
535
+ __proto__: null,
536
+ schema: schema$U,
537
+ uischema: uischema$U
538
+ });
539
+
540
+ const schema$T = {
541
+ type: 'object',
542
+ properties: {
543
+ price: {
544
+ type: 'number',
545
+ },
546
+ weight: {
547
+ type: 'number',
548
+ },
549
+ quantity: {
550
+ type: 'integer',
551
+ },
552
+ website: {
553
+ type: 'string',
554
+ },
555
+ username: {
556
+ type: 'string',
557
+ },
558
+ voltage: {
559
+ type: 'string',
560
+ enum: ['110', '230', '400'],
561
+ },
562
+ frequency: {
563
+ type: 'string',
564
+ oneOf: [
565
+ { const: '50', title: '50' },
566
+ { const: '60', title: '60' },
567
+ ],
568
+ },
569
+ },
570
+ };
571
+ const uischema$T = {
572
+ type: 'VerticalLayout',
573
+ elements: [
574
+ {
575
+ type: 'HorizontalLayout',
576
+ elements: [
577
+ {
578
+ type: 'Control',
579
+ scope: '#/properties/price',
580
+ options: { startAdornment: '€' },
581
+ },
582
+ {
583
+ type: 'Control',
584
+ scope: '#/properties/weight',
585
+ options: { endAdornment: 'kg' },
586
+ },
587
+ {
588
+ type: 'Control',
589
+ scope: '#/properties/quantity',
590
+ options: { endAdornment: 'pcs' },
591
+ },
592
+ ],
593
+ },
594
+ {
595
+ type: 'HorizontalLayout',
596
+ elements: [
597
+ {
598
+ type: 'Control',
599
+ scope: '#/properties/website',
600
+ options: { startAdornment: 'https://' },
601
+ },
602
+ {
603
+ type: 'Control',
604
+ scope: '#/properties/username',
605
+ options: { startAdornment: '@', endAdornment: '.example.com' },
606
+ },
607
+ ],
608
+ },
609
+ {
610
+ type: 'HorizontalLayout',
611
+ elements: [
612
+ {
613
+ type: 'Control',
614
+ scope: '#/properties/voltage',
615
+ label: 'Voltage (autocomplete)',
616
+ options: { endAdornment: 'V' },
617
+ },
618
+ {
619
+ type: 'Control',
620
+ scope: '#/properties/voltage',
621
+ label: 'Voltage (select)',
622
+ options: { autocomplete: false, endAdornment: 'V' },
623
+ },
624
+ {
625
+ type: 'Control',
626
+ scope: '#/properties/frequency',
627
+ options: { autocomplete: false, endAdornment: 'Hz' },
628
+ },
629
+ ],
630
+ },
631
+ ],
632
+ };
633
+ const data$V = {
634
+ weight: 12.5,
635
+ username: 'jane',
636
+ voltage: '230',
637
+ };
638
+ registerExamples([
639
+ {
640
+ name: 'adornments',
641
+ label: 'Adornments',
528
642
  data: data$V,
529
643
  schema: schema$T,
530
644
  uischema: uischema$T,
531
645
  },
532
646
  ]);
533
647
 
534
- var additionalProperties = /*#__PURE__*/Object.freeze({
648
+ var adornments = /*#__PURE__*/Object.freeze({
535
649
  __proto__: null,
536
650
  schema: schema$T,
537
- uischema: uischema$T
651
+ uischema: uischema$T,
652
+ data: data$V
538
653
  });
539
654
 
540
655
  const schema$S = {
@@ -3202,7 +3317,7 @@ var enumInArray = /*#__PURE__*/Object.freeze({
3202
3317
 
3203
3318
  const schema$u = undefined;
3204
3319
  const uischema$u = undefined;
3205
- const data$w = data$W;
3320
+ const data$w = data$X;
3206
3321
  registerExamples([
3207
3322
  {
3208
3323
  name: 'generate',
@@ -3249,7 +3364,7 @@ var generateDynamic = /*#__PURE__*/Object.freeze({
3249
3364
 
3250
3365
  const schema$t = personCoreSchema;
3251
3366
  const uischema$t = undefined;
3252
- const data$v = data$W;
3367
+ const data$v = data$X;
3253
3368
  registerExamples([
3254
3369
  {
3255
3370
  name: 'generate-ui',
@@ -4715,7 +4830,7 @@ var i18n = /*#__PURE__*/Object.freeze({
4715
4830
  translate: translate
4716
4831
  });
4717
4832
 
4718
- const schema$r = schema$U;
4833
+ const schema$r = schema$V;
4719
4834
  const uischemaVertical = {
4720
4835
  type: 'VerticalLayout',
4721
4836
  elements: [
@@ -4803,7 +4918,7 @@ const uischemaComplex = {
4803
4918
  },
4804
4919
  ],
4805
4920
  };
4806
- const data$s = data$W;
4921
+ const data$s = data$X;
4807
4922
  registerExamples([
4808
4923
  {
4809
4924
  name: 'layout-vertical',
@@ -7817,5 +7932,5 @@ var jsonschema = /*#__PURE__*/Object.freeze({
7817
7932
  uischemas: uischemas
7818
7933
  });
7819
7934
 
7820
- export { additionalErrors$1 as additionalErrors, additionalProperties, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysI18n as arrayI18n, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDefaults as arrayWithDefaults, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, arraysWithSorting as arrayWithSorting, arraysWithTranslatedCustomElementLabel as arrayWithTranslatedCustomChildLabel, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, _default as defaultExample, _enum as enumExample, enumI18n, enumInArray, generateDynamic, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1884 as issue_1884, _1948 as issue_1948, jsonEditor as jsoneditor, jsonschema, layout, listWithDetail, listWithDetailPrimitives, listWithDetailRegistered, login, mixed, mixedObject, enumMulti as multiEnum, enumMultiWithLabelAndDesc as multiEnumWithLabelAndDesc, nestedArrays as nestedArray, nestedCategorization, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, prependAppendSlots, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, specialPropertyNames, categorizationStepper as stepper, categorizationStepperNavButtons as steppershownav, string, stringArray, text, validationNestedSameName };
7935
+ export { additionalErrors$1 as additionalErrors, additionalProperties, adornments, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysI18n as arrayI18n, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDefaults as arrayWithDefaults, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, arraysWithSorting as arrayWithSorting, arraysWithTranslatedCustomElementLabel as arrayWithTranslatedCustomChildLabel, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, _default as defaultExample, _enum as enumExample, enumI18n, enumInArray, generateDynamic, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1884 as issue_1884, _1948 as issue_1948, jsonEditor as jsoneditor, jsonschema, layout, listWithDetail, listWithDetailPrimitives, listWithDetailRegistered, login, mixed, mixedObject, enumMulti as multiEnum, enumMultiWithLabelAndDesc as multiEnumWithLabelAndDesc, nestedArrays as nestedArray, nestedCategorization, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, prependAppendSlots, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, specialPropertyNames, categorizationStepper as stepper, categorizationStepperNavButtons as steppershownav, string, stringArray, text, validationNestedSameName };
7821
7936
  //# sourceMappingURL=jsonforms-examples.esm.js.map