@genesislcap/g2plot-chart 15.34.1 → 15.35.0

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +880 -880
  2. package/package.json +13 -13
@@ -586,171 +586,640 @@
586
586
  },
587
587
  {
588
588
  "kind": "javascript-module",
589
- "path": "src/chart-datasource/chart-datasource.ts",
589
+ "path": "src/models/area-chart.ts",
590
590
  "declarations": [
591
591
  {
592
- "kind": "variable",
593
- "name": "defaultChartFields",
594
- "type": {
595
- "text": "string"
596
- },
597
- "default": "'groupBy value'",
598
- "description": "The first and second default chart fields when it's a dual axes chart.",
599
- "privacy": "public"
600
- },
601
- {
602
- "kind": "variable",
603
- "name": "defaultSeriesChartField",
604
- "type": {
605
- "text": "string"
606
- },
607
- "default": "'series'",
608
- "description": "The third default chart field when it's a triple axes chart.",
609
- "privacy": "public"
610
- },
611
- {
612
- "kind": "class",
613
- "description": "The Genesis Datasource for the `g2plot-chart` component.",
614
- "name": "ChartDatasource",
615
- "members": [
616
- {
617
- "kind": "field",
618
- "name": "chartFields",
619
- "type": {
620
- "text": "string"
621
- },
622
- "default": "'groupBy value'",
623
- "description": "Default value is 'groupBy value'. Can be customized but order matters.\n\n[Mandatory] First is always the xField/colorField\n[Mandatory] Second is always the yField/angleField\n[Optional] Third is always the seriesField",
624
- "privacy": "public"
625
- },
592
+ "kind": "function",
593
+ "name": "AreaChart",
594
+ "parameters": [
626
595
  {
627
- "kind": "field",
628
- "name": "serverFields",
596
+ "name": "container",
629
597
  "type": {
630
- "text": "string"
631
- },
632
- "description": "Can be customized but order matters.\n\n[Mandatory] First will be associated to the first value in 'chartFields' (xField/colorField)\n[Mandatory] Second will be associated to the second value in 'chartFields' (yField/angleField)\n[Optional] Third will be associated to the third value in 'chartFields' (seriesField)",
633
- "privacy": "public"
598
+ "text": "HTMLElement"
599
+ }
634
600
  },
635
601
  {
636
- "kind": "field",
637
- "name": "isStack",
602
+ "name": "config",
638
603
  "type": {
639
- "text": "boolean"
640
- },
641
- "default": "false",
642
- "description": "If true, will enable stacked chart to effectively portray comparisons of total values across several categories.",
643
- "privacy": "public"
644
- },
604
+ "text": "AreaOptions"
605
+ }
606
+ }
607
+ ]
608
+ }
609
+ ],
610
+ "exports": [
611
+ {
612
+ "kind": "js",
613
+ "name": "AreaChart",
614
+ "declaration": {
615
+ "name": "AreaChart",
616
+ "module": "src/models/area-chart.ts"
617
+ }
618
+ }
619
+ ]
620
+ },
621
+ {
622
+ "kind": "javascript-module",
623
+ "path": "src/models/bar-chart.ts",
624
+ "declarations": [
625
+ {
626
+ "kind": "function",
627
+ "name": "BarChart",
628
+ "parameters": [
645
629
  {
646
- "kind": "field",
647
- "name": "isGroup",
630
+ "name": "container",
648
631
  "type": {
649
- "text": "boolean"
650
- },
651
- "default": "false",
652
- "description": "If true, will enable grouped chart plotting numeric values for levels of two categorical variables instead of one.",
653
- "privacy": "public"
632
+ "text": "HTMLElement"
633
+ }
654
634
  },
655
635
  {
656
- "kind": "field",
657
- "name": "reduced",
636
+ "name": "config",
658
637
  "type": {
659
- "text": "boolean"
660
- },
661
- "privacy": "protected",
662
- "default": "true",
663
- "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value]).",
664
- "inheritedFrom": {
665
- "name": "ConcreteDatasource",
666
- "module": "src/chart-datasource/chart-datasource.ts"
638
+ "text": "BarOptions"
667
639
  }
668
- },
640
+ }
641
+ ]
642
+ }
643
+ ],
644
+ "exports": [
645
+ {
646
+ "kind": "js",
647
+ "name": "BarChart",
648
+ "declaration": {
649
+ "name": "BarChart",
650
+ "module": "src/models/bar-chart.ts"
651
+ }
652
+ }
653
+ ]
654
+ },
655
+ {
656
+ "kind": "javascript-module",
657
+ "path": "src/models/column-chart.ts",
658
+ "declarations": [
659
+ {
660
+ "kind": "function",
661
+ "name": "ColumnChart",
662
+ "parameters": [
669
663
  {
670
- "kind": "field",
671
- "name": "showFormattedTime",
664
+ "name": "container",
672
665
  "type": {
673
- "text": "boolean"
674
- },
675
- "privacy": "protected",
676
- "default": "false",
677
- "description": "Only works if [withTimestampFormatting] is true.\n\nDisabled by default, will ignore the TIME portion in the Chart labels.\nOnly affects [DATETIME] fields.",
678
- "inheritedFrom": {
679
- "name": "ConcreteDatasource",
680
- "module": "src/chart-datasource/chart-datasource.ts"
666
+ "text": "HTMLElement"
681
667
  }
682
668
  },
683
669
  {
684
- "kind": "field",
685
- "name": "withTimestampFormatting",
670
+ "name": "config",
686
671
  "type": {
687
- "text": "boolean"
688
- },
689
- "default": "true",
690
- "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
691
- "privacy": "public",
692
- "inheritedFrom": {
693
- "name": "BaseDatasource",
694
- "module": "src/utils/base-datasource.ts"
672
+ "text": "ColumnOptions"
695
673
  }
696
- },
674
+ }
675
+ ]
676
+ }
677
+ ],
678
+ "exports": [
679
+ {
680
+ "kind": "js",
681
+ "name": "ColumnChart",
682
+ "declaration": {
683
+ "name": "ColumnChart",
684
+ "module": "src/models/column-chart.ts"
685
+ }
686
+ }
687
+ ]
688
+ },
689
+ {
690
+ "kind": "javascript-module",
691
+ "path": "src/models/donut-chart.ts",
692
+ "declarations": [
693
+ {
694
+ "kind": "function",
695
+ "name": "DonutChart",
696
+ "parameters": [
697
697
  {
698
- "kind": "field",
699
- "name": "resourceName",
698
+ "name": "container",
700
699
  "type": {
701
- "text": "string"
702
- },
703
- "default": "''",
704
- "inheritedFrom": {
705
- "name": "BaseDatasource",
706
- "module": "src/utils/base-datasource.ts"
707
- },
708
- "description": "Name of the backend resource which contain the data.",
709
- "privacy": "public"
700
+ "text": "HTMLElement"
701
+ }
710
702
  },
711
703
  {
712
- "kind": "field",
713
- "name": "criteria",
704
+ "name": "config",
714
705
  "type": {
715
- "text": "string"
716
- },
717
- "inheritedFrom": {
718
- "name": "BaseDatasource",
719
- "module": "src/utils/base-datasource.ts"
720
- },
721
- "description": "Clients can send a Groovy expression to perform filters on the query server,\nthese remain active for the life of the subscription.",
722
- "privacy": "public"
723
- },
706
+ "text": "PieOptions"
707
+ }
708
+ }
709
+ ]
710
+ }
711
+ ],
712
+ "exports": [
713
+ {
714
+ "kind": "js",
715
+ "name": "DonutChart",
716
+ "declaration": {
717
+ "name": "DonutChart",
718
+ "module": "src/models/donut-chart.ts"
719
+ }
720
+ }
721
+ ]
722
+ },
723
+ {
724
+ "kind": "javascript-module",
725
+ "path": "src/models/dual-axes-chart.ts",
726
+ "declarations": [
727
+ {
728
+ "kind": "function",
729
+ "name": "DualAxesChart",
730
+ "parameters": [
724
731
  {
725
- "kind": "field",
726
- "name": "data",
732
+ "name": "container",
727
733
  "type": {
728
- "text": "any[]"
729
- },
730
- "inheritedFrom": {
731
- "name": "BaseDatasource",
732
- "module": "src/utils/base-datasource.ts"
733
- },
734
- "description": "Optional attribute that can be used to pass the data that will be used in the component.",
735
- "privacy": "public"
734
+ "text": "HTMLElement"
735
+ }
736
736
  },
737
737
  {
738
- "kind": "field",
739
- "name": "isSnapshot",
738
+ "name": "config",
740
739
  "type": {
741
- "text": "boolean"
742
- },
743
- "default": "false",
744
- "inheritedFrom": {
745
- "name": "BaseDatasource",
746
- "module": "src/utils/base-datasource.ts"
747
- },
748
- "description": "Request a snapshot from the server.",
749
- "privacy": "public"
750
- },
751
- {
752
- "kind": "field",
753
- "name": "maxRows",
740
+ "text": "DualAxesOptions"
741
+ }
742
+ }
743
+ ]
744
+ }
745
+ ],
746
+ "exports": [
747
+ {
748
+ "kind": "js",
749
+ "name": "DualAxesChart",
750
+ "declaration": {
751
+ "name": "DualAxesChart",
752
+ "module": "src/models/dual-axes-chart.ts"
753
+ }
754
+ }
755
+ ]
756
+ },
757
+ {
758
+ "kind": "javascript-module",
759
+ "path": "src/models/index.ts",
760
+ "declarations": [],
761
+ "exports": [
762
+ {
763
+ "kind": "js",
764
+ "name": "*",
765
+ "declaration": {
766
+ "name": "*",
767
+ "package": "./area-chart"
768
+ }
769
+ },
770
+ {
771
+ "kind": "js",
772
+ "name": "*",
773
+ "declaration": {
774
+ "name": "*",
775
+ "package": "./bar-chart"
776
+ }
777
+ },
778
+ {
779
+ "kind": "js",
780
+ "name": "*",
781
+ "declaration": {
782
+ "name": "*",
783
+ "package": "./column-chart"
784
+ }
785
+ },
786
+ {
787
+ "kind": "js",
788
+ "name": "*",
789
+ "declaration": {
790
+ "name": "*",
791
+ "package": "./donut-chart"
792
+ }
793
+ },
794
+ {
795
+ "kind": "js",
796
+ "name": "*",
797
+ "declaration": {
798
+ "name": "*",
799
+ "package": "./dual-axes-chart"
800
+ }
801
+ },
802
+ {
803
+ "kind": "js",
804
+ "name": "*",
805
+ "declaration": {
806
+ "name": "*",
807
+ "package": "./line-chart"
808
+ }
809
+ },
810
+ {
811
+ "kind": "js",
812
+ "name": "*",
813
+ "declaration": {
814
+ "name": "*",
815
+ "package": "./mix-chart"
816
+ }
817
+ },
818
+ {
819
+ "kind": "js",
820
+ "name": "*",
821
+ "declaration": {
822
+ "name": "*",
823
+ "package": "./pie-chart"
824
+ }
825
+ },
826
+ {
827
+ "kind": "js",
828
+ "name": "*",
829
+ "declaration": {
830
+ "name": "*",
831
+ "package": "./rose-chart"
832
+ }
833
+ },
834
+ {
835
+ "kind": "js",
836
+ "name": "*",
837
+ "declaration": {
838
+ "name": "*",
839
+ "package": "./scatter-chart"
840
+ }
841
+ },
842
+ {
843
+ "kind": "js",
844
+ "name": "*",
845
+ "declaration": {
846
+ "name": "*",
847
+ "package": "./stock-chart"
848
+ }
849
+ }
850
+ ]
851
+ },
852
+ {
853
+ "kind": "javascript-module",
854
+ "path": "src/models/line-chart.ts",
855
+ "declarations": [
856
+ {
857
+ "kind": "function",
858
+ "name": "LineChart",
859
+ "parameters": [
860
+ {
861
+ "name": "container",
862
+ "type": {
863
+ "text": "HTMLElement"
864
+ }
865
+ },
866
+ {
867
+ "name": "config",
868
+ "type": {
869
+ "text": "LineOptions"
870
+ }
871
+ }
872
+ ]
873
+ }
874
+ ],
875
+ "exports": [
876
+ {
877
+ "kind": "js",
878
+ "name": "LineChart",
879
+ "declaration": {
880
+ "name": "LineChart",
881
+ "module": "src/models/line-chart.ts"
882
+ }
883
+ }
884
+ ]
885
+ },
886
+ {
887
+ "kind": "javascript-module",
888
+ "path": "src/models/mix-chart.ts",
889
+ "declarations": [
890
+ {
891
+ "kind": "function",
892
+ "name": "MixChart",
893
+ "parameters": [
894
+ {
895
+ "name": "container",
896
+ "type": {
897
+ "text": "HTMLElement"
898
+ }
899
+ },
900
+ {
901
+ "name": "config",
902
+ "type": {
903
+ "text": "MixOptions"
904
+ }
905
+ }
906
+ ]
907
+ }
908
+ ],
909
+ "exports": [
910
+ {
911
+ "kind": "js",
912
+ "name": "MixChart",
913
+ "declaration": {
914
+ "name": "MixChart",
915
+ "module": "src/models/mix-chart.ts"
916
+ }
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "kind": "javascript-module",
922
+ "path": "src/models/pie-chart.ts",
923
+ "declarations": [
924
+ {
925
+ "kind": "function",
926
+ "name": "PieChart",
927
+ "parameters": [
928
+ {
929
+ "name": "container",
930
+ "type": {
931
+ "text": "HTMLElement"
932
+ }
933
+ },
934
+ {
935
+ "name": "config",
936
+ "type": {
937
+ "text": "PieOptions"
938
+ }
939
+ }
940
+ ]
941
+ }
942
+ ],
943
+ "exports": [
944
+ {
945
+ "kind": "js",
946
+ "name": "PieChart",
947
+ "declaration": {
948
+ "name": "PieChart",
949
+ "module": "src/models/pie-chart.ts"
950
+ }
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "kind": "javascript-module",
956
+ "path": "src/models/rose-chart.ts",
957
+ "declarations": [
958
+ {
959
+ "kind": "function",
960
+ "name": "RoseChart",
961
+ "parameters": [
962
+ {
963
+ "name": "container",
964
+ "type": {
965
+ "text": "HTMLElement"
966
+ }
967
+ },
968
+ {
969
+ "name": "config",
970
+ "type": {
971
+ "text": "RoseOptions"
972
+ }
973
+ }
974
+ ]
975
+ }
976
+ ],
977
+ "exports": [
978
+ {
979
+ "kind": "js",
980
+ "name": "RoseChart",
981
+ "declaration": {
982
+ "name": "RoseChart",
983
+ "module": "src/models/rose-chart.ts"
984
+ }
985
+ }
986
+ ]
987
+ },
988
+ {
989
+ "kind": "javascript-module",
990
+ "path": "src/models/scatter-chart.ts",
991
+ "declarations": [
992
+ {
993
+ "kind": "function",
994
+ "name": "ScatterChart",
995
+ "parameters": [
996
+ {
997
+ "name": "container",
998
+ "type": {
999
+ "text": "HTMLElement"
1000
+ }
1001
+ },
1002
+ {
1003
+ "name": "config",
1004
+ "type": {
1005
+ "text": "ScatterOptions"
1006
+ }
1007
+ }
1008
+ ]
1009
+ }
1010
+ ],
1011
+ "exports": [
1012
+ {
1013
+ "kind": "js",
1014
+ "name": "ScatterChart",
1015
+ "declaration": {
1016
+ "name": "ScatterChart",
1017
+ "module": "src/models/scatter-chart.ts"
1018
+ }
1019
+ }
1020
+ ]
1021
+ },
1022
+ {
1023
+ "kind": "javascript-module",
1024
+ "path": "src/models/stock-chart.ts",
1025
+ "declarations": [
1026
+ {
1027
+ "kind": "function",
1028
+ "name": "StockChart",
1029
+ "parameters": [
1030
+ {
1031
+ "name": "container",
1032
+ "type": {
1033
+ "text": "HTMLElement"
1034
+ }
1035
+ },
1036
+ {
1037
+ "name": "config",
1038
+ "type": {
1039
+ "text": "StockOptions"
1040
+ }
1041
+ }
1042
+ ]
1043
+ }
1044
+ ],
1045
+ "exports": [
1046
+ {
1047
+ "kind": "js",
1048
+ "name": "StockChart",
1049
+ "declaration": {
1050
+ "name": "StockChart",
1051
+ "module": "src/models/stock-chart.ts"
1052
+ }
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "kind": "javascript-module",
1058
+ "path": "src/chart-datasource/chart-datasource.ts",
1059
+ "declarations": [
1060
+ {
1061
+ "kind": "variable",
1062
+ "name": "defaultChartFields",
1063
+ "type": {
1064
+ "text": "string"
1065
+ },
1066
+ "default": "'groupBy value'",
1067
+ "description": "The first and second default chart fields when it's a dual axes chart.",
1068
+ "privacy": "public"
1069
+ },
1070
+ {
1071
+ "kind": "variable",
1072
+ "name": "defaultSeriesChartField",
1073
+ "type": {
1074
+ "text": "string"
1075
+ },
1076
+ "default": "'series'",
1077
+ "description": "The third default chart field when it's a triple axes chart.",
1078
+ "privacy": "public"
1079
+ },
1080
+ {
1081
+ "kind": "class",
1082
+ "description": "The Genesis Datasource for the `g2plot-chart` component.",
1083
+ "name": "ChartDatasource",
1084
+ "members": [
1085
+ {
1086
+ "kind": "field",
1087
+ "name": "chartFields",
1088
+ "type": {
1089
+ "text": "string"
1090
+ },
1091
+ "default": "'groupBy value'",
1092
+ "description": "Default value is 'groupBy value'. Can be customized but order matters.\n\n[Mandatory] First is always the xField/colorField\n[Mandatory] Second is always the yField/angleField\n[Optional] Third is always the seriesField",
1093
+ "privacy": "public"
1094
+ },
1095
+ {
1096
+ "kind": "field",
1097
+ "name": "serverFields",
1098
+ "type": {
1099
+ "text": "string"
1100
+ },
1101
+ "description": "Can be customized but order matters.\n\n[Mandatory] First will be associated to the first value in 'chartFields' (xField/colorField)\n[Mandatory] Second will be associated to the second value in 'chartFields' (yField/angleField)\n[Optional] Third will be associated to the third value in 'chartFields' (seriesField)",
1102
+ "privacy": "public"
1103
+ },
1104
+ {
1105
+ "kind": "field",
1106
+ "name": "isStack",
1107
+ "type": {
1108
+ "text": "boolean"
1109
+ },
1110
+ "default": "false",
1111
+ "description": "If true, will enable stacked chart to effectively portray comparisons of total values across several categories.",
1112
+ "privacy": "public"
1113
+ },
1114
+ {
1115
+ "kind": "field",
1116
+ "name": "isGroup",
1117
+ "type": {
1118
+ "text": "boolean"
1119
+ },
1120
+ "default": "false",
1121
+ "description": "If true, will enable grouped chart plotting numeric values for levels of two categorical variables instead of one.",
1122
+ "privacy": "public"
1123
+ },
1124
+ {
1125
+ "kind": "field",
1126
+ "name": "reduced",
1127
+ "type": {
1128
+ "text": "boolean"
1129
+ },
1130
+ "privacy": "protected",
1131
+ "default": "true",
1132
+ "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value]).",
1133
+ "inheritedFrom": {
1134
+ "name": "ConcreteDatasource",
1135
+ "module": "src/chart-datasource/chart-datasource.ts"
1136
+ }
1137
+ },
1138
+ {
1139
+ "kind": "field",
1140
+ "name": "showFormattedTime",
1141
+ "type": {
1142
+ "text": "boolean"
1143
+ },
1144
+ "privacy": "protected",
1145
+ "default": "false",
1146
+ "description": "Only works if [withTimestampFormatting] is true.\n\nDisabled by default, will ignore the TIME portion in the Chart labels.\nOnly affects [DATETIME] fields.",
1147
+ "inheritedFrom": {
1148
+ "name": "ConcreteDatasource",
1149
+ "module": "src/chart-datasource/chart-datasource.ts"
1150
+ }
1151
+ },
1152
+ {
1153
+ "kind": "field",
1154
+ "name": "withTimestampFormatting",
1155
+ "type": {
1156
+ "text": "boolean"
1157
+ },
1158
+ "default": "true",
1159
+ "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
1160
+ "privacy": "public",
1161
+ "inheritedFrom": {
1162
+ "name": "BaseDatasource",
1163
+ "module": "src/utils/base-datasource.ts"
1164
+ }
1165
+ },
1166
+ {
1167
+ "kind": "field",
1168
+ "name": "resourceName",
1169
+ "type": {
1170
+ "text": "string"
1171
+ },
1172
+ "default": "''",
1173
+ "inheritedFrom": {
1174
+ "name": "BaseDatasource",
1175
+ "module": "src/utils/base-datasource.ts"
1176
+ },
1177
+ "description": "Name of the backend resource which contain the data.",
1178
+ "privacy": "public"
1179
+ },
1180
+ {
1181
+ "kind": "field",
1182
+ "name": "criteria",
1183
+ "type": {
1184
+ "text": "string"
1185
+ },
1186
+ "inheritedFrom": {
1187
+ "name": "BaseDatasource",
1188
+ "module": "src/utils/base-datasource.ts"
1189
+ },
1190
+ "description": "Clients can send a Groovy expression to perform filters on the query server,\nthese remain active for the life of the subscription.",
1191
+ "privacy": "public"
1192
+ },
1193
+ {
1194
+ "kind": "field",
1195
+ "name": "data",
1196
+ "type": {
1197
+ "text": "any[]"
1198
+ },
1199
+ "inheritedFrom": {
1200
+ "name": "BaseDatasource",
1201
+ "module": "src/utils/base-datasource.ts"
1202
+ },
1203
+ "description": "Optional attribute that can be used to pass the data that will be used in the component.",
1204
+ "privacy": "public"
1205
+ },
1206
+ {
1207
+ "kind": "field",
1208
+ "name": "isSnapshot",
1209
+ "type": {
1210
+ "text": "boolean"
1211
+ },
1212
+ "default": "false",
1213
+ "inheritedFrom": {
1214
+ "name": "BaseDatasource",
1215
+ "module": "src/utils/base-datasource.ts"
1216
+ },
1217
+ "description": "Request a snapshot from the server.",
1218
+ "privacy": "public"
1219
+ },
1220
+ {
1221
+ "kind": "field",
1222
+ "name": "maxRows",
754
1223
  "type": {
755
1224
  "text": "number"
756
1225
  },
@@ -1887,781 +2356,304 @@
1887
2356
  },
1888
2357
  {
1889
2358
  "type": {
1890
- "text": "boolean"
1891
- },
1892
- "default": "true",
1893
- "fieldName": "reduced",
1894
- "inheritedFrom": {
1895
- "name": "BaseDatasource",
1896
- "module": "src/utils/base-datasource.ts"
1897
- },
1898
- "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
1899
- },
1900
- {
1901
- "name": "show-formatted-time",
1902
- "type": {
1903
- "text": "boolean"
1904
- },
1905
- "default": "false",
1906
- "description": "Only works if [withTimestampFormatting] is true.\n\nDisabled by default, will ignore the TIME portion in the Chart labels.\nOnly affects [DATETIME] fields.",
1907
- "fieldName": "showFormattedTime"
1908
- },
1909
- {
1910
- "name": "with-timestamp-formatting",
1911
- "type": {
1912
- "text": "boolean"
1913
- },
1914
- "default": "true",
1915
- "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
1916
- "fieldName": "withTimestampFormatting",
1917
- "inheritedFrom": {
1918
- "name": "BaseDatasource",
1919
- "module": "src/utils/base-datasource.ts"
1920
- }
1921
- },
1922
- {
1923
- "name": "resourceName",
1924
- "type": {
1925
- "text": "string"
1926
- },
1927
- "default": "''",
1928
- "fieldName": "resourceName",
1929
- "inheritedFrom": {
1930
- "name": "BaseDatasource",
1931
- "module": "src/utils/base-datasource.ts"
1932
- },
1933
- "description": "Name of the backend resource which contain the data."
1934
- },
1935
- {
1936
- "name": "criteria",
1937
- "type": {
1938
- "text": "string"
1939
- },
1940
- "fieldName": "criteria",
1941
- "inheritedFrom": {
1942
- "name": "BaseDatasource",
1943
- "module": "src/utils/base-datasource.ts"
1944
- },
1945
- "description": "Clients can send a Groovy expression to perform filters on the query server,\nthese remain active for the life of the subscription."
1946
- },
1947
- {
1948
- "type": {
1949
- "text": "boolean"
1950
- },
1951
- "default": "true",
1952
- "fieldName": "reduced",
1953
- "inheritedFrom": {
1954
- "name": "BaseDatasource",
1955
- "module": "src/utils/base-datasource.ts"
1956
- },
1957
- "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
1958
- },
1959
- {
1960
- "name": "maxRows",
1961
- "type": {
1962
- "text": "number"
1963
- },
1964
- "fieldName": "maxRows",
1965
- "inheritedFrom": {
1966
- "name": "BaseDatasource",
1967
- "module": "src/utils/base-datasource.ts"
1968
- },
1969
- "description": "Maximum number of rows to be returned as part of the initial message,\nand as part of any additional MORE_ROWS messages.\nThis will not affect the number of rows displayed."
1970
- },
1971
- {
1972
- "name": "maxView",
1973
- "type": {
1974
- "text": "number"
1975
- },
1976
- "fieldName": "maxView",
1977
- "inheritedFrom": {
1978
- "name": "BaseDatasource",
1979
- "module": "src/utils/base-datasource.ts"
1980
- },
1981
- "description": "Maximum number of rows to track as part of a client \"view\"."
1982
- },
1983
- {
1984
- "name": "orderBy",
1985
- "type": {
1986
- "text": "string"
1987
- },
1988
- "description": "This option can be used to select a Data Server index (defined in the Data Server query),\nwhich is especially useful if you want the data to be sorted in a specific way. By default,\nData Server rows are returned in order of creation (from oldest database record to newest).",
1989
- "fieldName": "orderBy",
1990
- "inheritedFrom": {
1991
- "name": "BaseDatasource",
1992
- "module": "src/utils/base-datasource.ts"
1993
- }
1994
- },
1995
- {
1996
- "type": {
1997
- "text": "boolean"
1998
- },
1999
- "default": "true",
2000
- "fieldName": "reduced",
2001
- "inheritedFrom": {
2002
- "name": "BaseDatasource",
2003
- "module": "src/utils/base-datasource.ts"
2004
- },
2005
- "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
2006
- },
2007
- {
2008
- "name": "rowId",
2009
- "type": {
2010
- "text": "string"
2011
- },
2012
- "description": "Explicit override for the field that uniquely identifies a row. Leave unset to derive it\nfrom the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the\ninherited `effectiveRowId`.",
2013
- "fieldName": "rowId",
2014
- "inheritedFrom": {
2015
- "name": "BaseDatasource",
2016
- "module": "src/utils/base-datasource.ts"
2017
- }
2018
- },
2019
- {
2020
- "name": "fields",
2021
- "type": {
2022
- "text": "string"
2023
- },
2024
- "fieldName": "fields",
2025
- "inheritedFrom": {
2026
- "name": "BaseDatasource",
2027
- "module": "src/utils/base-datasource.ts"
2028
- }
2029
- },
2030
- {
2031
- "name": "request",
2032
- "type": {
2033
- "text": "any"
2034
- },
2035
- "fieldName": "request",
2036
- "inheritedFrom": {
2037
- "name": "BaseDatasource",
2038
- "module": "src/utils/base-datasource.ts"
2039
- }
2040
- }
2041
- ],
2042
- "mixins": [
2043
- {
2044
- "name": "LifecycleMixin",
2045
- "package": "@genesislcap/foundation-utils"
2046
- }
2047
- ],
2048
- "superclass": {
2049
- "name": "ConcreteDatasource",
2050
- "module": "src/chart-datasource/chart-datasource.ts"
2051
- },
2052
- "tagName": "chart-datasource",
2053
- "customElement": true
2054
- }
2055
- ],
2056
- "exports": [
2057
- {
2058
- "kind": "js",
2059
- "name": "defaultChartFields",
2060
- "declaration": {
2061
- "name": "defaultChartFields",
2062
- "module": "src/chart-datasource/chart-datasource.ts"
2063
- }
2064
- },
2065
- {
2066
- "kind": "js",
2067
- "name": "defaultSeriesChartField",
2068
- "declaration": {
2069
- "name": "defaultSeriesChartField",
2070
- "module": "src/chart-datasource/chart-datasource.ts"
2071
- }
2072
- },
2073
- {
2074
- "kind": "js",
2075
- "name": "ChartDatasource",
2076
- "declaration": {
2077
- "name": "ChartDatasource",
2078
- "module": "src/chart-datasource/chart-datasource.ts"
2079
- }
2080
- },
2081
- {
2082
- "kind": "custom-element-definition",
2083
- "name": "chart-datasource",
2084
- "declaration": {
2085
- "name": "ChartDatasource",
2086
- "module": "src/chart-datasource/chart-datasource.ts"
2087
- }
2088
- }
2089
- ]
2090
- },
2091
- {
2092
- "kind": "javascript-module",
2093
- "path": "src/chart-datasource/chart-datasource.types.ts",
2094
- "declarations": [],
2095
- "exports": []
2096
- },
2097
- {
2098
- "kind": "javascript-module",
2099
- "path": "src/chart-datasource/chart-datasource.utils.ts",
2100
- "declarations": [
2101
- {
2102
- "kind": "function",
2103
- "name": "extractFields",
2104
- "parameters": [
2105
- {
2106
- "name": "fields"
2107
- }
2108
- ]
2109
- },
2110
- {
2111
- "kind": "function",
2112
- "name": "getNormalizedFieldValue",
2113
- "parameters": [
2114
- {
2115
- "name": "fieldValue",
2116
- "type": {
2117
- "text": "any"
2118
- }
2119
- },
2120
- {
2121
- "name": "fieldType",
2122
- "optional": true,
2123
- "type": {
2124
- "text": "FieldTypeEnum"
2125
- }
2126
- }
2127
- ],
2128
- "description": "Normalizes a server field value before it's handed to the chart.\n\nBIGDECIMAL fields are serialized by the server as strings to preserve\nprecision, while INT/LONG/DOUBLE arrive as JSON numbers. G2Plot needs real\nnumbers for its scales, and getReduced sums values with `+=`, which\nwould concatenate strings. Any NUMBER-typed field whose value arrives as a\nnumeric string is therefore converted with `Number()`.\n\nValues that don't parse to a finite number (and fields of any other type)\nare returned untouched.",
2129
- "privacy": "public"
2130
- },
2131
- {
2132
- "kind": "function",
2133
- "name": "getFormattedDateGroupBy",
2134
- "parameters": [
2135
- {
2136
- "name": "groupByFieldValue",
2137
- "type": {
2138
- "text": "any"
2139
- }
2140
- },
2141
- {
2142
- "name": "fieldType",
2143
- "type": {
2144
- "text": "FieldTypeEnum"
2145
- }
2359
+ "text": "boolean"
2360
+ },
2361
+ "default": "true",
2362
+ "fieldName": "reduced",
2363
+ "inheritedFrom": {
2364
+ "name": "BaseDatasource",
2365
+ "module": "src/utils/base-datasource.ts"
2366
+ },
2367
+ "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
2146
2368
  },
2147
2369
  {
2148
- "name": "showTime",
2149
- "optional": true,
2370
+ "name": "show-formatted-time",
2150
2371
  "type": {
2151
2372
  "text": "boolean"
2152
- }
2153
- }
2154
- ]
2155
- },
2156
- {
2157
- "kind": "function",
2158
- "name": "getReduced",
2159
- "return": {
2160
- "type": {
2161
- "text": "any[]"
2162
- }
2163
- },
2164
- "parameters": [
2165
- {
2166
- "name": "allRows",
2167
- "type": {
2168
- "text": "any[]"
2169
- }
2373
+ },
2374
+ "default": "false",
2375
+ "description": "Only works if [withTimestampFormatting] is true.\n\nDisabled by default, will ignore the TIME portion in the Chart labels.\nOnly affects [DATETIME] fields.",
2376
+ "fieldName": "showFormattedTime"
2170
2377
  },
2171
2378
  {
2172
- "name": "groupByField",
2379
+ "name": "with-timestamp-formatting",
2173
2380
  "type": {
2174
- "text": "string"
2381
+ "text": "boolean"
2382
+ },
2383
+ "default": "true",
2384
+ "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
2385
+ "fieldName": "withTimestampFormatting",
2386
+ "inheritedFrom": {
2387
+ "name": "BaseDatasource",
2388
+ "module": "src/utils/base-datasource.ts"
2175
2389
  }
2176
2390
  },
2177
2391
  {
2178
- "name": "valueField",
2392
+ "name": "resourceName",
2179
2393
  "type": {
2180
2394
  "text": "string"
2181
- }
2395
+ },
2396
+ "default": "''",
2397
+ "fieldName": "resourceName",
2398
+ "inheritedFrom": {
2399
+ "name": "BaseDatasource",
2400
+ "module": "src/utils/base-datasource.ts"
2401
+ },
2402
+ "description": "Name of the backend resource which contain the data."
2182
2403
  },
2183
2404
  {
2184
- "name": "seriesField",
2185
- "optional": true,
2405
+ "name": "criteria",
2186
2406
  "type": {
2187
2407
  "text": "string"
2188
- }
2189
- }
2190
- ]
2191
- }
2192
- ],
2193
- "exports": [
2194
- {
2195
- "kind": "js",
2196
- "name": "extractFields",
2197
- "declaration": {
2198
- "name": "extractFields",
2199
- "module": "src/chart-datasource/chart-datasource.utils.ts"
2200
- }
2201
- },
2202
- {
2203
- "kind": "js",
2204
- "name": "getNormalizedFieldValue",
2205
- "declaration": {
2206
- "name": "getNormalizedFieldValue",
2207
- "module": "src/chart-datasource/chart-datasource.utils.ts"
2208
- }
2209
- },
2210
- {
2211
- "kind": "js",
2212
- "name": "getFormattedDateGroupBy",
2213
- "declaration": {
2214
- "name": "getFormattedDateGroupBy",
2215
- "module": "src/chart-datasource/chart-datasource.utils.ts"
2216
- }
2217
- },
2218
- {
2219
- "kind": "js",
2220
- "name": "getReduced",
2221
- "declaration": {
2222
- "name": "getReduced",
2223
- "module": "src/chart-datasource/chart-datasource.utils.ts"
2224
- }
2225
- }
2226
- ]
2227
- },
2228
- {
2229
- "kind": "javascript-module",
2230
- "path": "src/chart-datasource/index.ts",
2231
- "declarations": [],
2232
- "exports": [
2233
- {
2234
- "kind": "js",
2235
- "name": "*",
2236
- "declaration": {
2237
- "name": "*",
2238
- "package": "./chart-datasource.config"
2239
- }
2240
- },
2241
- {
2242
- "kind": "js",
2243
- "name": "*",
2244
- "declaration": {
2245
- "name": "*",
2246
- "package": "./chart-datasource.types"
2247
- }
2248
- },
2249
- {
2250
- "kind": "js",
2251
- "name": "*",
2252
- "declaration": {
2253
- "name": "*",
2254
- "package": "./chart-datasource"
2255
- }
2256
- }
2257
- ]
2258
- },
2259
- {
2260
- "kind": "javascript-module",
2261
- "path": "src/settings/colors.ts",
2262
- "declarations": [
2263
- {
2264
- "kind": "variable",
2265
- "name": "chartsGradients",
2266
- "type": {
2267
- "text": "object"
2268
- },
2269
- "default": "{\n rapidBlue: `l(270) 0:${PrimaryRapidColorHEX.purple} 1:${PrimaryRapidColorHEX.blue}`,\n rapidGreen: `l(270) 0:${RapidColorHEX.green} 1:${RapidColorHEX.lightGreen}`,\n rapidRed: `l(300) 0:${RapidColorHEX.red} 1:${RapidColorHEX.lightRed}`,\n rapidPortage: `l(270) 0:${RapidColorHEX.portage} 1:${RapidColorHEX.lightPortage}`,\n rapidAlabaster: `l(270) 0:${RapidColorHEX.white} 1:${RapidColorHEX.silver}`,\n rapidSalomie: `l(270) 0:${RapidColorHEX.salomie} 1:${RapidColorHEX.lightSalomie}`,\n rapidMelon: `l(270) 0:${RapidColorHEX.melon} 1:${RapidColorHEX.lightMelon}`,\n rapidDodgerBlue: `l(270) 0:${RapidColorHEX.dodgerBlue} 1:${RapidColorHEX.lightDodgerBlue}`,\n rapidIce: `l(170) 0:${RapidColorHEX.ice} 1:${RapidColorHEX.lightIce}`,\n rapidViolet: `l(270) 0:${RapidColorHEX.violet} 1:${RapidColorHEX.lightViolet}`,\n}",
2270
- "description": "G2Plot Chart gradient colors",
2271
- "privacy": "public"
2272
- }
2273
- ],
2274
- "exports": [
2275
- {
2276
- "kind": "js",
2277
- "name": "chartsGradients",
2278
- "declaration": {
2279
- "name": "chartsGradients",
2280
- "module": "src/settings/colors.ts"
2281
- }
2282
- }
2283
- ]
2284
- },
2285
- {
2286
- "kind": "javascript-module",
2287
- "path": "src/settings/index.ts",
2288
- "declarations": [],
2289
- "exports": [
2290
- {
2291
- "kind": "js",
2292
- "name": "*",
2293
- "declaration": {
2294
- "name": "*",
2295
- "package": "./colors"
2296
- }
2297
- },
2298
- {
2299
- "kind": "js",
2300
- "name": "*",
2301
- "declaration": {
2302
- "name": "*",
2303
- "package": "./shapes"
2304
- }
2305
- }
2306
- ]
2307
- },
2308
- {
2309
- "kind": "javascript-module",
2310
- "path": "src/settings/shapes.ts",
2311
- "declarations": [],
2312
- "exports": []
2313
- },
2314
- {
2315
- "kind": "javascript-module",
2316
- "path": "src/models/area-chart.ts",
2317
- "declarations": [
2318
- {
2319
- "kind": "function",
2320
- "name": "AreaChart",
2321
- "parameters": [
2322
- {
2323
- "name": "container",
2324
- "type": {
2325
- "text": "HTMLElement"
2326
- }
2408
+ },
2409
+ "fieldName": "criteria",
2410
+ "inheritedFrom": {
2411
+ "name": "BaseDatasource",
2412
+ "module": "src/utils/base-datasource.ts"
2413
+ },
2414
+ "description": "Clients can send a Groovy expression to perform filters on the query server,\nthese remain active for the life of the subscription."
2327
2415
  },
2328
2416
  {
2329
- "name": "config",
2330
2417
  "type": {
2331
- "text": "AreaOptions"
2332
- }
2333
- }
2334
- ]
2335
- }
2336
- ],
2337
- "exports": [
2338
- {
2339
- "kind": "js",
2340
- "name": "AreaChart",
2341
- "declaration": {
2342
- "name": "AreaChart",
2343
- "module": "src/models/area-chart.ts"
2344
- }
2345
- }
2346
- ]
2347
- },
2348
- {
2349
- "kind": "javascript-module",
2350
- "path": "src/models/bar-chart.ts",
2351
- "declarations": [
2352
- {
2353
- "kind": "function",
2354
- "name": "BarChart",
2355
- "parameters": [
2418
+ "text": "boolean"
2419
+ },
2420
+ "default": "true",
2421
+ "fieldName": "reduced",
2422
+ "inheritedFrom": {
2423
+ "name": "BaseDatasource",
2424
+ "module": "src/utils/base-datasource.ts"
2425
+ },
2426
+ "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
2427
+ },
2356
2428
  {
2357
- "name": "container",
2429
+ "name": "maxRows",
2358
2430
  "type": {
2359
- "text": "HTMLElement"
2360
- }
2431
+ "text": "number"
2432
+ },
2433
+ "fieldName": "maxRows",
2434
+ "inheritedFrom": {
2435
+ "name": "BaseDatasource",
2436
+ "module": "src/utils/base-datasource.ts"
2437
+ },
2438
+ "description": "Maximum number of rows to be returned as part of the initial message,\nand as part of any additional MORE_ROWS messages.\nThis will not affect the number of rows displayed."
2361
2439
  },
2362
2440
  {
2363
- "name": "config",
2364
- "type": {
2365
- "text": "BarOptions"
2366
- }
2367
- }
2368
- ]
2369
- }
2370
- ],
2371
- "exports": [
2372
- {
2373
- "kind": "js",
2374
- "name": "BarChart",
2375
- "declaration": {
2376
- "name": "BarChart",
2377
- "module": "src/models/bar-chart.ts"
2378
- }
2379
- }
2380
- ]
2381
- },
2382
- {
2383
- "kind": "javascript-module",
2384
- "path": "src/models/column-chart.ts",
2385
- "declarations": [
2386
- {
2387
- "kind": "function",
2388
- "name": "ColumnChart",
2389
- "parameters": [
2390
- {
2391
- "name": "container",
2441
+ "name": "maxView",
2392
2442
  "type": {
2393
- "text": "HTMLElement"
2394
- }
2443
+ "text": "number"
2444
+ },
2445
+ "fieldName": "maxView",
2446
+ "inheritedFrom": {
2447
+ "name": "BaseDatasource",
2448
+ "module": "src/utils/base-datasource.ts"
2449
+ },
2450
+ "description": "Maximum number of rows to track as part of a client \"view\"."
2395
2451
  },
2396
2452
  {
2397
- "name": "config",
2453
+ "name": "orderBy",
2398
2454
  "type": {
2399
- "text": "ColumnOptions"
2455
+ "text": "string"
2456
+ },
2457
+ "description": "This option can be used to select a Data Server index (defined in the Data Server query),\nwhich is especially useful if you want the data to be sorted in a specific way. By default,\nData Server rows are returned in order of creation (from oldest database record to newest).",
2458
+ "fieldName": "orderBy",
2459
+ "inheritedFrom": {
2460
+ "name": "BaseDatasource",
2461
+ "module": "src/utils/base-datasource.ts"
2400
2462
  }
2401
- }
2402
- ]
2403
- }
2404
- ],
2405
- "exports": [
2406
- {
2407
- "kind": "js",
2408
- "name": "ColumnChart",
2409
- "declaration": {
2410
- "name": "ColumnChart",
2411
- "module": "src/models/column-chart.ts"
2412
- }
2413
- }
2414
- ]
2415
- },
2416
- {
2417
- "kind": "javascript-module",
2418
- "path": "src/models/donut-chart.ts",
2419
- "declarations": [
2420
- {
2421
- "kind": "function",
2422
- "name": "DonutChart",
2423
- "parameters": [
2463
+ },
2424
2464
  {
2425
- "name": "container",
2426
2465
  "type": {
2427
- "text": "HTMLElement"
2428
- }
2466
+ "text": "boolean"
2467
+ },
2468
+ "default": "true",
2469
+ "fieldName": "reduced",
2470
+ "inheritedFrom": {
2471
+ "name": "BaseDatasource",
2472
+ "module": "src/utils/base-datasource.ts"
2473
+ },
2474
+ "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
2429
2475
  },
2430
2476
  {
2431
- "name": "config",
2477
+ "name": "rowId",
2432
2478
  "type": {
2433
- "text": "PieOptions"
2479
+ "text": "string"
2480
+ },
2481
+ "description": "Explicit override for the field that uniquely identifies a row. Leave unset to derive it\nfrom the resource type (`ROW_REF` for DATASERVER, `RECORD_ID` for request/reply) via the\ninherited `effectiveRowId`.",
2482
+ "fieldName": "rowId",
2483
+ "inheritedFrom": {
2484
+ "name": "BaseDatasource",
2485
+ "module": "src/utils/base-datasource.ts"
2434
2486
  }
2435
- }
2436
- ]
2437
- }
2438
- ],
2439
- "exports": [
2440
- {
2441
- "kind": "js",
2442
- "name": "DonutChart",
2443
- "declaration": {
2444
- "name": "DonutChart",
2445
- "module": "src/models/donut-chart.ts"
2446
- }
2447
- }
2448
- ]
2449
- },
2450
- {
2451
- "kind": "javascript-module",
2452
- "path": "src/models/dual-axes-chart.ts",
2453
- "declarations": [
2454
- {
2455
- "kind": "function",
2456
- "name": "DualAxesChart",
2457
- "parameters": [
2487
+ },
2458
2488
  {
2459
- "name": "container",
2489
+ "name": "fields",
2460
2490
  "type": {
2461
- "text": "HTMLElement"
2491
+ "text": "string"
2492
+ },
2493
+ "fieldName": "fields",
2494
+ "inheritedFrom": {
2495
+ "name": "BaseDatasource",
2496
+ "module": "src/utils/base-datasource.ts"
2462
2497
  }
2463
2498
  },
2464
2499
  {
2465
- "name": "config",
2500
+ "name": "request",
2466
2501
  "type": {
2467
- "text": "DualAxesOptions"
2502
+ "text": "any"
2503
+ },
2504
+ "fieldName": "request",
2505
+ "inheritedFrom": {
2506
+ "name": "BaseDatasource",
2507
+ "module": "src/utils/base-datasource.ts"
2468
2508
  }
2469
2509
  }
2470
- ]
2510
+ ],
2511
+ "mixins": [
2512
+ {
2513
+ "name": "LifecycleMixin",
2514
+ "package": "@genesislcap/foundation-utils"
2515
+ }
2516
+ ],
2517
+ "superclass": {
2518
+ "name": "ConcreteDatasource",
2519
+ "module": "src/chart-datasource/chart-datasource.ts"
2520
+ },
2521
+ "tagName": "chart-datasource",
2522
+ "customElement": true
2471
2523
  }
