@genesislcap/g2plot-chart 14.215.1 → 14.217.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.
@@ -680,6 +680,152 @@
680
680
  "module": "src/chart-datasource/chart-datasource.ts"
681
681
  }
682
682
  },
683
+ {
684
+ "kind": "field",
685
+ "name": "withTimestampFormatting",
686
+ "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"
695
+ }
696
+ },
697
+ {
698
+ "kind": "field",
699
+ "name": "resourceName",
700
+ "type": {
701
+ "text": "string"
702
+ },
703
+ "inheritedFrom": {
704
+ "name": "BaseDatasource",
705
+ "module": "src/utils/base-datasource.ts"
706
+ },
707
+ "description": "Name of the backend resource which contain the data.",
708
+ "privacy": "public"
709
+ },
710
+ {
711
+ "kind": "field",
712
+ "name": "criteria",
713
+ "type": {
714
+ "text": "string"
715
+ },
716
+ "inheritedFrom": {
717
+ "name": "BaseDatasource",
718
+ "module": "src/utils/base-datasource.ts"
719
+ },
720
+ "description": "Clients can send a Groovy expression to perform filters on the query server,\nthese remain active for the life of the subscription.",
721
+ "privacy": "public"
722
+ },
723
+ {
724
+ "kind": "field",
725
+ "name": "data",
726
+ "type": {
727
+ "text": "any[]"
728
+ },
729
+ "inheritedFrom": {
730
+ "name": "BaseDatasource",
731
+ "module": "src/utils/base-datasource.ts"
732
+ },
733
+ "description": "Optional attribute that can be used to pass the data that will be used in the component.",
734
+ "privacy": "public"
735
+ },
736
+ {
737
+ "kind": "field",
738
+ "name": "isSnapshot",
739
+ "type": {
740
+ "text": "boolean"
741
+ },
742
+ "default": "false",
743
+ "inheritedFrom": {
744
+ "name": "BaseDatasource",
745
+ "module": "src/utils/base-datasource.ts"
746
+ },
747
+ "description": "Request a snapshot from the server.",
748
+ "privacy": "public"
749
+ },
750
+ {
751
+ "kind": "field",
752
+ "name": "maxRows",
753
+ "type": {
754
+ "text": "number"
755
+ },
756
+ "inheritedFrom": {
757
+ "name": "BaseDatasource",
758
+ "module": "src/utils/base-datasource.ts"
759
+ },
760
+ "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.",
761
+ "privacy": "public"
762
+ },
763
+ {
764
+ "kind": "field",
765
+ "name": "maxView",
766
+ "type": {
767
+ "text": "number"
768
+ },
769
+ "inheritedFrom": {
770
+ "name": "BaseDatasource",
771
+ "module": "src/utils/base-datasource.ts"
772
+ },
773
+ "description": "Maximum number of rows to track as part of a client \"view\"."
774
+ },
775
+ {
776
+ "kind": "field",
777
+ "name": "orderBy",
778
+ "type": {
779
+ "text": "string"
780
+ },
781
+ "inheritedFrom": {
782
+ "name": "BaseDatasource",
783
+ "module": "src/utils/base-datasource.ts"
784
+ },
785
+ "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).",
786
+ "privacy": "public"
787
+ },
788
+ {
789
+ "kind": "field",
790
+ "name": "request",
791
+ "type": {
792
+ "text": "any"
793
+ },
794
+ "inheritedFrom": {
795
+ "name": "BaseDatasource",
796
+ "module": "src/utils/base-datasource.ts"
797
+ },
798
+ "description": "This optional parameter enables you to specify request fields, which can include wildcards.",
799
+ "privacy": "public"
800
+ },
801
+ {
802
+ "kind": "field",
803
+ "name": "reverse",
804
+ "type": {
805
+ "text": "boolean"
806
+ },
807
+ "default": "false",
808
+ "inheritedFrom": {
809
+ "name": "BaseDatasource",
810
+ "module": "src/utils/base-datasource.ts"
811
+ },
812
+ "description": "This option changes the Data Server index iteration.\nFor example, if you are using the default index,\nthe query will return rows in order from the newest database records to the oldest.",
813
+ "privacy": "public"
814
+ },
815
+ {
816
+ "kind": "field",
817
+ "name": "rowId",
818
+ "type": {
819
+ "text": "string"
820
+ },
821
+ "default": "'ROW_REF'",
822
+ "inheritedFrom": {
823
+ "name": "BaseDatasource",
824
+ "module": "src/utils/base-datasource.ts"
825
+ },
826
+ "description": "Attribute to set an unique identifier for the row.",
827
+ "privacy": "public"
828
+ },
683
829
  {
684
830
  "kind": "method",
685
831
  "name": "prepareSeriesField",
@@ -1006,17 +1152,6 @@
1006
1152
  "module": "src/utils/base-datasource.ts"
1007
1153
  }
1008
1154
  },
1009
- {
1010
- "kind": "field",
1011
- "name": "criteria",
1012
- "type": {
1013
- "text": "string"
1014
- },
1015
- "inheritedFrom": {
1016
- "name": "BaseDatasource",
1017
- "module": "src/utils/base-datasource.ts"
1018
- }
1019
- },
1020
1155
  {
1021
1156
  "kind": "method",
1022
1157
  "name": "criteriaChanged",
@@ -1039,17 +1174,6 @@
1039
1174
  "module": "src/utils/base-datasource.ts"
1040
1175
  }
1041
1176
  },
