react-semaphor 0.0.556 → 0.0.558

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-CMRkKcEa.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-BOeNr29P.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as f } from "../chunks/dashboard-plus-CugPXbBA.js";
1
+ import { D as f } from "../chunks/dashboard-plus-CioOSPos.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -617,6 +617,14 @@ declare interface OrderBy {
617
617
  direction: 'asc' | 'desc';
618
618
  }
619
619
 
620
+ /**
621
+ * Pagination configuration for table queries
622
+ */
623
+ declare interface PaginationConfig {
624
+ page: number;
625
+ pageSize: number;
626
+ }
627
+
620
628
  declare type Params = {
621
629
  [key: string]: string | number | string[] | number[];
622
630
  };
@@ -753,6 +761,7 @@ export declare type TCard = {
753
761
  dataSource?: DataSource;
754
762
  config?: CardConfig;
755
763
  interactionConfig?: CardInteractionConfig;
764
+ paginationConfig?: PaginationConfig;
756
765
  queryConfig?: QueryConfig;
757
766
  customCfg?: any;
758
767
  preferences?: TCardPreferences;
@@ -14,6 +14,7 @@ import { FontSpec } from 'chart.js';
14
14
  import { GroupByField as GroupByField_2 } from '../types/explorer-types';
15
15
  import { JSX as JSX_2 } from 'react/jsx-runtime';
16
16
  import { MetricField as MetricField_2 } from '../types/explorer-types';
17
+ import { PaginationMetadata as PaginationMetadata_2 } from '../types/explorer-types';
17
18
  import { PivotByField as PivotByField_2 } from '../types/explorer-types';
18
19
  import { QueryObserverResult } from '@tanstack/query-core';
19
20
  import { RefetchOptions } from '@tanstack/query-core';
@@ -1083,6 +1084,26 @@ export declare interface OrderBy {
1083
1084
  direction: 'asc' | 'desc';
1084
1085
  }
1085
1086
 
1087
+ /**
1088
+ * Pagination configuration for table queries
1089
+ */
1090
+ export declare interface PaginationConfig {
1091
+ page: number;
1092
+ pageSize: number;
1093
+ }
1094
+
1095
+ /**
1096
+ * Pagination metadata returned with query results
1097
+ */
1098
+ export declare interface PaginationMetadata {
1099
+ page: number;
1100
+ pageSize: number;
1101
+ pageCount: number;
1102
+ totalCount: number;
1103
+ hasNextPage: boolean;
1104
+ hasPrevPage: boolean;
1105
+ }
1106
+
1086
1107
  declare type Params = {
1087
1108
  [key: string]: string | number | string[] | number[];
1088
1109
  };
@@ -1306,6 +1327,7 @@ export declare type TCard = {
1306
1327
  dataSource?: DataSource;
1307
1328
  config?: CardConfig;
1308
1329
  interactionConfig?: CardInteractionConfig;
1330
+ paginationConfig?: PaginationConfig;
1309
1331
  queryConfig?: QueryConfig;
1310
1332
  customCfg?: any;
1311
1333
  preferences?: TCardPreferences;
@@ -1708,6 +1730,7 @@ export declare function useCard(cardId: string): {
1708
1730
  handleDatapointClick: (chart: Chart, datasetIndex: number, clickIndex: number, value: number) => void;
1709
1731
  cfg: TChartConfiguration | undefined;
1710
1732
  queryKey: string[];
1733
+ pagination: PaginationMetadata_2 | undefined;
1711
1734
  };
1712
1735
 
1713
1736
  export declare const useCurrentActiveCard: () => TCard | undefined;
@@ -620,6 +620,14 @@ declare interface OrderBy {
620
620
  direction: 'asc' | 'desc';
621
621
  }
622
622
 
623
+ /**
624
+ * Pagination configuration for table queries
625
+ */
626
+ declare interface PaginationConfig {
627
+ page: number;
628
+ pageSize: number;
629
+ }
630
+
623
631
  declare type Params = {
624
632
  [key: string]: string | number | string[] | number[];
625
633
  };
@@ -758,6 +766,7 @@ export declare type TCard = {
758
766
  dataSource?: DataSource;
759
767
  config?: CardConfig;
760
768
  interactionConfig?: CardInteractionConfig;
769
+ paginationConfig?: PaginationConfig;
761
770
  queryConfig?: QueryConfig;
762
771
  customCfg?: any;
763
772
  preferences?: TCardPreferences;
@@ -614,6 +614,14 @@ declare interface OrderBy {
614
614
  direction: 'asc' | 'desc';
615
615
  }
616
616
 
617
+ /**
618
+ * Pagination configuration for table queries
619
+ */
620
+ declare interface PaginationConfig {
621
+ page: number;
622
+ pageSize: number;
623
+ }
624
+
617
625
  declare type Params = {
618
626
  [key: string]: string | number | string[] | number[];
619
627
  };
@@ -750,6 +758,7 @@ export declare type TCard = {
750
758
  dataSource?: DataSource;
751
759
  config?: CardConfig;
752
760
  interactionConfig?: CardInteractionConfig;
761
+ paginationConfig?: PaginationConfig;
753
762
  queryConfig?: QueryConfig;
754
763
  customCfg?: any;
755
764
  preferences?: TCardPreferences;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.556",
8
+ "version": "0.0.558",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",