2472
2524
  ],
2473
2525
  "exports": [
2474
2526
  {
2475
2527
  "kind": "js",
2476
- "name": "DualAxesChart",
2477
- "declaration": {
2478
- "name": "DualAxesChart",
2479
- "module": "src/models/dual-axes-chart.ts"
2480
- }
2481
- }
2482
- ]
2483
- },
2484
- {
2485
- "kind": "javascript-module",
2486
- "path": "src/models/index.ts",
2487
- "declarations": [],
2488
- "exports": [
2489
- {
2490
- "kind": "js",
2491
- "name": "*",
2492
- "declaration": {
2493
- "name": "*",
2494
- "package": "./area-chart"
2495
- }
2496
- },
2497
- {
2498
- "kind": "js",
2499
- "name": "*",
2500
- "declaration": {
2501
- "name": "*",
2502
- "package": "./bar-chart"
2503
- }
2504
- },
2505
- {
2506
- "kind": "js",
2507
- "name": "*",
2508
- "declaration": {
2509
- "name": "*",
2510
- "package": "./column-chart"
2511
- }
2512
- },
2513
- {
2514
- "kind": "js",
2515
- "name": "*",
2516
- "declaration": {
2517
- "name": "*",
2518
- "package": "./donut-chart"
2519
- }
2520
- },
2521
- {
2522
- "kind": "js",
2523
- "name": "*",
2524
- "declaration": {
2525
- "name": "*",
2526
- "package": "./dual-axes-chart"
2527
- }
2528
- },
2529
- {
2530
- "kind": "js",
2531
- "name": "*",
2532
- "declaration": {
2533
- "name": "*",
2534
- "package": "./line-chart"
2535
- }
2536
- },
2537
- {
2538
- "kind": "js",
2539
- "name": "*",
2540
- "declaration": {
2541
- "name": "*",
2542
- "package": "./mix-chart"
2543
- }
2544
- },
2545
- {
2546
- "kind": "js",
2547
- "name": "*",
2528
+ "name": "defaultChartFields",
2548
2529
  "declaration": {
2549
- "name": "*",
2550
- "package": "./pie-chart"
2530
+ "name": "defaultChartFields",
2531
+ "module": "src/chart-datasource/chart-datasource.ts"
2551
2532
  }
2552
2533
  },
2553
2534
  {
2554
2535
  "kind": "js",
2555
- "name": "*",
2536
+ "name": "defaultSeriesChartField",
2556
2537
  "declaration": {
2557
- "name": "*",
2558
- "package": "./rose-chart"
2538
+ "name": "defaultSeriesChartField",
2539
+ "module": "src/chart-datasource/chart-datasource.ts"
2559
2540
  }
2560
2541
  },
2561
2542
  {
2562
2543
  "kind": "js",
2563
- "name": "*",
2544
+ "name": "ChartDatasource",
2564
2545
  "declaration": {
2565
- "name": "*",
2566
- "package": "./scatter-chart"
2546
+ "name": "ChartDatasource",
2547
+ "module": "src/chart-datasource/chart-datasource.ts"
2567
2548
  }
2568
2549
  },
2569
2550
  {
2570
- "kind": "js",
2571
- "name": "*",
2551
+ "kind": "custom-element-definition",
2552
+ "name": "chart-datasource",
2572
2553
  "declaration": {
2573
- "name": "*",
2574
- "package": "./stock-chart"
2554
+ "name": "ChartDatasource",
2555
+ "module": "src/chart-datasource/chart-datasource.ts"
2575
2556
  }
2576
2557
  }
2577
2558
  ]
2578
2559
  },