1042
- {
1043
- "kind": "field",
1044
- "name": "data",
1045
- "type": {
1046
- "text": "any[]"
1047
- },
1048
- "inheritedFrom": {
1049
- "name": "BaseDatasource",
1050
- "module": "src/utils/base-datasource.ts"
1051
- }
1052
- },
1053
1177
  {
1054
1178
  "kind": "method",
1055
1179
  "name": "dataChanged",
@@ -1074,111 +1198,6 @@
1074
1198
  "module": "src/utils/base-datasource.ts"
1075
1199
  }
1076
1200
  },
1077
- {
1078
- "kind": "field",
1079
- "name": "isSnapshot",
1080
- "type": {
1081
- "text": "boolean"
1082
- },
1083
- "default": "false",
1084
- "inheritedFrom": {
1085
- "name": "BaseDatasource",
1086
- "module": "src/utils/base-datasource.ts"
1087
- }
1088
- },
1089
- {
1090
- "kind": "field",
1091
- "name": "maxRows",
1092
- "type": {
1093
- "text": "number"
1094
- },
1095
- "inheritedFrom": {
1096
- "name": "BaseDatasource",
1097
- "module": "src/utils/base-datasource.ts"
1098
- }
1099
- },
1100
- {
1101
- "kind": "field",
1102
- "name": "maxView",
1103
- "type": {
1104
- "text": "number"
1105
- },
1106
- "inheritedFrom": {
1107
- "name": "BaseDatasource",
1108
- "module": "src/utils/base-datasource.ts"
1109
- }
1110
- },
1111
- {
1112
- "kind": "field",
1113
- "name": "orderBy",
1114
- "type": {
1115
- "text": "string"
1116
- },
1117
- "inheritedFrom": {
1118
- "name": "BaseDatasource",
1119
- "module": "src/utils/base-datasource.ts"
1120
- }
1121
- },
1122
- {
1123
- "kind": "field",
1124
- "name": "request",
1125
- "type": {
1126
- "text": "any"
1127
- },
1128
- "inheritedFrom": {
1129
- "name": "BaseDatasource",
1130
- "module": "src/utils/base-datasource.ts"
1131
- }
1132
- },
1133
- {
1134
- "kind": "field",
1135
- "name": "resourceName",
1136
- "type": {
1137
- "text": "string"
1138
- },
1139
- "inheritedFrom": {
1140
- "name": "BaseDatasource",
1141
- "module": "src/utils/base-datasource.ts"
1142
- }
1143
- },
1144
- {
1145
- "kind": "field",
1146
- "name": "reverse",
1147
- "type": {
1148
- "text": "boolean"
1149
- },
1150
- "default": "false",
1151
- "inheritedFrom": {
1152
- "name": "BaseDatasource",
1153
- "module": "src/utils/base-datasource.ts"
1154
- }
1155
- },
1156
- {
1157
- "kind": "field",
1158
- "name": "rowId",
1159
- "type": {
1160
- "text": "string"
1161
- },
1162
- "default": "'ROW_REF'",
1163
- "inheritedFrom": {
1164
- "name": "BaseDatasource",
1165
- "module": "src/utils/base-datasource.ts"
1166
- }
1167
- },
1168
- {
1169
- "kind": "field",
1170
- "name": "withTimestampFormatting",
1171
- "type": {
1172
- "text": "boolean"
1173
- },
1174
- "default": "true",
1175
- "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
1176
- "privacy": "public",
1177
- "inheritedFrom": {
1178
- "name": "BaseDatasource",
1179
- "module": "src/utils/base-datasource.ts"
1180
- }
1181
- },
1182
1201
  {
1183
1202
  "kind": "field",
1184
1203
  "name": "datasourceConfig",
@@ -1621,6 +1640,31 @@
1621
1640
  "description": "Only works if [withTimestampFormatting] is true.\n\nDisabled by default, will ignore the TIME portion in the Chart labels.\nOnly affects [DATETIME] fields.",
1622
1641
  "fieldName": "showFormattedTime"
1623
1642
  },
1643
+ {
1644
+ "name": "with-timestamp-formatting",
1645
+ "type": {
1646
+ "text": "boolean"
1647
+ },
1648
+ "default": "true",
1649
+ "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
1650
+ "fieldName": "withTimestampFormatting",
1651
+ "inheritedFrom": {
1652
+ "name": "BaseDatasource",
1653
+ "module": "src/utils/base-datasource.ts"
1654
+ }
1655
+ },
1656
+ {
1657
+ "name": "resourceName",
1658
+ "type": {
1659
+ "text": "string"
1660
+ },
1661
+ "fieldName": "resourceName",
1662
+ "inheritedFrom": {
1663
+ "name": "BaseDatasource",
1664
+ "module": "src/utils/base-datasource.ts"
1665
+ },
1666
+ "description": "Name of the backend resource which contain the data."
1667
+ },
1624
1668
  {
1625
1669
  "name": "criteria",
1626
1670
  "type": {
@@ -1630,18 +1674,20 @@
1630
1674
  "inheritedFrom": {
1631
1675
  "name": "BaseDatasource",
1632
1676
  "module": "src/utils/base-datasource.ts"
1633
- }
1677
+ },
1678
+ "description": "Clients can send a Groovy expression to perform filters on the query server,\nthese remain active for the life of the subscription."
1634
1679
  },
1635
1680
  {
1636
- "name": "fields",
1637
1681
  "type": {
1638
- "text": "string"
1682
+ "text": "boolean"
1639
1683
  },
1640
- "fieldName": "fields",
1684
+ "default": "true",
1685
+ "fieldName": "reduced",
1641
1686
  "inheritedFrom": {
1642
1687
  "name": "BaseDatasource",
1643
1688
  "module": "src/utils/base-datasource.ts"
1644
- }
1689
+ },
1690
+ "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
1645
1691
  },
