@jsonforms/examples 3.0.0-beta.1 → 3.0.0-beta.2

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.
@@ -673,6 +673,10 @@ const uischema$K = {
673
673
  const uischemaWithSorting = {
674
674
  type: 'VerticalLayout',
675
675
  elements: [
676
+ {
677
+ type: 'Control',
678
+ scope: '#/properties/foo'
679
+ },
676
680
  {
677
681
  type: 'Control',
678
682
  scope: '#/properties/comments',
@@ -737,21 +741,26 @@ var arrays = /*#__PURE__*/Object.freeze({
737
741
  });
738
742
 
739
743
  const schema$J = {
744
+ definitions: {
745
+ choicesContainer: {
746
+ type: 'object',
747
+ properties: {
748
+ name: { type: 'string' },
749
+ choices: {
750
+ type: 'array',
751
+ items: {
752
+ type: 'string'
753
+ }
754
+ }
755
+ }
756
+ }
757
+ },
740
758
  type: 'object',
741
759
  properties: {
742
760
  exampleArray: {
743
761
  type: 'array',
744
762
  items: {
745
- type: 'object',
746
- properties: {
747
- name: { type: 'string' },
748
- choices: {
749
- type: 'array',
750
- items: {
751
- type: 'string'
752
- }
753
- }
754
- }
763
+ $ref: '#/definitions/choicesContainer'
755
764
  }
756
765
  }
757
766
  }
@@ -2717,72 +2726,6 @@ var ruleInheritance = /*#__PURE__*/Object.freeze({
2717
2726
  });
2718
2727
 
2719
2728
  const schema$n = {
2720
- definitions: {
2721
- address: {
2722
- type: 'object',
2723
- properties: {
2724
- street_address: { type: 'string' },
2725
- city: { type: 'string' },
2726
- state: { type: 'string' },
2727
- coord: { $ref: '#/definitions/coord' }
2728
- },
2729
- required: ['street_address', 'city', 'state']
2730
- },
2731
- coord: {
2732
- $ref: 'geographical-location.schema.json#'
2733
- }
2734
- },
2735
- type: 'object',
2736
- properties: {
2737
- address: { $ref: '#/definitions/address' }
2738
- }
2739
- };
2740
- const uischema$o = {
2741
- type: 'VerticalLayout',
2742
- elements: [
2743
- {
2744
- type: 'Control',
2745
- scope: '#/properties/address/properties/street_address'
2746
- },
2747
- {
2748
- type: 'Control',
2749
- scope: '#/properties/address/properties/city'
2750
- },
2751
- {
2752
- type: 'Control',
2753
- scope: '#/properties/address/properties/state'
2754
- },
2755
- {
2756
- type: 'Control',
2757
- scope: '#/properties/address/properties/coord'
2758
- }
2759
- ]
2760
- };
2761
- const data$p = {
2762
- address: {
2763
- street_address: 'Agnes-Pockels Bogen 1',
2764
- city: 'Munich',
2765
- state: 'Bavaria'
2766
- }
2767
- };
2768
- registerExamples([
2769
- {
2770
- name: 'resolve',
2771
- label: 'Resolve Remote Schema',
2772
- data: data$p,
2773
- schema: schema$n,
2774
- uischema: uischema$o
2775
- }
2776
- ]);
2777
-
2778
- var resolve = /*#__PURE__*/Object.freeze({
2779
- __proto__: null,
2780
- schema: schema$n,
2781
- uischema: uischema$o,
2782
- data: data$p
2783
- });
2784
-
2785
- const schema$m = {
2786
2729
  type: 'object',
2787
2730
  properties: {
2788
2731
  postalCode: {
@@ -2797,7 +2740,7 @@ const schema$m = {
2797
2740
  },
2798
2741
  required: ['postalCode']
2799
2742
  };
2800
- const uischema$n = {
2743
+ const uischema$o = {
2801
2744
  type: 'VerticalLayout',
2802
2745
  elements: [
2803
2746
  {
@@ -2817,7 +2760,7 @@ const uischema$n = {
2817
2760
  }
2818
2761
  ]
2819
2762
  };
2820
- const data$o = {
2763
+ const data$p = {
2821
2764
  postalCode: '12345'
2822
2765
  };
2823
2766
  const config = {
@@ -2830,28 +2773,28 @@ registerExamples([
2830
2773
  {
2831
2774
  name: 'configDefault',
2832
2775
  label: 'Configuration (Default)',
2833
- data: data$o,
2834
- schema: schema$m,
2835
- uischema: uischema$n
2776
+ data: data$p,
2777
+ schema: schema$n,
2778
+ uischema: uischema$o
2836
2779
  },
2837
2780
  {
2838
2781
  name: 'configCustom',
2839
2782
  label: 'Configuration (Custom)',
2840
- data: data$o,
2841
- schema: schema$m,
2842
- uischema: uischema$n,
2783
+ data: data$p,
2784
+ schema: schema$n,
2785
+ uischema: uischema$o,
2843
2786
  config
2844
2787
  }
2845
2788
  ]);
2846
2789
 
2847
2790
  var config$1 = /*#__PURE__*/Object.freeze({
2848
2791
  __proto__: null,
2849
- schema: schema$m,
2850
- uischema: uischema$n,
2851
- data: data$o
2792
+ schema: schema$n,
2793
+ uischema: uischema$o,
2794
+ data: data$p
2852
2795
  });
2853
2796
 
2854
- const schema$l = {
2797
+ const schema$m = {
2855
2798
  type: 'object',
2856
2799
  properties: {
2857
2800
  zipCode: {
@@ -2868,7 +2811,7 @@ const schema$l = {
2868
2811
  }
2869
2812
  }
2870
2813
  };
2871
- const uischema$m = {
2814
+ const uischema$n = {
2872
2815
  type: 'VerticalLayout',
2873
2816
  elements: [
2874
2817
  {
@@ -2905,7 +2848,7 @@ const uischema$m = {
2905
2848
  }
2906
2849
  ]
2907
2850
  };
2908
- const data$n = {
2851
+ const data$o = {
2909
2852
  zipCode: '12345',
2910
2853
  zipCodeWithoutTrim: '12345678',
2911
2854
  zipCodeWithoutRestrict: '12345678'
@@ -2914,20 +2857,20 @@ registerExamples([
2914
2857
  {
2915
2858
  name: 'text',
2916
2859
  label: 'Text',
2917
- data: data$n,
2918
- schema: schema$l,
2919
- uischema: uischema$m
2860
+ data: data$o,
2861
+ schema: schema$m,
2862
+ uischema: uischema$n
2920
2863
  }
2921
2864
  ]);
2922
2865
 
2923
2866
  var text = /*#__PURE__*/Object.freeze({
2924
2867
  __proto__: null,
2925
- schema: schema$l,
2926
- uischema: uischema$m,
2927
- data: data$n
2868
+ schema: schema$m,
2869
+ uischema: uischema$n,
2870
+ data: data$o
2928
2871
  });
2929
2872
 
2930
- const schema$k = {
2873
+ const schema$l = {
2931
2874
  type: 'object',
2932
2875
  properties: {
2933
2876
  price: {
@@ -2944,7 +2887,7 @@ const schema$k = {
2944
2887
  }
2945
2888
  }
2946
2889
  };
2947
- const uischema$l = {
2890
+ const uischema$m = {
2948
2891
  type: 'VerticalLayout',
2949
2892
  elements: [
2950
2893
  {
@@ -2977,22 +2920,22 @@ const uischema$l = {
2977
2920
  }
2978
2921
  ]
2979
2922
  };
2980
- const data$m = {};
2923
+ const data$n = {};
2981
2924
  registerExamples([
2982
2925
  {
2983
2926
  name: 'numbers',
2984
2927
  label: 'Numbers',
2985
- data: data$m,
2986
- schema: schema$k,
2987
- uischema: uischema$l
2928
+ data: data$n,
2929
+ schema: schema$l,
2930
+ uischema: uischema$m
2988
2931
  }
2989
2932
  ]);
2990
2933
 
2991
2934
  var numbers = /*#__PURE__*/Object.freeze({
2992
2935
  __proto__: null,
2993
- schema: schema$k,
2994
- uischema: uischema$l,
2995
- data: data$m
2936
+ schema: schema$l,
2937
+ uischema: uischema$m,
2938
+ data: data$n
2996
2939
  });
2997
2940
 
2998
2941
  const orderSchema = {
@@ -3026,7 +2969,7 @@ const orderSchema = {
3026
2969
  }
3027
2970
  }
3028
2971
  };
3029
- const uischema$k = {
2972
+ const uischema$l = {
3030
2973
  type: 'VerticalLayout',
3031
2974
  elements: [
3032
2975
  {
@@ -3061,7 +3004,7 @@ const uischema$k = {
3061
3004
  }
3062
3005
  ]
3063
3006
  };
3064
- const data$l = {
3007
+ const data$m = {
3065
3008
  orderId: '123456',
3066
3009
  purchaseDate: '1985-06-02',
3067
3010
  price: 16,
@@ -3074,20 +3017,20 @@ registerExamples([
3074
3017
  {
3075
3018
  name: 'scope',
3076
3019
  label: 'Scope',
3077
- data: data$l,
3020
+ data: data$m,
3078
3021
  schema: orderSchema,
3079
- uischema: uischema$k
3022
+ uischema: uischema$l
3080
3023
  }
3081
3024
  ]);
3082
3025
 
3083
3026
  var scope = /*#__PURE__*/Object.freeze({
3084
3027
  __proto__: null,
3085
3028
  orderSchema: orderSchema,
3086
- uischema: uischema$k,
3087
- data: data$l
3029
+ uischema: uischema$l,
3030
+ data: data$m
3088
3031
  });
3089
3032
 
3090
- const data$k = {
3033
+ const data$l = {
3091
3034
  orders: [
3092
3035
  {
3093
3036
  customer: {
@@ -3116,7 +3059,7 @@ const data$k = {
3116
3059
  }
3117
3060
  ]
3118
3061
  };
3119
- const schema$j = {
3062
+ const schema$k = {
3120
3063
  definitions: {
3121
3064
  order: {
3122
3065
  type: 'object',
@@ -3166,7 +3109,7 @@ const schema$j = {
3166
3109
  }
3167
3110
  }
3168
3111
  };
3169
- const uischema$j = {
3112
+ const uischema$k = {
3170
3113
  type: 'ListWithDetail',
3171
3114
  scope: '#/properties/orders',
3172
3115
  options: {
@@ -3347,17 +3290,17 @@ registerExamples([
3347
3290
  {
3348
3291
  name: 'list-with-detail',
3349
3292
  label: 'List With Detail',
3350
- data: data$k,
3351
- schema: schema$j,
3352
- uischema: uischema$j
3293
+ data: data$l,
3294
+ schema: schema$k,
3295
+ uischema: uischema$k
3353
3296
  }
3354
3297
  ]);
3355
3298
  registerExamples([
3356
3299
  {
3357
3300
  name: 'list-with-detail-no-labelref',
3358
3301
  label: 'List With Detail (No Label Ref)',
3359
- data: data$k,
3360
- schema: schema$j,
3302
+ data: data$l,
3303
+ schema: schema$k,
3361
3304
  uischema: uischemaNoLabelRef
3362
3305
  }
3363
3306
  ]);
@@ -3366,7 +3309,7 @@ var listWithDetail = /*#__PURE__*/Object.freeze({
3366
3309
  __proto__: null
3367
3310
  });
3368
3311
 
3369
- const data$j = {
3312
+ const data$k = {
3370
3313
  warehouseitems: [
3371
3314
  {
3372
3315
  name: 'Fantasy Book',
@@ -3394,7 +3337,7 @@ const data$j = {
3394
3337
  }
3395
3338
  ]
3396
3339
  };
3397
- const schema$i = {
3340
+ const schema$j = {
3398
3341
  definitions: {
3399
3342
  warehouseitem: {
3400
3343
  type: 'object',
@@ -3425,7 +3368,7 @@ const schema$i = {
3425
3368
  }
3426
3369
  }
3427
3370
  };
3428
- const uischema$i = {
3371
+ const uischema$j = {
3429
3372
  type: 'ListWithDetail',
3430
3373
  scope: '#/properties/warehouseitems',
3431
3374
  options: {
@@ -3436,9 +3379,9 @@ registerExamples([
3436
3379
  {
3437
3380
  name: 'list-with-detail-registered',
3438
3381
  label: 'List With Detail (Registered)',
3439
- data: data$j,
3440
- schema: schema$i,
3441
- uischema: uischema$i
3382
+ data: data$k,
3383
+ schema: schema$j,
3384
+ uischema: uischema$j
3442
3385
  }
3443
3386
  ]);
3444
3387
 
@@ -3446,7 +3389,7 @@ var listWithDetailRegistered = /*#__PURE__*/Object.freeze({
3446
3389
  __proto__: null
3447
3390
  });
3448
3391
 
3449
- const schema$h = {
3392
+ const schema$i = {
3450
3393
  $schema: 'http://json-schema.org/draft-07/schema#',
3451
3394
  type: 'object',
3452
3395
  properties: {
@@ -3490,11 +3433,24 @@ const uischemaNonRoot = {
3490
3433
  scope: '#/properties/address/properties/state',
3491
3434
  expectedValue: 'DC'
3492
3435
  }
3436
+ },
3437
+ options: {
3438
+ detail: {
3439
+ type: 'Group',
3440
+ label: 'User Data',
3441
+ elements: [
3442
+ { type: 'Control', scope: '#/properties/name' },
3443
+ {
3444
+ type: 'Control',
3445
+ scope: '#/properties/mail'
3446
+ }
3447
+ ]
3448
+ }
3493
3449
  }
3494
3450
  }
3495
3451
  ]
3496
3452
  };
3497
- const data$i = {
3453
+ const data$j = {
3498
3454
  address: {
3499
3455
  street_address: '1600 Pennsylvania Avenue NW',
3500
3456
  city: 'Washington',
@@ -3505,22 +3461,22 @@ registerExamples([
3505
3461
  {
3506
3462
  name: 'rootObject',
3507
3463
  label: 'Root Object',
3508
- data: data$i,
3509
- schema: schema$h,
3464
+ data: data$j,
3465
+ schema: schema$i,
3510
3466
  uischema: uischemaRoot
3511
3467
  },
3512
3468
  {
3513
3469
  name: 'object',
3514
3470
  label: 'Object',
3515
- data: data$i,
3516
- schema: schema$h,
3471
+ data: data$j,
3472
+ schema: schema$i,
3517
3473
  uischema: uischemaNonRoot
3518
3474
  }
3519
3475
  ]);
3520
3476
 
3521
3477
  var object = /*#__PURE__*/Object.freeze({
3522
3478
  __proto__: null,
3523
- schema: schema$h,
3479
+ schema: schema$i,
3524
3480
  uischemaRoot: uischemaRoot,
3525
3481
  uischemaNonRoot: uischemaNonRoot
3526
3482
  });
@@ -3534,7 +3490,7 @@ const onChange$2 = (dispatch) => (extensionState) => ({ errors }) => {
3534
3490
  localiseFunc(errors);
3535
3491
  dispatch(updateErrors(errors));
3536
3492
  };
3537
- const uischema$h = {
3493
+ const uischema$i = {
3538
3494
  type: 'VerticalLayout',
3539
3495
  elements: [
3540
3496
  {
@@ -3569,7 +3525,7 @@ const uischema$h = {
3569
3525
  }
3570
3526
  ]
3571
3527
  };
3572
- const data$h = {
3528
+ const data$i = {
3573
3529
  vegetarian: false,
3574
3530
  birthDate: '1985-06-02',
3575
3531
  personalData: {
@@ -3581,20 +3537,20 @@ registerExamples([
3581
3537
  {
3582
3538
  name: 'i18n',
3583
3539
  label: 'Person (i18n)',
3584
- data: data$h,
3540
+ data: data$i,
3585
3541
  schema: personCoreSchema,
3586
- uischema: uischema$h
3542
+ uischema: uischema$i
3587
3543
  }
3588
3544
  ]);
3589
3545
 
3590
3546
  var i18n = /*#__PURE__*/Object.freeze({
3591
3547
  __proto__: null,
3592
3548
  onChange: onChange$2,
3593
- uischema: uischema$h,
3594
- data: data$h
3549
+ uischema: uischema$i,
3550
+ data: data$i
3595
3551
  });
3596
3552
 
3597
- const schema$g = {
3553
+ const schema$h = {
3598
3554
  type: 'object',
3599
3555
  properties: {
3600
3556
  Level1: {
@@ -3615,26 +3571,26 @@ const schema$g = {
3615
3571
  }
3616
3572
  }
3617
3573
  };
3618
- const uischema$g = undefined;
3619
- const data$g = {};
3574
+ const uischema$h = undefined;
3575
+ const data$h = {};
3620
3576
  registerExamples([
3621
3577
  {
3622
3578
  name: '1169',
3623
3579
  label: 'Issue 1169',
3624
- data: data$g,
3625
- schema: schema$g,
3626
- uischema: uischema$g
3580
+ data: data$h,
3581
+ schema: schema$h,
3582
+ uischema: uischema$h
3627
3583
  }
3628
3584
  ]);
3629
3585
 
3630
3586
  var _1169 = /*#__PURE__*/Object.freeze({
3631
3587
  __proto__: null,
3632
- schema: schema$g,
3633
- uischema: uischema$g,
3634
- data: data$g
3588
+ schema: schema$h,
3589
+ uischema: uischema$h,
3590
+ data: data$h
3635
3591
  });
3636
3592
 
3637
- const data$f = {
3593
+ const data$g = {
3638
3594
  orders: [
3639
3595
  {
3640
3596
  title: '42 killer robots',
@@ -3643,7 +3599,7 @@ const data$f = {
3643
3599
  }
3644
3600
  ]
3645
3601
  };
3646
- const schema$f = {
3602
+ const schema$g = {
3647
3603
  definitions: {
3648
3604
  order: {
3649
3605
  type: 'object',
@@ -3674,7 +3630,7 @@ const schema$f = {
3674
3630
  }
3675
3631
  }
3676
3632
  };
3677
- const uischema$f = {
3633
+ const uischema$g = {
3678
3634
  type: 'Control',
3679
3635
  scope: '#/properties/orders'
3680
3636
  };
@@ -3740,19 +3696,19 @@ registerExamples([
3740
3696
  {
3741
3697
  name: '1220',
3742
3698
  label: 'Issue 1220',
3743
- data: data$f,
3744
- schema: schema$f,
3745
- uischema: uischema$f,
3699
+ data: data$g,
3700
+ schema: schema$g,
3701
+ uischema: uischema$g,
3746
3702
  actions
3747
3703
  }
3748
3704
  ]);
3749
3705
 
3750
3706
  var _1220 = /*#__PURE__*/Object.freeze({
3751
3707
  __proto__: null,
3752
- uischema: uischema$f
3708
+ uischema: uischema$g
3753
3709
  });
3754
3710
 
3755
- const schema$e = {
3711
+ const schema$f = {
3756
3712
  type: 'object',
3757
3713
  properties: {
3758
3714
  value: {
@@ -3769,12 +3725,12 @@ const schema$e = {
3769
3725
  }
3770
3726
  }
3771
3727
  };
3772
- const uischema$e = {
3728
+ const uischema$f = {
3773
3729
  type: 'Control',
3774
3730
  label: 'Value',
3775
3731
  scope: '#/properties/value'
3776
3732
  };
3777
- const data$e = {};
3733
+ const data$f = {};
3778
3734
  const schema2 = {
3779
3735
  type: 'object',
3780
3736
  properties: {
@@ -3884,25 +3840,25 @@ registerExamples([
3884
3840
  {
3885
3841
  name: 'issue-1253',
3886
3842
  label: 'issue 1253 (oneOf)',
3887
- data: data$e,
3888
- schema: schema$e,
3889
- uischema: uischema$e
3843
+ data: data$f,
3844
+ schema: schema$f,
3845
+ uischema: uischema$f
3890
3846
  }
3891
3847
  ]);
3892
3848
  registerExamples([
3893
3849
  {
3894
3850
  name: 'issue-1253-wrong-path-binding',
3895
3851
  label: 'issue 1253 (oneOf) - wrong path binding',
3896
- data: data$e,
3897
- schema: schema$e,
3898
- uischema: uischema$e
3852
+ data: data$f,
3853
+ schema: schema$f,
3854
+ uischema: uischema$f
3899
3855
  }
3900
3856
  ]);
3901
3857
  registerExamples([
3902
3858
  {
3903
3859
  name: 'issue-1253-cell-missing-cell',
3904
3860
  label: 'issue 1253 (oneOf) - missing cell renderer',
3905
- data: data$e,
3861
+ data: data$f,
3906
3862
  schema: schema2,
3907
3863
  uischema: uischema2
3908
3864
  }
@@ -3911,7 +3867,7 @@ registerExamples([
3911
3867
  {
3912
3868
  name: 'issue-1253-add-button-empty-row',
3913
3869
  label: 'issue 1253 (oneOf) - add button does nothing',
3914
- data: data$e,
3870
+ data: data$f,
3915
3871
  schema: schema3,
3916
3872
  uischema: uischema3
3917
3873
  }
@@ -3920,7 +3876,7 @@ registerExamples([
3920
3876
  {
3921
3877
  name: 'issue-1253-enum-error',
3922
3878
  label: 'issue 1253 (enum)',
3923
- data: data$e,
3879
+ data: data$f,
3924
3880
  schema: schema4,
3925
3881
  uischema: uischema4
3926
3882
  }
@@ -3928,11 +3884,11 @@ registerExamples([
3928
3884
 
3929
3885
  var _1253 = /*#__PURE__*/Object.freeze({
3930
3886
  __proto__: null,
3931
- schema: schema$e,
3932
- uischema: uischema$e
3887
+ schema: schema$f,
3888
+ uischema: uischema$f
3933
3889
  });
3934
3890
 
3935
- const schema$d = {
3891
+ const schema$e = {
3936
3892
  type: 'object',
3937
3893
  properties: {
3938
3894
  name: {
@@ -3945,7 +3901,7 @@ const schema$d = {
3945
3901
  },
3946
3902
  required: ['version']
3947
3903
  };
3948
- const uischema$d = {
3904
+ const uischema$e = {
3949
3905
  type: 'HorizontalLayout',
3950
3906
  elements: [
3951
3907
  {
@@ -3960,24 +3916,24 @@ const uischema$d = {
3960
3916
  }
3961
3917
  ]
3962
3918
  };
3963
- const data$d = {};
3919
+ const data$e = {};
3964
3920
  registerExamples([
3965
3921
  {
3966
3922
  name: 'issue-1254',
3967
3923
  label: 'issue 1254 (JSONSchema constants)',
3968
- data: data$d,
3969
- schema: schema$d,
3970
- uischema: uischema$d
3924
+ data: data$e,
3925
+ schema: schema$e,
3926
+ uischema: uischema$e
3971
3927
  }
3972
3928
  ]);
3973
3929
 
3974
3930
  var _1254 = /*#__PURE__*/Object.freeze({
3975
3931
  __proto__: null,
3976
- schema: schema$d,
3977
- uischema: uischema$d
3932
+ schema: schema$e,
3933
+ uischema: uischema$e
3978
3934
  });
3979
3935
 
3980
- const schema$c = {
3936
+ const schema$d = {
3981
3937
  $schema: 'http://json-schema.org/draft-07/schema#',
3982
3938
  definitions: {
3983
3939
  fileOrFolder: {
@@ -4015,28 +3971,28 @@ const schema$c = {
4015
3971
  }
4016
3972
  }
4017
3973
  };
4018
- const uischema$c = {
3974
+ const uischema$d = {
4019
3975
  type: 'Control',
4020
3976
  scope: '#'
4021
3977
  };
4022
- const data$c = {};
3978
+ const data$d = {};
4023
3979
  registerExamples([
4024
3980
  {
4025
3981
  name: 'oneOf-recursive',
4026
3982
  label: 'oneOf recursive',
4027
- data: data$c,
4028
- schema: schema$c,
4029
- uischema: uischema$c
3983
+ data: data$d,
3984
+ schema: schema$d,
3985
+ uischema: uischema$d
4030
3986
  }
4031
3987
  ]);
4032
3988
 
4033
3989
  var oneOfRecursive = /*#__PURE__*/Object.freeze({
4034
3990
  __proto__: null,
4035
- schema: schema$c,
4036
- uischema: uischema$c
3991
+ schema: schema$d,
3992
+ uischema: uischema$d
4037
3993
  });
4038
3994
 
4039
- const schema$b = {
3995
+ const schema$c = {
4040
3996
  $schema: 'http://json-schema.org/schema#',
4041
3997
  definitions: {
4042
3998
  confidenceTypes: {
@@ -5001,7 +4957,7 @@ const schema$b = {
5001
4957
  attribution: { $ref: '#/definitions/attribution' }
5002
4958
  }
5003
4959
  };
5004
- const data$b = {
4960
+ const data$c = {
5005
4961
  attribution: {
5006
4962
  contributor: {
5007
4963
  resource: '#A-1'
@@ -5331,7 +5287,7 @@ const data$b = {
5331
5287
  }
5332
5288
  ]
5333
5289
  };
5334
- const uischema$b = {
5290
+ const uischema$c = {
5335
5291
  type: 'Categorization',
5336
5292
  elements: [
5337
5293
  {
@@ -5389,18 +5345,18 @@ registerExamples([
5389
5345
  {
5390
5346
  name: 'huge',
5391
5347
  label: 'Huge Test',
5392
- data: data$b,
5393
- schema: schema$b,
5394
- uischema: uischema$b
5348
+ data: data$c,
5349
+ schema: schema$c,
5350
+ uischema: uischema$c
5395
5351
  }
5396
5352
  ]);
5397
5353
 
5398
5354
  var huge = /*#__PURE__*/Object.freeze({
5399
5355
  __proto__: null,
5400
- uischema: uischema$b
5356
+ uischema: uischema$c
5401
5357
  });
5402
5358
 
5403
- const schema$a = {
5359
+ const schema$b = {
5404
5360
  type: 'object',
5405
5361
  properties: {
5406
5362
  name: {
@@ -5434,7 +5390,7 @@ const schema$a = {
5434
5390
  },
5435
5391
  required: ['name', 'name_noDefault']
5436
5392
  };
5437
- const uischema$a = {
5393
+ const uischema$b = {
5438
5394
  type: 'VerticalLayout',
5439
5395
  elements: [
5440
5396
  {
@@ -5471,7 +5427,7 @@ const uischema$a = {
5471
5427
  }
5472
5428
  ]
5473
5429
  };
5474
- const data$a = {
5430
+ const data$b = {
5475
5431
  name: 'Send email to Adrian',
5476
5432
  name_noDefault: 'Send email to Adrian',
5477
5433
  description: 'Confirm if you have passed the subject\nHereby ...',
@@ -5484,17 +5440,17 @@ registerExamples([
5484
5440
  {
5485
5441
  name: 'default',
5486
5442
  label: 'Default',
5487
- data: data$a,
5488
- schema: schema$a,
5489
- uischema: uischema$a
5443
+ data: data$b,
5444
+ schema: schema$b,
5445
+ uischema: uischema$b
5490
5446
  }
5491
5447
  ]);
5492
5448
 
5493
5449
  var _default = /*#__PURE__*/Object.freeze({
5494
5450
  __proto__: null,
5495
- schema: schema$a,
5496
- uischema: uischema$a,
5497
- data: data$a
5451
+ schema: schema$b,
5452
+ uischema: uischema$b,
5453
+ data: data$b
5498
5454
  });
5499
5455
 
5500
5456
  let touchedProperties = {
@@ -5510,7 +5466,7 @@ const onChange = (dispatch) => (_) => ({ data, errors }) => {
5510
5466
  return dispatch(updateErrors(newErrors));
5511
5467
  }
5512
5468
  };
5513
- const schema$9 = {
5469
+ const schema$a = {
5514
5470
  type: 'object',
5515
5471
  properties: {
5516
5472
  name: {
@@ -5524,27 +5480,27 @@ const schema$9 = {
5524
5480
  },
5525
5481
  required: ['name', 'description']
5526
5482
  };
5527
- const uischema$9 = undefined;
5528
- const data$9 = {};
5483
+ const uischema$a = undefined;
5484
+ const data$a = {};
5529
5485
  registerExamples([
5530
5486
  {
5531
5487
  name: 'onChange',
5532
5488
  label: 'On Change',
5533
- data: data$9,
5534
- schema: schema$9,
5535
- uischema: uischema$9
5489
+ data: data$a,
5490
+ schema: schema$a,
5491
+ uischema: uischema$a
5536
5492
  }
5537
5493
  ]);
5538
5494
 
5539
5495
  var onChange$1 = /*#__PURE__*/Object.freeze({
5540
5496
  __proto__: null,
5541
5497
  onChange: onChange,
5542
- schema: schema$9,
5543
- uischema: uischema$9,
5544
- data: data$9
5498
+ schema: schema$a,
5499
+ uischema: uischema$a,
5500
+ data: data$a
5545
5501
  });
5546
5502
 
5547
- const schema$8 = {
5503
+ const schema$9 = {
5548
5504
  type: 'object',
5549
5505
  properties: {
5550
5506
  plainEnum: {
@@ -5573,7 +5529,7 @@ const schema$8 = {
5573
5529
  }
5574
5530
  }
5575
5531
  };
5576
- const uischema$8 = {
5532
+ const uischema$9 = {
5577
5533
  type: 'VerticalLayout',
5578
5534
  elements: [
5579
5535
  {
@@ -5634,26 +5590,26 @@ const uischema$8 = {
5634
5590
  }
5635
5591
  ]
5636
5592
  };
5637
- const data$8 = { plainEnumSet: 'foo', oneOfEnumSet: 'bar' };
5593
+ const data$9 = { plainEnumSet: 'foo', oneOfEnumSet: 'bar' };
5638
5594
  registerExamples([
5639
5595
  {
5640
5596
  name: 'enum',
5641
5597
  label: 'Enums',
5642
- data: data$8,
5643
- schema: schema$8,
5644
- uischema: uischema$8
5598
+ data: data$9,
5599
+ schema: schema$9,
5600
+ uischema: uischema$9
5645
5601
  }
5646
5602
  ]);
5647
5603
 
5648
5604
  var _enum = /*#__PURE__*/Object.freeze({
5649
5605
  __proto__: null,
5650
- schema: schema$8,
5651
- uischema: uischema$8,
5652
- data: data$8
5606
+ schema: schema$9,
5607
+ uischema: uischema$9,
5608
+ data: data$9
5653
5609
  });
5654
5610
 
5655
- const data$7 = {};
5656
- const schema$7 = {
5611
+ const data$8 = {};
5612
+ const schema$8 = {
5657
5613
  type: 'object',
5658
5614
  properties: {
5659
5615
  exampleRadioEnum: {
@@ -5670,7 +5626,7 @@ const schema$7 = {
5670
5626
  }
5671
5627
  }
5672
5628
  };
5673
- const uischema$7 = {
5629
+ const uischema$8 = {
5674
5630
  type: 'VerticalLayout',
5675
5631
  elements: [
5676
5632
  {
@@ -5705,9 +5661,9 @@ registerExamples([
5705
5661
  {
5706
5662
  name: 'radio-group',
5707
5663
  label: 'Radio Group',
5708
- data: data$7,
5709
- schema: schema$7,
5710
- uischema: uischema$7
5664
+ data: data$8,
5665
+ schema: schema$8,
5666
+ uischema: uischema$8
5711
5667
  }
5712
5668
  ]);
5713
5669
 
@@ -5715,7 +5671,7 @@ var radioGroup = /*#__PURE__*/Object.freeze({
5715
5671
  __proto__: null
5716
5672
  });
5717
5673
 
5718
- const schema$6 = {
5674
+ const schema$7 = {
5719
5675
  type: 'object',
5720
5676
  properties: {
5721
5677
  checkbox: {
@@ -5726,7 +5682,7 @@ const schema$6 = {
5726
5682
  }
5727
5683
  }
5728
5684
  };
5729
- const uischema$6 = {
5685
+ const uischema$7 = {
5730
5686
  type: 'VerticalLayout',
5731
5687
  elements: [
5732
5688
  {
@@ -5742,28 +5698,28 @@ const uischema$6 = {
5742
5698
  }
5743
5699
  ]
5744
5700
  };
5745
- const data$6 = {
5701
+ const data$7 = {
5746
5702
  checkbox: false,
5747
5703
  toggle: false
5748
5704
  };
5749
5705
  const booleanToggleExample = {
5750
5706
  name: 'booleanToggle',
5751
5707
  label: 'Boolean Toggle',
5752
- data: data$6,
5753
- schema: schema$6,
5754
- uischema: uischema$6
5708
+ data: data$7,
5709
+ schema: schema$7,
5710
+ uischema: uischema$7
5755
5711
  };
5756
5712
  registerExamples([booleanToggleExample]);
5757
5713
 
5758
5714
  var booleanToggle = /*#__PURE__*/Object.freeze({
5759
5715
  __proto__: null,
5760
- schema: schema$6,
5761
- uischema: uischema$6,
5762
- data: data$6,
5716
+ schema: schema$7,
5717
+ uischema: uischema$7,
5718
+ data: data$7,
5763
5719
  booleanToggleExample: booleanToggleExample
5764
5720
  });
5765
5721
 
5766
- const schema$5 = {
5722
+ const schema$6 = {
5767
5723
  type: 'object',
5768
5724
  properties: {
5769
5725
  oneOfMultiEnum: {
@@ -5787,7 +5743,7 @@ const schema$5 = {
5787
5743
  }
5788
5744
  }
5789
5745
  };
5790
- const uischema$5 = {
5746
+ const uischema$6 = {
5791
5747
  type: 'VerticalLayout',
5792
5748
  elements: [
5793
5749
  {
@@ -5800,25 +5756,25 @@ const uischema$5 = {
5800
5756
  }
5801
5757
  ]
5802
5758
  };
5803
- const data$5 = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
5759
+ const data$6 = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
5804
5760
  registerExamples([
5805
5761
  {
5806
5762
  name: 'multi-enum',
5807
5763
  label: 'Multi Enum',
5808
- data: data$5,
5809
- schema: schema$5,
5810
- uischema: uischema$5
5764
+ data: data$6,
5765
+ schema: schema$6,
5766
+ uischema: uischema$6
5811
5767
  }
5812
5768
  ]);
5813
5769
 
5814
5770
  var multiEnum = /*#__PURE__*/Object.freeze({
5815
5771
  __proto__: null,
5816
- schema: schema$5,
5817
- uischema: uischema$5,
5818
- data: data$5
5772
+ schema: schema$6,
5773
+ uischema: uischema$6,
5774
+ data: data$6
5819
5775
  });
5820
5776
 
5821
- const schema$4 = {
5777
+ const schema$5 = {
5822
5778
  type: 'array',
5823
5779
  items: {
5824
5780
  type: 'object',
@@ -5838,7 +5794,7 @@ const schema$4 = {
5838
5794
  }
5839
5795
  }
5840
5796
  };
5841
- const uischema$4 = {
5797
+ const uischema$5 = {
5842
5798
  type: 'VerticalLayout',
5843
5799
  elements: [
5844
5800
  {
@@ -5847,25 +5803,25 @@ const uischema$4 = {
5847
5803
  }
5848
5804
  ]
5849
5805
  };
5850
- const data$4 = [];
5806
+ const data$5 = [];
5851
5807
  registerExamples([
5852
5808
  {
5853
5809
  name: 'enumInArray',
5854
5810
  label: 'Array containing enums',
5855
- data: data$4,
5856
- schema: schema$4,
5857
- uischema: uischema$4
5811
+ data: data$5,
5812
+ schema: schema$5,
5813
+ uischema: uischema$5
5858
5814
  }
5859
5815
  ]);
5860
5816
 
5861
5817
  var enumInArray = /*#__PURE__*/Object.freeze({
5862
5818
  __proto__: null,
5863
- schema: schema$4,
5864
- uischema: uischema$4,
5865
- data: data$4
5819
+ schema: schema$5,
5820
+ uischema: uischema$5,
5821
+ data: data$5
5866
5822
  });
5867
5823
 
5868
- const schema$3 = {
5824
+ const schema$4 = {
5869
5825
  type: 'object',
5870
5826
  properties: {
5871
5827
  readonly: {
@@ -5880,7 +5836,7 @@ const schema$3 = {
5880
5836
  }
5881
5837
  }
5882
5838
  };
5883
- const uischema$3 = {
5839
+ const uischema$4 = {
5884
5840
  type: 'VerticalLayout',
5885
5841
  elements: [
5886
5842
  {
@@ -5903,7 +5859,7 @@ const uischema$3 = {
5903
5859
  }
5904
5860
  ]
5905
5861
  };
5906
- const data$3 = {
5862
+ const data$4 = {
5907
5863
  readonly: 'readonly by schema',
5908
5864
  readonlyByUISchema: 'readonly by ui schema',
5909
5865
  notReadonly: 'normal field'
@@ -5912,23 +5868,23 @@ registerExamples([
5912
5868
  {
5913
5869
  name: 'Readonly Fields',
5914
5870
  label: 'Readonly examples',
5915
- data: data$3,
5916
- schema: schema$3,
5917
- uischema: uischema$3
5871
+ data: data$4,
5872
+ schema: schema$4,
5873
+ uischema: uischema$4
5918
5874
  }
5919
5875
  ]);
5920
5876
 
5921
5877
  var readonly = /*#__PURE__*/Object.freeze({
5922
5878
  __proto__: null,
5923
- schema: schema$3,
5924
- uischema: uischema$3,
5925
- data: data$3
5879
+ schema: schema$4,
5880
+ uischema: uischema$4,
5881
+ data: data$4
5926
5882
  });
5927
5883
 
5928
- const data$2 = {
5884
+ const data$3 = {
5929
5885
  'an-array-of-strings': ['foo', 'bar', 'foobar']
5930
5886
  };
5931
- const schema$2 = {
5887
+ const schema$3 = {
5932
5888
  type: 'object',
5933
5889
  properties: {
5934
5890
  'an-array-of-strings': {
@@ -5939,7 +5895,7 @@ const schema$2 = {
5939
5895
  }
5940
5896
  }
5941
5897
  };
5942
- const uischema$2 = {
5898
+ const uischema$3 = {
5943
5899
  "type": "ListWithDetail",
5944
5900
  "scope": "#/properties/an-array-of-strings"
5945
5901
  };
@@ -5947,9 +5903,9 @@ registerExamples([
5947
5903
  {
5948
5904
  name: '1779-string',
5949
5905
  label: 'List With Detail primitive (string)',
5950
- data: data$2,
5951
- schema: schema$2,
5952
- uischema: uischema$2
5906
+ data: data$3,
5907
+ schema: schema$3,
5908
+ uischema: uischema$3
5953
5909
  }
5954
5910
  ]);
5955
5911
  const data_number = {
@@ -5984,7 +5940,7 @@ var _1779 = /*#__PURE__*/Object.freeze({
5984
5940
  __proto__: null
5985
5941
  });
5986
5942
 
5987
- const schema$1 = {
5943
+ const schema$2 = {
5988
5944
  type: 'object',
5989
5945
  properties: {
5990
5946
  propText0: { type: 'string' },
@@ -6009,23 +5965,119 @@ const schema$1 = {
6009
5965
  propNumber9: { type: 'number' },
6010
5966
  }
6011
5967
  };
6012
- const uischema$1 = undefined;
6013
- const data$1 = {};
5968
+ const uischema$2 = undefined;
5969
+ const data$2 = {};
6014
5970
  registerExamples([
6015
5971
  {
6016
5972
  name: '1645',
6017
5973
  label: 'Issue 1645',
5974
+ data: data$2,
5975
+ schema: schema$2,
5976
+ uischema: uischema$2
5977
+ }
5978
+ ]);
5979
+
5980
+ var _1645 = /*#__PURE__*/Object.freeze({
5981
+ __proto__: null,
5982
+ schema: schema$2,
5983
+ uischema: uischema$2,
5984
+ data: data$2
5985
+ });
5986
+
5987
+ const schema$1 = {
5988
+ type: 'object',
5989
+ properties: {
5990
+ name: {
5991
+ type: 'string',
5992
+ minLength: 1,
5993
+ description: 'The task\'s name',
5994
+ },
5995
+ recurrence: {
5996
+ type: 'string',
5997
+ enum: ['Never', 'Daily', 'Weekly', 'Monthly'],
5998
+ },
5999
+ },
6000
+ anyOf: [
6001
+ {
6002
+ if: {
6003
+ properties: {
6004
+ recurrence: {
6005
+ const: 'Never'
6006
+ }
6007
+ }
6008
+ },
6009
+ then: {
6010
+ properties: {
6011
+ lastname: {
6012
+ type: 'string'
6013
+ },
6014
+ age: {
6015
+ type: 'number'
6016
+ }
6017
+ }
6018
+ }
6019
+ },
6020
+ ]
6021
+ };
6022
+ const uischema$1 = {
6023
+ type: 'HorizontalLayout',
6024
+ elements: [
6025
+ {
6026
+ type: 'VerticalLayout',
6027
+ elements: [
6028
+ {
6029
+ type: 'Control',
6030
+ scope: '#/properties/name',
6031
+ },
6032
+ {
6033
+ type: 'Control',
6034
+ scope: '#/properties/recurrence',
6035
+ },
6036
+ {
6037
+ type: 'Control',
6038
+ scope: '#/anyOf/0/then/properties/lastname',
6039
+ rule: {
6040
+ effect: 'SHOW',
6041
+ condition: {
6042
+ scope: '#/properties/recurrence',
6043
+ schema: {
6044
+ const: 'Never'
6045
+ }
6046
+ }
6047
+ }
6048
+ },
6049
+ {
6050
+ type: 'Control',
6051
+ scope: '#/properties/age',
6052
+ rule: {
6053
+ effect: 'SHOW',
6054
+ condition: {
6055
+ scope: '#/properties/recurrence',
6056
+ schema: {
6057
+ const: 'Never'
6058
+ }
6059
+ }
6060
+ }
6061
+ },
6062
+ ],
6063
+ },
6064
+ ],
6065
+ };
6066
+ const data$1 = {};
6067
+ registerExamples([
6068
+ {
6069
+ name: 'conditional-schema-compositions',
6070
+ label: 'Conditional Schema Compositions',
6018
6071
  data: data$1,
6019
6072
  schema: schema$1,
6020
6073
  uischema: uischema$1
6021
6074
  }
6022
6075
  ]);
6023
6076
 
6024
- var _1645 = /*#__PURE__*/Object.freeze({
6077
+ var conditionalSchemaCompositions = /*#__PURE__*/Object.freeze({
6025
6078
  __proto__: null,
6026
6079
  schema: schema$1,
6027
- uischema: uischema$1,
6028
- data: data$1
6080
+ uischema: uischema$1
6029
6081
  });
6030
6082
 
6031
6083
  const schema = {
@@ -6056,5 +6108,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
6056
6108
  data: data
6057
6109
  });
6058
6110
 
6059
- export { allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, booleanToggle, _1645 as bug_1645, _1779 as bug_1779, categorization, config$1 as config, controlOptions, dates, day1, day2, day3, day4, day5, day6, _default as defaultExample, dynamic, _enum as enumExample, enumInArray, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1169 as issue_1169, _1220 as issue_1220, _1253 as issue_1253, _1254 as issue_1254, layout, listWithDetail, listWithDetailRegistered, multiEnum, nestedArrays as nestedArray, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, resolve, rule, ruleInheritance, scope, stepper, steppershownav, stringArray, text };
6111
+ export { allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, booleanToggle, _1645 as bug_1645, _1779 as bug_1779, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, day1, day2, day3, day4, day5, day6, _default as defaultExample, dynamic, _enum as enumExample, enumInArray, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1169 as issue_1169, _1220 as issue_1220, _1253 as issue_1253, _1254 as issue_1254, layout, listWithDetail, listWithDetailRegistered, multiEnum, nestedArrays as nestedArray, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, stepper, steppershownav, stringArray, text };
6060
6112
  //# sourceMappingURL=jsonforms-examples.esm.js.map