2579
2560
  {
2580
2561
  "kind": "javascript-module",
2581
- "path": "src/models/line-chart.ts",
2562
+ "path": "src/chart-datasource/chart-datasource.types.ts",
2563
+ "declarations": [],
2564
+ "exports": []
2565
+ },
2566
+ {
2567
+ "kind": "javascript-module",
2568
+ "path": "src/chart-datasource/chart-datasource.utils.ts",
2582
2569
  "declarations": [
2583
2570
  {
2584
2571
  "kind": "function",
2585
- "name": "LineChart",
2572
+ "name": "extractFields",
2586
2573
  "parameters": [
2587
2574
  {
2588
- "name": "container",
2575
+ "name": "fields"
2576
+ }
2577
+ ]
2578
+ },
2579
+ {
2580
+ "kind": "function",
2581
+ "name": "getNormalizedFieldValue",
2582
+ "parameters": [
2583
+ {
2584
+ "name": "fieldValue",
2589
2585
  "type": {
2590
- "text": "HTMLElement"
2586
+ "text": "any"
2591
2587
  }
2592
2588
  },
2593
2589
  {
2594
- "name": "config",
2590
+ "name": "fieldType",
2591
+ "optional": true,
2595
2592
  "type": {
2596
- "text": "LineOptions"
2593
+ "text": "FieldTypeEnum"
2597
2594
  }
2598
2595
  }
2599
- ]
2600
- }
2601
- ],
2602
- "exports": [
2603
- {
2604
- "kind": "js",
2605
- "name": "LineChart",
2606
- "declaration": {
2607
- "name": "LineChart",
2608
- "module": "src/models/line-chart.ts"
2609
- }
2610
- }
2611
- ]
2612
- },
2613
- {
2614
- "kind": "javascript-module",
2615
- "path": "src/models/mix-chart.ts",
2616
- "declarations": [
2596
+ ],
2597
+ "description": "Normalizes a server field value before it's handed to the chart.\n\nBIGDECIMAL fields are serialized by the server as strings to preserve\nprecision, while INT/LONG/DOUBLE arrive as JSON numbers. G2Plot needs real\nnumbers for its scales, and getReduced sums values with `+=`, which\nwould concatenate strings. Any NUMBER-typed field whose value arrives as a\nnumeric string is therefore converted with `Number()`.\n\nValues that don't parse to a finite number (and fields of any other type)\nare returned untouched.",
2598
+ "privacy": "public"
2599
+ },
2617
2600
  {
2618
2601
  "kind": "function",
2619
- "name": "MixChart",
2602
+ "name": "getFormattedDateGroupBy",
2620
2603
  "parameters": [
2621
2604
  {
2622
- "name": "container",
2605
+ "name": "groupByFieldValue",
2623
2606
  "type": {
2624
- "text": "HTMLElement"
2607
+ "text": "any"
2625
2608
  }
2626
2609
  },
2627
2610
  {
2628
- "name": "config",
2611
+ "name": "fieldType",
2629
2612
  "type": {
2630
- "text": "MixOptions"
2613
+ "text": "FieldTypeEnum"
2614
+ }
2615
+ },
2616
+ {
2617
+ "name": "showTime",
2618
+ "optional": true,
2619
+ "type": {
2620
+ "text": "boolean"
2631
2621
  }
2632
2622
  }
2633
2623
  ]
2634
- }
2635
- ],
2636
- "exports": [
2637
- {
2638
- "kind": "js",
2639
- "name": "MixChart",
2640
- "declaration": {
2641
- "name": "MixChart",
2642
- "module": "src/models/mix-chart.ts"
2643
- }
2644
- }
2645
- ]
2646
- },
2647
- {
2648
- "kind": "javascript-module",
2649
- "path": "src/models/pie-chart.ts",
2650
- "declarations": [
2624
+ },
2651
2625
  {
2652
2626
  "kind": "function",
2653
- "name": "PieChart",
2627
+ "name": "getReduced",
2628
+ "return": {
2629
+ "type": {
2630
+ "text": "any[]"
2631
+ }
2632
+ },
2654
2633
  "parameters": [
2655
2634
  {
2656
- "name": "container",
2635
+ "name": "allRows",
2657
2636
  "type": {
2658
- "text": "HTMLElement"
2637
+ "text": "any[]"
2659
2638
  }
2660
2639
  },
2661
2640
  {
2662
- "name": "config",
2641
+ "name": "groupByField",
2663
2642
  "type": {
2664
- "text": "PieOptions"
2643
+ "text": "string"
2644
+ }
2645
+ },
2646
+ {
2647
+ "name": "valueField",
2648
+ "type": {
2649
+ "text": "string"
2650
+ }
2651
+ },
2652
+ {
2653
+ "name": "seriesField",
2654
+ "optional": true,
2655
+ "type": {
2656
+ "text": "string"
2665
2657
  }
2666
2658
  }
2667
2659
  ]
@@ -2670,115 +2662,123 @@
2670
2662
  "exports": [
2671
2663
  {
2672
2664
  "kind": "js",
2673
- "name": "PieChart",
2665
+ "name": "extractFields",
2674
2666
  "declaration": {
2675
- "name": "PieChart",
2676
- "module": "src/models/pie-chart.ts"
2667
+ "name": "extractFields",
2668
+ "module": "src/chart-datasource/chart-datasource.utils.ts"
2669
+ }
2670
+ },
2671
+ {
2672
+ "kind": "js",
2673
+ "name": "getNormalizedFieldValue",
2674
+ "declaration": {
2675
+ "name": "getNormalizedFieldValue",
2676
+ "module": "src/chart-datasource/chart-datasource.utils.ts"
2677
+ }
2678
+ },
2679
+ {
2680
+ "kind": "js",
2681
+ "name": "getFormattedDateGroupBy",
2682
+ "declaration": {
2683
+ "name": "getFormattedDateGroupBy",
2684
+ "module": "src/chart-datasource/chart-datasource.utils.ts"
2685
+ }
2686
+ },
2687
+ {
2688
+ "kind": "js",
2689
+ "name": "getReduced",
2690
+ "declaration": {
2691
+ "name": "getReduced",
2692
+ "module": "src/chart-datasource/chart-datasource.utils.ts"
2677
2693
  }
2678
2694
  }
2679
2695
  ]
2680
2696
  },
2681
2697
  {
2682
2698
  "kind": "javascript-module",
2683
- "path": "src/models/rose-chart.ts",
2684
- "declarations": [
2685
- {
2686
- "kind": "function",
2687
- "name": "RoseChart",
2688
- "parameters": [
2689
- {
2690
- "name": "container",
2691
- "type": {
2692
- "text": "HTMLElement"
2693
- }
2694
- },
2695
- {
2696
- "name": "config",
2697
- "type": {
2698
- "text": "RoseOptions"
2699
- }
2700
- }
2701
- ]
2702
- }
2703
- ],
2699
+ "path": "src/chart-datasource/index.ts",
2700
+ "declarations": [],
2704
2701
  "exports": [
2705
2702
  {
2706
2703
  "kind": "js",
2707
- "name": "RoseChart",
2704
+ "name": "*",
2708
2705
  "declaration": {
2709
- "name": "RoseChart",
2710
- "module": "src/models/rose-chart.ts"
2706
+ "name": "*",
2707
+ "package": "./chart-datasource.config"
2708
+ }
2709
+ },
2710
+ {
2711
+ "kind": "js",
2712
+ "name": "*",
2713
+ "declaration": {
2714
+ "name": "*",
2715
+ "package": "./chart-datasource.types"
2716
+ }
2717
+ },
2718
+ {
2719
+ "kind": "js",
2720
+ "name": "*",
2721
+ "declaration": {
2722
+ "name": "*",
2723
+ "package": "./chart-datasource"
2711
2724
  }
2712
2725
  }
2713
2726
  ]
2714
2727
  },
2715
2728
  {
2716
2729
  "kind": "javascript-module",
2717
- "path": "src/models/scatter-chart.ts",
2730
+ "path": "src/settings/colors.ts",
2718
2731
  "declarations": [
2719
2732
  {
2720
- "kind": "function",
2721
- "name": "ScatterChart",
2722
- "parameters": [
2723
- {
2724
- "name": "container",
2725
- "type": {
2726
- "text": "HTMLElement"
2727
- }
2728
- },
2729
- {
2730
- "name": "config",
2731
- "type": {
2732
- "text": "ScatterOptions"
2733
- }
2734
- }
2735
- ]
2733
+ "kind": "variable",
2734
+ "name": "chartsGradients",
2735
+ "type": {
2736
+ "text": "object"
2737
+ },
2738
+ "default": "{\n rapidBlue: `l(270) 0:${PrimaryRapidColorHEX.purple} 1:${PrimaryRapidColorHEX.blue}`,\n rapidGreen: `l(270) 0:${RapidColorHEX.green} 1:${RapidColorHEX.lightGreen}`,\n rapidRed: `l(300) 0:${RapidColorHEX.red} 1:${RapidColorHEX.lightRed}`,\n rapidPortage: `l(270) 0:${RapidColorHEX.portage} 1:${RapidColorHEX.lightPortage}`,\n rapidAlabaster: `l(270) 0:${RapidColorHEX.white} 1:${RapidColorHEX.silver}`,\n rapidSalomie: `l(270) 0:${RapidColorHEX.salomie} 1:${RapidColorHEX.lightSalomie}`,\n rapidMelon: `l(270) 0:${RapidColorHEX.melon} 1:${RapidColorHEX.lightMelon}`,\n rapidDodgerBlue: `l(270) 0:${RapidColorHEX.dodgerBlue} 1:${RapidColorHEX.lightDodgerBlue}`,\n rapidIce: `l(170) 0:${RapidColorHEX.ice} 1:${RapidColorHEX.lightIce}`,\n rapidViolet: `l(270) 0:${RapidColorHEX.violet} 1:${RapidColorHEX.lightViolet}`,\n}",
2739
+ "description": "G2Plot Chart gradient colors",
2740
+ "privacy": "public"
2736
2741
  }
2737
2742
  ],
2738
2743
  "exports": [
2739
2744
  {
2740
2745
  "kind": "js",
2741
- "name": "ScatterChart",
2746
+ "name": "chartsGradients",
2742
2747
  "declaration": {
2743
- "name": "ScatterChart",
2744
- "module": "src/models/scatter-chart.ts"
2748
+ "name": "chartsGradients",
2749
+ "module": "src/settings/colors.ts"
2745
2750
  }
2746
2751
  }
2747
2752
  ]
2748
2753
  },
2749
2754
  {
2750
2755
  "kind": "javascript-module",
2751
- "path": "src/models/stock-chart.ts",
2752
- "declarations": [
2753
- {
2754
- "kind": "function",
2755
- "name": "StockChart",
2756
- "parameters": [
2757
- {
2758
- "name": "container",
2759
- "type": {
2760
- "text": "HTMLElement"
2761
- }
2762
- },
2763
- {
2764
- "name": "config",
2765
- "type": {
2766
- "text": "StockOptions"
2767
- }
2768
- }
2769
- ]
2770
- }
2771
- ],
2756
+ "path": "src/settings/index.ts",
2757
+ "declarations": [],
2772
2758
  "exports": [
2773
2759
  {
2774
2760
  "kind": "js",
2775
- "name": "StockChart",
2761
+ "name": "*",
2776
2762
  "declaration": {
2777
- "name": "StockChart",
2778
- "module": "src/models/stock-chart.ts"
2763
+ "name": "*",
2764
+ "package": "./colors"
2765
+ }
2766
+ },
2767
+ {
2768
+ "kind": "js",
2769
+ "name": "*",
2770
+ "declaration": {
2771
+ "name": "*",
2772
+ "package": "./shapes"
2779
2773
  }
2780
2774
  }
2781
2775
  ]
2776
+ },
2777
+ {
2778
+ "kind": "javascript-module",
2779
+ "path": "src/settings/shapes.ts",
2780
+ "declarations": [],
2781
+ "exports": []
2782
2782
  }
2783
2783
  ]
2784
2784
  }