1646
1692
  {
1647
1693
  "name": "maxRows",
@@ -1652,7 +1698,8 @@
1652
1698
  "inheritedFrom": {
1653
1699
  "name": "BaseDatasource",
1654
1700
  "module": "src/utils/base-datasource.ts"
1655
- }
1701
+ },
1702
+ "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."
1656
1703
  },
1657
1704
  {
1658
1705
  "name": "maxView",
@@ -1663,7 +1710,8 @@
1663
1710
  "inheritedFrom": {
1664
1711
  "name": "BaseDatasource",
1665
1712
  "module": "src/utils/base-datasource.ts"
1666
- }
1713
+ },
1714
+ "description": "Maximum number of rows to track as part of a client \"view\"."
1667
1715
  },
1668
1716
  {
1669
1717
  "name": "orderBy",
@@ -1674,18 +1722,20 @@
1674
1722
  "inheritedFrom": {
1675
1723
  "name": "BaseDatasource",
1676
1724
  "module": "src/utils/base-datasource.ts"
1677
- }
1725
+ },
1726
+ "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)."
1678
1727
  },
1679
1728
  {
1680
- "name": "resourceName",
1681
1729
  "type": {
1682
- "text": "string"
1730
+ "text": "boolean"
1683
1731
  },
1684
- "fieldName": "resourceName",
1732
+ "default": "true",
1733
+ "fieldName": "reduced",
1685
1734
  "inheritedFrom": {
1686
1735
  "name": "BaseDatasource",
1687
1736
  "module": "src/utils/base-datasource.ts"
1688
- }
1737
+ },
1738
+ "description": "Enabled by default, will not work if a custom charts-fields is used (requires [type, value])."
1689
1739
  },
1690
1740
  {
1691
1741
  "name": "rowId",
@@ -1697,16 +1747,15 @@
1697
1747
  "inheritedFrom": {
1698
1748
  "name": "BaseDatasource",
1699
1749
  "module": "src/utils/base-datasource.ts"
1700
- }
1750
+ },
1751
+ "description": "Attribute to set an unique identifier for the row."
1701
1752
  },
