@boltic/cli 1.0.13 → 1.0.15
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/package.json +1 -1
- package/templates/component-schemas.js +127 -2
package/package.json
CHANGED
|
@@ -111,6 +111,7 @@ const select = {
|
|
|
111
111
|
labelKey: "label",
|
|
112
112
|
valueKey: "value",
|
|
113
113
|
condition: "{{sample-condition}}",
|
|
114
|
+
loadDynamicParameters: false,
|
|
114
115
|
body: {
|
|
115
116
|
secret: "secret",
|
|
116
117
|
loadOptionsMethod: "get",
|
|
@@ -155,6 +156,7 @@ const checkbox = {
|
|
|
155
156
|
displayName: "Name",
|
|
156
157
|
displayType: "checkbox",
|
|
157
158
|
description: "Checkbox input",
|
|
159
|
+
placeholder: "Checkbox",
|
|
158
160
|
value: false,
|
|
159
161
|
readOnly: false,
|
|
160
162
|
isDisabled: false,
|
|
@@ -204,6 +206,7 @@ const autocomplete = {
|
|
|
204
206
|
body: {},
|
|
205
207
|
multiple: false,
|
|
206
208
|
limitTags: 3,
|
|
209
|
+
loadDynamicParameters: false,
|
|
207
210
|
},
|
|
208
211
|
htmlProps: {
|
|
209
212
|
allowDynamic: false,
|
|
@@ -300,6 +303,7 @@ const accordion = {
|
|
|
300
303
|
displayName: "Name",
|
|
301
304
|
displayType: "accordion",
|
|
302
305
|
description: "Collapsible content section",
|
|
306
|
+
placeholder: "Checkbox",
|
|
303
307
|
expanded: false,
|
|
304
308
|
children: [],
|
|
305
309
|
htmlProps: {
|
|
@@ -308,8 +312,14 @@ const accordion = {
|
|
|
308
312
|
subHeaderVariant: "h5",
|
|
309
313
|
},
|
|
310
314
|
dependencies: {
|
|
311
|
-
logic: "
|
|
312
|
-
conditions: [
|
|
315
|
+
logic: "AND",
|
|
316
|
+
conditions: [
|
|
317
|
+
{
|
|
318
|
+
field: "fieldName",
|
|
319
|
+
operator: "EQUALS",
|
|
320
|
+
value: "expectedValue",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
313
323
|
},
|
|
314
324
|
},
|
|
315
325
|
};
|
|
@@ -369,6 +379,16 @@ const textarea = {
|
|
|
369
379
|
errorMsg: "Text too long",
|
|
370
380
|
},
|
|
371
381
|
},
|
|
382
|
+
dependencies: {
|
|
383
|
+
logic: "AND",
|
|
384
|
+
conditions: [
|
|
385
|
+
{
|
|
386
|
+
field: "fieldName",
|
|
387
|
+
operator: "EQUALS",
|
|
388
|
+
value: "expectedValue",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
},
|
|
372
392
|
},
|
|
373
393
|
};
|
|
374
394
|
|
|
@@ -378,6 +398,7 @@ const toggle = {
|
|
|
378
398
|
displayName: "Name",
|
|
379
399
|
displayType: "toggle",
|
|
380
400
|
description: "Toggle switch",
|
|
401
|
+
placeholder: "Toggle switch",
|
|
381
402
|
value: false,
|
|
382
403
|
readOnly: false,
|
|
383
404
|
isDisabled: false,
|
|
@@ -475,6 +496,16 @@ const array = {
|
|
|
475
496
|
errorMsg: "Too many items",
|
|
476
497
|
},
|
|
477
498
|
},
|
|
499
|
+
dependencies: {
|
|
500
|
+
logic: "AND",
|
|
501
|
+
conditions: [
|
|
502
|
+
{
|
|
503
|
+
field: "fieldName",
|
|
504
|
+
operator: "EQUALS",
|
|
505
|
+
value: "expectedValue",
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
},
|
|
478
509
|
},
|
|
479
510
|
};
|
|
480
511
|
|
|
@@ -508,6 +539,16 @@ const object = {
|
|
|
508
539
|
errorMsg: "Object is required",
|
|
509
540
|
},
|
|
510
541
|
},
|
|
542
|
+
dependencies: {
|
|
543
|
+
logic: "AND",
|
|
544
|
+
conditions: [
|
|
545
|
+
{
|
|
546
|
+
field: "fieldName",
|
|
547
|
+
operator: "EQUALS",
|
|
548
|
+
value: "expectedValue",
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
|
+
},
|
|
511
552
|
},
|
|
512
553
|
};
|
|
513
554
|
|
|
@@ -535,6 +576,16 @@ const code = {
|
|
|
535
576
|
errorMsg: "Code is required",
|
|
536
577
|
},
|
|
537
578
|
},
|
|
579
|
+
dependencies: {
|
|
580
|
+
logic: "AND",
|
|
581
|
+
conditions: [
|
|
582
|
+
{
|
|
583
|
+
field: "fieldName",
|
|
584
|
+
operator: "EQUALS",
|
|
585
|
+
value: "expectedValue",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
},
|
|
538
589
|
},
|
|
539
590
|
};
|
|
540
591
|
|
|
@@ -563,6 +614,16 @@ const slider = {
|
|
|
563
614
|
infoMsg: "Choose a value between 10 and 90",
|
|
564
615
|
},
|
|
565
616
|
},
|
|
617
|
+
dependencies: {
|
|
618
|
+
logic: "AND",
|
|
619
|
+
conditions: [
|
|
620
|
+
{
|
|
621
|
+
field: "fieldName",
|
|
622
|
+
operator: "EQUALS",
|
|
623
|
+
value: "expectedValue",
|
|
624
|
+
},
|
|
625
|
+
],
|
|
626
|
+
},
|
|
566
627
|
},
|
|
567
628
|
};
|
|
568
629
|
|
|
@@ -606,6 +667,16 @@ const hidden = {
|
|
|
606
667
|
displayType: "hidden",
|
|
607
668
|
value: "",
|
|
608
669
|
options: [],
|
|
670
|
+
dependencies: {
|
|
671
|
+
logic: "AND",
|
|
672
|
+
conditions: [
|
|
673
|
+
{
|
|
674
|
+
field: "fieldName",
|
|
675
|
+
operator: "EQUALS",
|
|
676
|
+
value: "expectedValue",
|
|
677
|
+
},
|
|
678
|
+
],
|
|
679
|
+
},
|
|
609
680
|
},
|
|
610
681
|
};
|
|
611
682
|
|
|
@@ -655,6 +726,16 @@ const divider = {
|
|
|
655
726
|
variant: "middle",
|
|
656
727
|
orientation: "horizontal",
|
|
657
728
|
},
|
|
729
|
+
dependencies: {
|
|
730
|
+
logic: "AND",
|
|
731
|
+
conditions: [
|
|
732
|
+
{
|
|
733
|
+
field: "fieldName",
|
|
734
|
+
operator: "EQUALS",
|
|
735
|
+
value: "expectedValue",
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
},
|
|
658
739
|
},
|
|
659
740
|
};
|
|
660
741
|
|
|
@@ -682,6 +763,7 @@ const multiselect = {
|
|
|
682
763
|
valueKey: "value",
|
|
683
764
|
condition: "{{sample-condition}}",
|
|
684
765
|
body: {},
|
|
766
|
+
loadDynamicParameters: false,
|
|
685
767
|
},
|
|
686
768
|
validation: {
|
|
687
769
|
required: false,
|
|
@@ -760,6 +842,7 @@ const switchControl = {
|
|
|
760
842
|
displayName: "Name",
|
|
761
843
|
displayType: "switch",
|
|
762
844
|
description: "Switch toggle",
|
|
845
|
+
placeholder: "Switch toggle",
|
|
763
846
|
value: false,
|
|
764
847
|
readOnly: false,
|
|
765
848
|
htmlProps: {
|
|
@@ -858,6 +941,16 @@ const phone = {
|
|
|
858
941
|
errorMsg: "Must be a valid phone number",
|
|
859
942
|
},
|
|
860
943
|
},
|
|
944
|
+
dependencies: {
|
|
945
|
+
logic: "AND",
|
|
946
|
+
conditions: [
|
|
947
|
+
{
|
|
948
|
+
field: "fieldName",
|
|
949
|
+
operator: "EQUALS",
|
|
950
|
+
value: "expectedValue",
|
|
951
|
+
},
|
|
952
|
+
],
|
|
953
|
+
},
|
|
861
954
|
},
|
|
862
955
|
};
|
|
863
956
|
|
|
@@ -867,6 +960,7 @@ const keyvalue = {
|
|
|
867
960
|
displayName: "Name",
|
|
868
961
|
displayType: "keyvalue",
|
|
869
962
|
description: "Key-value pairs",
|
|
963
|
+
placeholder: "Key-value pairs",
|
|
870
964
|
value: {},
|
|
871
965
|
readOnly: false,
|
|
872
966
|
isDisabled: false,
|
|
@@ -906,6 +1000,16 @@ const keyvalue = {
|
|
|
906
1000
|
errorMsg: "Too many key-value pairs",
|
|
907
1001
|
},
|
|
908
1002
|
},
|
|
1003
|
+
dependencies: {
|
|
1004
|
+
logic: "AND",
|
|
1005
|
+
conditions: [
|
|
1006
|
+
{
|
|
1007
|
+
field: "fieldName",
|
|
1008
|
+
operator: "EQUALS",
|
|
1009
|
+
value: "expectedValue",
|
|
1010
|
+
},
|
|
1011
|
+
],
|
|
1012
|
+
},
|
|
909
1013
|
},
|
|
910
1014
|
};
|
|
911
1015
|
|
|
@@ -924,6 +1028,16 @@ const button = {
|
|
|
924
1028
|
size: "medium",
|
|
925
1029
|
// ...any other prop will be added to button component
|
|
926
1030
|
},
|
|
1031
|
+
dependencies: {
|
|
1032
|
+
logic: "AND",
|
|
1033
|
+
conditions: [
|
|
1034
|
+
{
|
|
1035
|
+
field: "fieldName",
|
|
1036
|
+
operator: "EQUALS",
|
|
1037
|
+
value: "expectedValue",
|
|
1038
|
+
},
|
|
1039
|
+
],
|
|
1040
|
+
},
|
|
927
1041
|
},
|
|
928
1042
|
};
|
|
929
1043
|
|
|
@@ -932,6 +1046,7 @@ const datetime = {
|
|
|
932
1046
|
meta: {
|
|
933
1047
|
displayName: "Enter Date with Start Time",
|
|
934
1048
|
description: "Please enter date and start time",
|
|
1049
|
+
placeholder: "Key-value pairs",
|
|
935
1050
|
displayType: "datetime",
|
|
936
1051
|
value: "2024-02-14",
|
|
937
1052
|
validation: {
|
|
@@ -947,6 +1062,16 @@ const datetime = {
|
|
|
947
1062
|
seconds: 5,
|
|
948
1063
|
},
|
|
949
1064
|
},
|
|
1065
|
+
dependencies: {
|
|
1066
|
+
logic: "AND",
|
|
1067
|
+
conditions: [
|
|
1068
|
+
{
|
|
1069
|
+
field: "fieldName",
|
|
1070
|
+
operator: "EQUALS",
|
|
1071
|
+
value: "expectedValue",
|
|
1072
|
+
},
|
|
1073
|
+
],
|
|
1074
|
+
},
|
|
950
1075
|
},
|
|
951
1076
|
};
|
|
952
1077
|
|