1702
1753
  {
1703
- "name": "with-timestamp-formatting",
1754
+ "name": "fields",
1704
1755
  "type": {
1705
- "text": "boolean"
1756
+ "text": "string"
1706
1757
  },
1707
- "default": "true",
1708
- "description": "Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.",
1709
- "fieldName": "withTimestampFormatting",
1758
+ "fieldName": "fields",
1710
1759
  "inheritedFrom": {
1711
1760
  "name": "BaseDatasource",
1712
1761
  "module": "src/utils/base-datasource.ts"
@@ -52,7 +52,10 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
52
52
  dir: string;
53
53
  draggable: boolean;
54
54
  hidden: boolean;
55
- inert: boolean;
55
+ inert: boolean; /**
56
+ * If true, will enable grouped chart plotting numeric values for levels of two categorical variables instead of one.
57
+ * @public
58
+ */
56
59
  innerText: string;
57
60
  lang: string;
58
61
  readonly offsetHeight: number;
@@ -402,6 +405,67 @@ export declare class ChartDatasource extends ChartDatasource_base {
402
405
  * @public
403
406
  */
404
407
  showFormattedTime: boolean;
408
+ /**
409
+ * Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.
410
+ * @public
411
+ */
412
+ withTimestampFormatting: boolean;
413
+ /**
414
+ * Name of the backend resource which contain the data.
415
+ * @public
416
+ */
417
+ resourceName: string;
418
+ /**
419
+ * Clients can send a Groovy expression to perform filters on the query server,
420
+ * these remain active for the life of the subscription.
421
+ * @public
422
+ */
423
+ criteria: string;
424
+ /**
425
+ * Optional attribute that can be used to pass the data that will be used in the component.
426
+ * @public
427
+ */
428
+ data: any[];
429
+ /**
430
+ * Request a snapshot from the server.
431
+ * @public
432
+ */
433
+ isSnapshot: boolean;
434
+ /**
435
+ * Maximum number of rows to be returned as part of the initial message,
436
+ * and as part of any additional MORE_ROWS messages.
437
+ * This will not affect the number of rows displayed.
438
+ * @public
439
+ */
440
+ maxRows: number;
441
+ /**
442
+ * Maximum number of rows to track as part of a client "view".
443
+ */
444
+ maxView: number;
445
+ /**
446
+ * This option can be used to select a Data Server index (defined in the Data Server query),
447
+ * which is especially useful if you want the data to be sorted in a specific way. By default,
448
+ * Data Server rows are returned in order of creation (from oldest database record to newest).
449
+ * @public
450
+ */
451
+ orderBy: string;
452
+ /**
453
+ * This optional parameter enables you to specify request fields, which can include wildcards.
454
+ * @public
455
+ */
456
+ request: any;
457
+ /**
458
+ * This option changes the Data Server index iteration.
459
+ * For example, if you are using the default index,
460
+ * the query will return rows in order from the newest database records to the oldest.
461
+ * @public
462
+ */
463
+ reverse: boolean;
464
+ /**
465
+ * Attribute to set an unique identifier for the row.
466
+ * @public
467
+ */
468
+ rowId: string;
405
469
  /**
406
470
  * @internal
407
471
  */
@@ -1 +1 @@
1
- {"version":3,"file":"chart-datasource.d.ts","sourceRoot":"","sources":["../../../src/chart-datasource/chart-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAQhD,cAAM,kBAAmB,SAAQ,cAAc;IAC7C,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC7B,SAAS,CAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAC1C,SAAS,CAAC,yBAAyB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAChE,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;IACnC,SAAS,CAAC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAC1C,SAAS,CAAC,iBAAiB,UAAS;IACpC,SAAS,CAAC,OAAO,UAAQ;IAEzB,IAAI,sBAAsB,IAAI,MAAM,CAEnC;IAID,SAAS;IAMT,iBAAiB,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE;IAuCtC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE;IAQvC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAQtC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;CAUvC;;;;;;;;;;;;;;;;;;;;;;;;;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C,uBAAuB;CAOhC"}
@@ -1,8 +1,9 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
+ import { DatasourceDefaults } from '@genesislcap/foundation-comms';
2
3
  import { createLogger } from '@genesislcap/foundation-logger';
3
4
  import { BaseDatasource } from '@genesislcap/foundation-ui';
4
5
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
5
- import { attr, customElement } from '@microsoft/fast-element';
6
+ import { attr, customElement, observable } from '@microsoft/fast-element';
6
7
  import { chartDatasourceEventNames } from './chart-datasource.config';
7
8
  import { extractFields, getFormattedDateGroupBy, getReduced } from './chart-datasource.utils';
8
9
  const logger = createLogger('chart-datasource');
@@ -124,6 +125,39 @@ let ChartDatasource = class ChartDatasource extends LifecycleMixin(ConcreteDatas
124
125
  * @public
125
126
  */
126
127
  this.showFormattedTime = false;
128
+ /**
129
+ * Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.
130
+ * @public
131
+ */
132
+ this.withTimestampFormatting = true;
133
+ /**
134
+ * Request a snapshot from the server.
135
+ * @public
136
+ */
137
+ this.isSnapshot = false;
138
+ /**
139
+ * Maximum number of rows to be returned as part of the initial message,
140
+ * and as part of any additional MORE_ROWS messages.
141
+ * This will not affect the number of rows displayed.
142
+ * @public
143
+ */
144
+ this.maxRows = DatasourceDefaults.MAX_ROWS_250;
145
+ /**
146
+ * Maximum number of rows to track as part of a client "view".
147
+ */
148
+ this.maxView = DatasourceDefaults.MAX_VIEW_1000;
149
+ /**
150
+ * This option changes the Data Server index iteration.
151
+ * For example, if you are using the default index,
152
+ * the query will return rows in order from the newest database records to the oldest.
153
+ * @public
154
+ */
155
+ this.reverse = false;
156
+ /**
157
+ * Attribute to set an unique identifier for the row.
158
+ * @public
159
+ */
160
+ this.rowId = 'ROW_REF';
127
161
  }
128
162
  /**
129
163
  * @internal
@@ -265,6 +299,36 @@ __decorate([
265
299
  __decorate([
266
300
  attr({ mode: 'boolean', attribute: 'show-formatted-time' })
267
301
  ], ChartDatasource.prototype, "showFormattedTime", void 0);
302
+ __decorate([
303
+ attr({ mode: 'boolean', attribute: 'with-timestamp-formatting' })
304
+ ], ChartDatasource.prototype, "withTimestampFormatting", void 0);
305
+ __decorate([
306
+ attr
307
+ ], ChartDatasource.prototype, "resourceName", void 0);
308
+ __decorate([
309
+ attr
310
+ ], ChartDatasource.prototype, "criteria", void 0);
311
+ __decorate([
312
+ observable
313
+ ], ChartDatasource.prototype, "data", void 0);
314
+ __decorate([
315
+ attr({ mode: 'boolean' })
316
+ ], ChartDatasource.prototype, "isSnapshot", void 0);
317
+ __decorate([
318
+ attr
319
+ ], ChartDatasource.prototype, "maxRows", void 0);
320
+ __decorate([
321
+ attr
322
+ ], ChartDatasource.prototype, "maxView", void 0);
323
+ __decorate([
324
+ attr
325
+ ], ChartDatasource.prototype, "orderBy", void 0);
326
+ __decorate([
327
+ attr({ mode: 'boolean' })
328
+ ], ChartDatasource.prototype, "reverse", void 0);
329
+ __decorate([
330
+ attr
331
+ ], ChartDatasource.prototype, "rowId", void 0);
268
332
  ChartDatasource = __decorate([
269
333
  customElement({
270
334
  name: 'chart-datasource',
@@ -347,6 +347,66 @@
347
347
  "isProtected": false,
348
348
  "isAbstract": false
349
349
  },
350
+ {
351
+ "kind": "Property",
352
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#criteria:member",
353
+ "docComment": "/**\n * Clients can send a Groovy expression to perform filters on the query server, these remain active for the life of the subscription.\n *\n * @public\n */\n",
354
+ "excerptTokens": [
355
+ {
356
+ "kind": "Content",
357
+ "text": "criteria: "
358
+ },
359
+ {
360
+ "kind": "Content",
361
+ "text": "string"
362
+ },
363
+ {
364
+ "kind": "Content",
365
+ "text": ";"
366
+ }
367
+ ],
368
+ "isReadonly": false,
369
+ "isOptional": false,
370
+ "releaseTag": "Public",
371
+ "name": "criteria",
372
+ "propertyTypeTokenRange": {
373
+ "startIndex": 1,
374
+ "endIndex": 2
375
+ },
376
+ "isStatic": false,
377
+ "isProtected": false,
378
+ "isAbstract": false
379
+ },
380
+ {
381
+ "kind": "Property",
382
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#data:member",
383
+ "docComment": "/**\n * Optional attribute that can be used to pass the data that will be used in the component.\n *\n * @public\n */\n",
384
+ "excerptTokens": [
385
+ {
386
+ "kind": "Content",
387
+ "text": "data: "
388
+ },
389
+ {
390
+ "kind": "Content",
391
+ "text": "any[]"
392
+ },
393
+ {
394
+ "kind": "Content",
395
+ "text": ";"
396
+ }
397
+ ],
398
+ "isReadonly": false,
399
+ "isOptional": false,
400
+ "releaseTag": "Public",
401
+ "name": "data",
402
+ "propertyTypeTokenRange": {
403
+ "startIndex": 1,
404
+ "endIndex": 2
405
+ },
406
+ "isStatic": false,
407
+ "isProtected": false,
408
+ "isAbstract": false
409
+ },
350
410
  {
351
411
  "kind": "Property",
352
412
  "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#isGroup:member",
@@ -377,6 +437,36 @@
377
437
  "isProtected": false,
378
438
  "isAbstract": false
379
439
  },
440
+ {
441
+ "kind": "Property",
442
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#isSnapshot:member",
443
+ "docComment": "/**\n * Request a snapshot from the server.\n *\n * @public\n */\n",
444
+ "excerptTokens": [
445
+ {
446
+ "kind": "Content",
447
+ "text": "isSnapshot: "
448
+ },
449
+ {
450
+ "kind": "Content",
451
+ "text": "boolean"
452
+ },
453
+ {
454
+ "kind": "Content",
455
+ "text": ";"
456
+ }
457
+ ],
458
+ "isReadonly": false,
459
+ "isOptional": false,
460
+ "releaseTag": "Public",
461
+ "name": "isSnapshot",
462
+ "propertyTypeTokenRange": {
463
+ "startIndex": 1,
464
+ "endIndex": 2
465
+ },
466
+ "isStatic": false,
467
+ "isProtected": false,
468
+ "isAbstract": false
469
+ },
380
470
  {
381
471
  "kind": "Property",
382
472
  "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#isStack:member",
@@ -407,6 +497,96 @@
407
497
  "isProtected": false,
408
498
  "isAbstract": false
409
499
  },
500
+ {
501
+ "kind": "Property",
502
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#maxRows:member",
503
+ "docComment": "/**\n * Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE_ROWS messages. This will not affect the number of rows displayed.\n *\n * @public\n */\n",
504
+ "excerptTokens": [
505
+ {
506
+ "kind": "Content",
507
+ "text": "maxRows: "
508
+ },
509
+ {
510
+ "kind": "Content",
511
+ "text": "number"
512
+ },
513
+ {
514
+ "kind": "Content",
515
+ "text": ";"
516
+ }
517
+ ],
518
+ "isReadonly": false,
519
+ "isOptional": false,
520
+ "releaseTag": "Public",
521
+ "name": "maxRows",
522
+ "propertyTypeTokenRange": {
523
+ "startIndex": 1,
524
+ "endIndex": 2
525
+ },
526
+ "isStatic": false,
527
+ "isProtected": false,
528
+ "isAbstract": false
529
+ },
530
+ {
531
+ "kind": "Property",
532
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#maxView:member",
533
+ "docComment": "/**\n * Maximum number of rows to track as part of a client \"view\".\n */\n",
534
+ "excerptTokens": [
535
+ {
536
+ "kind": "Content",
537
+ "text": "maxView: "
538
+ },
539
+ {
540
+ "kind": "Content",
541
+ "text": "number"
542
+ },
543
+ {
544
+ "kind": "Content",
545
+ "text": ";"
546
+ }
547
+ ],
548
+ "isReadonly": false,
549
+ "isOptional": false,
550
+ "releaseTag": "Public",
551
+ "name": "maxView",
552
+ "propertyTypeTokenRange": {
553
+ "startIndex": 1,
554
+ "endIndex": 2
555
+ },
556
+ "isStatic": false,
557
+ "isProtected": false,
558
+ "isAbstract": false
559
+ },
560
+ {
561
+ "kind": "Property",
562
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#orderBy:member",
563
+ "docComment": "/**\n * This option can be used to select a Data Server index (defined in the Data Server query), which is especially useful if you want the data to be sorted in a specific way. By default, Data Server rows are returned in order of creation (from oldest database record to newest).\n *\n * @public\n */\n",
564
+ "excerptTokens": [
565
+ {
566
+ "kind": "Content",
567
+ "text": "orderBy: "
568
+ },
569
+ {
570
+ "kind": "Content",
571
+ "text": "string"
572
+ },
573
+ {
574
+ "kind": "Content",
575
+ "text": ";"
576
+ }
577
+ ],
578
+ "isReadonly": false,
579
+ "isOptional": false,
580
+ "releaseTag": "Public",
581
+ "name": "orderBy",
582
+ "propertyTypeTokenRange": {
583
+ "startIndex": 1,
584
+ "endIndex": 2
585
+ },
586
+ "isStatic": false,
587
+ "isProtected": false,
588
+ "isAbstract": false
589
+ },
410
590
  {
411
591
  "kind": "Property",
412
592
  "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#reduced:member",
@@ -437,6 +617,126 @@
437
617
  "isProtected": false,
438
618
  "isAbstract": false
439
619
  },
620
+ {
621
+ "kind": "Property",
622
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#request:member",
623
+ "docComment": "/**\n * This optional parameter enables you to specify request fields, which can include wildcards.\n *\n * @public\n */\n",
624
+ "excerptTokens": [
625
+ {
626
+ "kind": "Content",
627
+ "text": "request: "
628
+ },
629
+ {
630
+ "kind": "Content",
631
+ "text": "any"
632
+ },
633
+ {
634
+ "kind": "Content",
635
+ "text": ";"
636
+ }
637
+ ],
638
+ "isReadonly": false,
639
+ "isOptional": false,
640
+ "releaseTag": "Public",
641
+ "name": "request",
642
+ "propertyTypeTokenRange": {
643
+ "startIndex": 1,
644
+ "endIndex": 2
645
+ },
646
+ "isStatic": false,
647
+ "isProtected": false,
648
+ "isAbstract": false
649
+ },
650
+ {
651
+ "kind": "Property",
652
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#resourceName:member",
653
+ "docComment": "/**\n * Name of the backend resource which contain the data.\n *\n * @public\n */\n",
654
+ "excerptTokens": [
655
+ {
656
+ "kind": "Content",
657
+ "text": "resourceName: "
658
+ },
659
+ {
660
+ "kind": "Content",
661
+ "text": "string"
662
+ },
663
+ {
664
+ "kind": "Content",
665
+ "text": ";"
666
+ }
667
+ ],
668
+ "isReadonly": false,
669
+ "isOptional": false,
670
+ "releaseTag": "Public",
671
+ "name": "resourceName",
672
+ "propertyTypeTokenRange": {
673
+ "startIndex": 1,
674
+ "endIndex": 2
675
+ },
676
+ "isStatic": false,
677
+ "isProtected": false,
678
+ "isAbstract": false
679
+ },
680
+ {
681
+ "kind": "Property",
682
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#reverse:member",
683
+ "docComment": "/**\n * This option changes the Data Server index iteration. For example, if you are using the default index, the query will return rows in order from the newest database records to the oldest.\n *\n * @public\n */\n",
684
+ "excerptTokens": [
685
+ {
686
+ "kind": "Content",
687
+ "text": "reverse: "
688
+ },
689
+ {
690
+ "kind": "Content",
691
+ "text": "boolean"
692
+ },
693
+ {
694
+ "kind": "Content",
695
+ "text": ";"
696
+ }
697
+ ],
698
+ "isReadonly": false,
699
+ "isOptional": false,
700
+ "releaseTag": "Public",
701
+ "name": "reverse",
702
+ "propertyTypeTokenRange": {
703
+ "startIndex": 1,
704
+ "endIndex": 2
705
+ },
706
+ "isStatic": false,
707
+ "isProtected": false,
708
+ "isAbstract": false
709
+ },
710
+ {
711
+ "kind": "Property",
712
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#rowId:member",
713
+ "docComment": "/**\n * Attribute to set an unique identifier for the row.\n *\n * @public\n */\n",
714
+ "excerptTokens": [
715
+ {
716
+ "kind": "Content",
717
+ "text": "rowId: "
718
+ },
719
+ {
720
+ "kind": "Content",
721
+ "text": "string"
722
+ },
723
+ {
724
+ "kind": "Content",
725
+ "text": ";"
726
+ }
727
+ ],
728
+ "isReadonly": false,
729
+ "isOptional": false,
730
+ "releaseTag": "Public",
731
+ "name": "rowId",
732
+ "propertyTypeTokenRange": {
733
+ "startIndex": 1,
734
+ "endIndex": 2
735
+ },
736
+ "isStatic": false,
737
+ "isProtected": false,
738
+ "isAbstract": false
739
+ },
440
740
  {
441
741
  "kind": "Property",
442
742
  "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#serverFields:member",
@@ -496,6 +796,36 @@
496
796
  "isStatic": false,
497
797
  "isProtected": false,
498
798
  "isAbstract": false
799
+ },
800
+ {
801
+ "kind": "Property",
802
+ "canonicalReference": "@genesislcap/g2plot-chart!ChartDatasource#withTimestampFormatting:member",
803
+ "docComment": "/**\n * Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.\n *\n * @public\n */\n",
804
+ "excerptTokens": [
805
+ {
806
+ "kind": "Content",
807
+ "text": "withTimestampFormatting: "
808
+ },
809
+ {
810
+ "kind": "Content",
811
+ "text": "boolean"
812
+ },
813
+ {
814
+ "kind": "Content",
815
+ "text": ";"
816
+ }
817
+ ],
818
+ "isReadonly": false,
819
+ "isOptional": false,
820
+ "releaseTag": "Public",
821
+ "name": "withTimestampFormatting",
822
+ "propertyTypeTokenRange": {
823
+ "startIndex": 1,
824
+ "endIndex": 2
825
+ },
826
+ "isStatic": false,
827
+ "isProtected": false,
828
+ "isAbstract": false
499
829
  }
500
830
  ],
501
831
  "extendsTokenRange": {
@@ -86,6 +86,67 @@ export declare class ChartDatasource extends ChartDatasource_base {
86
86
  * @public
87
87
  */
88
88
  showFormattedTime: boolean;
89
+ /**
90
+ * Enabled by default, will format UNIX timestamp fields to readable [DATE|DATETIME] values.
91
+ * @public
92
+ */
93
+ withTimestampFormatting: boolean;
94
+ /**
95
+ * Name of the backend resource which contain the data.
96
+ * @public
97
+ */
98
+ resourceName: string;
99
+ /**
100
+ * Clients can send a Groovy expression to perform filters on the query server,
101
+ * these remain active for the life of the subscription.
102
+ * @public
103
+ */
104
+ criteria: string;
105
+ /**
106
+ * Optional attribute that can be used to pass the data that will be used in the component.
107
+ * @public
108
+ */
109
+ data: any[];
110
+ /**
111
+ * Request a snapshot from the server.
112
+ * @public
113
+ */
114
+ isSnapshot: boolean;
115
+ /**
116
+ * Maximum number of rows to be returned as part of the initial message,
117
+ * and as part of any additional MORE_ROWS messages.
118
+ * This will not affect the number of rows displayed.
119
+ * @public
120
+ */
121
+ maxRows: number;
122
+ /**
123
+ * Maximum number of rows to track as part of a client "view".
124
+ */
125
+ maxView: number;
126
+ /**
127
+ * This option can be used to select a Data Server index (defined in the Data Server query),
128
+ * which is especially useful if you want the data to be sorted in a specific way. By default,
129
+ * Data Server rows are returned in order of creation (from oldest database record to newest).
130
+ * @public
131
+ */
132
+ orderBy: string;
133
+ /**
134
+ * This optional parameter enables you to specify request fields, which can include wildcards.
135
+ * @public
136
+ */
137
+ request: any;
138
+ /**
139
+ * This option changes the Data Server index iteration.
140
+ * For example, if you are using the default index,
141
+ * the query will return rows in order from the newest database records to the oldest.
142
+ * @public
143
+ */
144
+ reverse: boolean;
145
+ /**
146
+ * Attribute to set an unique identifier for the row.
147
+ * @public
148
+ */
149
+ rowId: string;
89
150
  /**
90
151
  * @internal
91
152
  */
@@ -138,7 +199,10 @@ declare const ChartDatasource_base: (new (...args: any[]) => {
138
199
  dir: string;
139
200
  draggable: boolean;
140
201
  hidden: boolean;
141
- inert: boolean;
202
+ inert: boolean; /**
203
+ * If true, will enable grouped chart plotting numeric values for levels of two categorical variables instead of one.
204
+ * @public
205
+ */
142
206
  innerText: string;
143
207
  lang: string;
144
208
  readonly offsetHeight: number;
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [criteria](./g2plot-chart.chartdatasource.criteria.md)
4
+
5
+ ## ChartDatasource.criteria property
6
+
7
+ Clients can send a Groovy expression to perform filters on the query server, these remain active for the life of the subscription.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ criteria: string;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [data](./g2plot-chart.chartdatasource.data.md)
4
+
5
+ ## ChartDatasource.data property
6
+
7
+ Optional attribute that can be used to pass the data that will be used in the component.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ data: any[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [isSnapshot](./g2plot-chart.chartdatasource.issnapshot.md)
4
+
5
+ ## ChartDatasource.isSnapshot property
6
+
7
+ Request a snapshot from the server.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ isSnapshot: boolean;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [maxRows](./g2plot-chart.chartdatasource.maxrows.md)
4
+
5
+ ## ChartDatasource.maxRows property
6
+
7
+ Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE\_ROWS messages. This will not affect the number of rows displayed.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ maxRows: number;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [maxView](./g2plot-chart.chartdatasource.maxview.md)
4
+
5
+ ## ChartDatasource.maxView property
6
+
7
+ Maximum number of rows to track as part of a client "view".
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ maxView: number;
13
+ ```
@@ -18,9 +18,20 @@ export declare class ChartDatasource extends ChartDatasource_base
18
18
  | Property | Modifiers | Type | Description |
19
19
  | --- | --- | --- | --- |
20
20
  | [chartFields](./g2plot-chart.chartdatasource.chartfields.md) | | string | <p>Default value is 'groupBy value'. Can be customized but order matters.</p><p>\[Mandatory\] First is always the xField/colorField \[Mandatory\] Second is always the yField/angleField \[Optional\] Third is always the seriesField</p> |
21
+ | [criteria](./g2plot-chart.chartdatasource.criteria.md) | | string | Clients can send a Groovy expression to perform filters on the query server, these remain active for the life of the subscription. |
22
+ | [data](./g2plot-chart.chartdatasource.data.md) | | any\[\] | Optional attribute that can be used to pass the data that will be used in the component. |
21
23
  | [isGroup](./g2plot-chart.chartdatasource.isgroup.md) | | boolean | If true, will enable grouped chart plotting numeric values for levels of two categorical variables instead of one. |
24
+ | [isSnapshot](./g2plot-chart.chartdatasource.issnapshot.md) | | boolean | Request a snapshot from the server. |
22
25
  | [isStack](./g2plot-chart.chartdatasource.isstack.md) | | boolean | If true, will enable stacked chart to effectively portray comparisons of total values across several categories. |
26
+ | [maxRows](./g2plot-chart.chartdatasource.maxrows.md) | | number | Maximum number of rows to be returned as part of the initial message, and as part of any additional MORE\_ROWS messages. This will not affect the number of rows displayed. |
27
+ | [maxView](./g2plot-chart.chartdatasource.maxview.md) | | number | Maximum number of rows to track as part of a client "view". |
28
+ | [orderBy](./g2plot-chart.chartdatasource.orderby.md) | | string | This option can be used to select a Data Server index (defined in the Data Server query), which is especially useful if you want the data to be sorted in a specific way. By default, Data Server rows are returned in order of creation (from oldest database record to newest). |
23
29
  | [reduced](./g2plot-chart.chartdatasource.reduced.md) | | boolean | Enabled by default, will not work if a custom charts-fields is used (requires \[type, value\]). |
30
+ | [request](./g2plot-chart.chartdatasource.request.md) | | any | This optional parameter enables you to specify request fields, which can include wildcards. |
31
+ | [resourceName](./g2plot-chart.chartdatasource.resourcename.md) | | string | Name of the backend resource which contain the data. |
32
+ | [reverse](./g2plot-chart.chartdatasource.reverse.md) | | boolean | This option changes the Data Server index iteration. For example, if you are using the default index, the query will return rows in order from the newest database records to the oldest. |
33
+ | [rowId](./g2plot-chart.chartdatasource.rowid.md) | | string | Attribute to set an unique identifier for the row. |
24
34
  | [serverFields](./g2plot-chart.chartdatasource.serverfields.md) | | string | <p>Can be customized but order matters.</p><p>\[Mandatory\] First will be associated to the first value in 'chartFields' (xField/colorField) \[Mandatory\] Second will be associated to the second value in 'chartFields' (yField/angleField) \[Optional\] Third will be associated to the third value in 'chartFields' (seriesField)</p> |
25
35
  | [showFormattedTime](./g2plot-chart.chartdatasource.showformattedtime.md) | | boolean | <p>Only works if \[withTimestampFormatting\] is true.</p><p>Disabled by default, will ignore the TIME portion in the Chart labels. Only affects \[DATETIME\] fields.</p> |
36
+ | [withTimestampFormatting](./g2plot-chart.chartdatasource.withtimestampformatting.md) | | boolean | Enabled by default, will format UNIX timestamp fields to readable \[DATE\|DATETIME\] values. |
26
37
 
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [orderBy](./g2plot-chart.chartdatasource.orderby.md)
4
+
5
+ ## ChartDatasource.orderBy property
6
+
7
+ This option can be used to select a Data Server index (defined in the Data Server query), which is especially useful if you want the data to be sorted in a specific way. By default, Data Server rows are returned in order of creation (from oldest database record to newest).
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ orderBy: string;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [request](./g2plot-chart.chartdatasource.request.md)
4
+
5
+ ## ChartDatasource.request property
6
+
7
+ This optional parameter enables you to specify request fields, which can include wildcards.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ request: any;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [resourceName](./g2plot-chart.chartdatasource.resourcename.md)
4
+
5
+ ## ChartDatasource.resourceName property
6
+
7
+ Name of the backend resource which contain the data.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ resourceName: string;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [reverse](./g2plot-chart.chartdatasource.reverse.md)
4
+
5
+ ## ChartDatasource.reverse property
6
+
7
+ This option changes the Data Server index iteration. For example, if you are using the default index, the query will return rows in order from the newest database records to the oldest.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ reverse: boolean;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [rowId](./g2plot-chart.chartdatasource.rowid.md)
4
+
5
+ ## ChartDatasource.rowId property
6
+
7
+ Attribute to set an unique identifier for the row.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ rowId: string;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/g2plot-chart](./g2plot-chart.md) &gt; [ChartDatasource](./g2plot-chart.chartdatasource.md) &gt; [withTimestampFormatting](./g2plot-chart.chartdatasource.withtimestampformatting.md)
4
+
5
+ ## ChartDatasource.withTimestampFormatting property
6
+
7
+ Enabled by default, will format UNIX timestamp fields to readable \[DATE\|DATETIME\] values.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ withTimestampFormatting: boolean;
13
+ ```
@@ -48,6 +48,8 @@ export class ChartDatasource extends ChartDatasource_base {
48
48
  chartFields: string;
49
49
  // @internal (undocumented)
50
50
  connectedCallback(): Promise<void>;
51
+ criteria: string;
52
+ data: any[];
51
53
  // @internal (undocumented)
52
54
  disconnectedCallback(): void;
53
55
  // @internal (undocumented)
@@ -59,10 +61,19 @@ export class ChartDatasource extends ChartDatasource_base {
59
61
  // @internal (undocumented)
60
62
  get hasValidServerFields(): boolean;
61
63
  isGroup: boolean;
64
+ isSnapshot: boolean;
62
65
  isStack: boolean;
66
+ maxRows: number;
67
+ maxView: number;
68
+ orderBy: string;
63
69
  reduced: boolean;
70
+ request: any;
71
+ resourceName: string;
72
+ reverse: boolean;
73
+ rowId: string;
64
74
  serverFields: string;
65
75
  showFormattedTime: boolean;
76
+ withTimestampFormatting: boolean;
66
77
  }
67
78
 
68
79
  // @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/g2plot-chart",
3
3
  "description": "Genesis G2plot Chart",
4
- "version": "14.215.1",
4
+ "version": "14.217.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -53,22 +53,22 @@
53
53
  }
54
54
  },
55
55
  "devDependencies": {
56
- "@genesislcap/foundation-testing": "14.215.1",
57
- "@genesislcap/genx": "14.215.1",
58
- "@genesislcap/rollup-builder": "14.215.1",
59
- "@genesislcap/ts-builder": "14.215.1",
60
- "@genesislcap/uvu-playwright-builder": "14.215.1",
61
- "@genesislcap/vite-builder": "14.215.1",
62
- "@genesislcap/webpack-builder": "14.215.1",
56
+ "@genesislcap/foundation-testing": "14.217.0",
57
+ "@genesislcap/genx": "14.217.0",
58
+ "@genesislcap/rollup-builder": "14.217.0",
59
+ "@genesislcap/ts-builder": "14.217.0",
60
+ "@genesislcap/uvu-playwright-builder": "14.217.0",
61
+ "@genesislcap/vite-builder": "14.217.0",
62
+ "@genesislcap/webpack-builder": "14.217.0",
63
63
  "rimraf": "^5.0.0"
64
64
  },
65
65
  "dependencies": {
66
66
  "@antv/g2plot": "^2.4.32",
67
- "@genesislcap/foundation-comms": "14.215.1",
68
- "@genesislcap/foundation-logger": "14.215.1",
69
- "@genesislcap/foundation-ui": "14.215.1",
70
- "@genesislcap/foundation-utils": "14.215.1",
71
- "@genesislcap/foundation-zero": "14.215.1",
67
+ "@genesislcap/foundation-comms": "14.217.0",
68
+ "@genesislcap/foundation-logger": "14.217.0",
69
+ "@genesislcap/foundation-ui": "14.217.0",
70
+ "@genesislcap/foundation-utils": "14.217.0",
71
+ "@genesislcap/foundation-zero": "14.217.0",
72
72
  "@microsoft/fast-element": "^1.12.0",
73
73
  "@microsoft/fast-foundation": "^2.49.4",
74
74
  "tslib": "^2.3.1"
@@ -82,5 +82,5 @@
82
82
  "access": "public"
83
83
  },
84
84
  "customElements": "dist/custom-elements.json",
85
- "gitHead": "f7a58325bc859e6ce441c7df636009d16baca008"
85
+ "gitHead": "3d119baa8d1ec42f681d17de1f605a98b1a9a464"
86
86
  }