react-semaphor 0.0.548 → 0.0.549

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-DIFWt1VS.js"),t=require("./types/index.cjs"),a=require("./chunks/dashboard-plus-CBTf0BDO.js");require("react/jsx-runtime");require("react");require("react-dom");const r=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","YYYY-MM","MMMM YYYY","custom"];exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=t.EMPTY_SELECTION;exports.ResourceManagementPanel=a.ResourceManagementPanel;exports.ScheduleDashboard=a.ScheduleDashboard;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.downloadPdf=a.downloadPdf;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-DIFWt1VS.js"),t=require("./types/index.cjs"),a=require("./chunks/dashboard-plus-B8vcdh4C.js");require("react/jsx-runtime");require("react");require("react-dom");const r=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=t.EMPTY_SELECTION;exports.ResourceManagementPanel=a.ResourceManagementPanel;exports.ScheduleDashboard=a.ScheduleDashboard;exports.SelectComponent=a.SelectComponent;exports.Surfboard=a.DashboardPlus;exports.cleanCard=a.cleanCard;exports.downloadPdf=a.downloadPdf;exports.getDashbaordStateWithoutData=a.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=r;
package/dist/index.js CHANGED
@@ -1,10 +1,11 @@
1
- import { D as Y, d as D, S as i, b as u, b as d, m as n, f as M, o as l, n as m, q as p, s as C, l as S, i as T, k as c, p as h, j as b, h as g, g as f, t as y, r as A, c as v, x, z as E, y as F, A as N, w as P, e as k, u as q, C as Q, v as R, B as _, a as w } from "./chunks/index-CEWweOR2.js";
2
- import { EMPTY_SELECTION as G } from "./types/index.js";
3
- import { R as I, S as L, a as O, D as V, c as W, d as j, g as z } from "./chunks/dashboard-plus-WlY0hLPo.js";
1
+ import { D as r, d as M, S as D, b as u, b as i, m as d, f as n, o as l, n as m, q as p, s as C, l as S, i as T, k as c, p as h, j as b, h as f, g, t as y, r as A, c as v, x, z as E, y as Q, A as k, w as F, e as W, u as N, C as P, v as q, B as R, a as _ } from "./chunks/index-CEWweOR2.js";
2
+ import { EMPTY_SELECTION as B } from "./types/index.js";
3
+ import { R as H, S as I, a as L, D as O, c as V, d as j, g as z } from "./chunks/dashboard-plus-CTzt60G8.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "react-dom";
7
- const t = [
7
+ const s = [
8
+ // Day granularity formats
8
9
  "MM-DD-YYYY",
9
10
  "YYYY-MM-DD",
10
11
  "MM/DD/YYYY",
@@ -12,26 +13,44 @@ const t = [
12
13
  "MMMM DD, YYYY",
13
14
  "MMM DD, YYYY",
14
15
  "DD MMM YYYY",
15
- "YYYY-MM",
16
+ // Week granularity formats
17
+ "Week of MMM DD, YYYY",
18
+ "Week of MMMM DD, YYYY",
19
+ "YYYY-WW",
20
+ // Month granularity formats
21
+ "MMM YYYY",
16
22
  "MMMM YYYY",
23
+ "YYYY-MM",
24
+ "MM/YYYY",
25
+ "YYYY MMM",
26
+ // Quarter granularity formats
27
+ "Q1 YYYY",
28
+ "YYYY Q1",
29
+ "1st Quarter YYYY",
30
+ "YYYY-Q1",
31
+ "Quarter 1, YYYY",
32
+ // Year granularity formats
33
+ "YYYY",
34
+ "YY",
35
+ // Custom format
17
36
  "custom"
18
37
  ];
19
38
  export {
20
- t as DATE_FORMAT_VALUES,
21
- Y as Dashboard,
22
- D as DashboardWC,
23
- G as EMPTY_SELECTION,
24
- I as ResourceManagementPanel,
25
- L as ScheduleDashboard,
26
- O as SelectComponent,
27
- i as SemaphorContextProvider,
39
+ s as DATE_FORMAT_VALUES,
40
+ r as Dashboard,
41
+ M as DashboardWC,
42
+ B as EMPTY_SELECTION,
43
+ H as ResourceManagementPanel,
44
+ I as ScheduleDashboard,
45
+ L as SelectComponent,
46
+ D as SemaphorContextProvider,
28
47
  u as SemaphorDataProvider,
29
- d as SemaphorQueryClient,
30
- V as Surfboard,
31
- W as cleanCard,
32
- n as createSqlGenConfig,
48
+ i as SemaphorQueryClient,
49
+ O as Surfboard,
50
+ V as cleanCard,
51
+ d as createSqlGenConfig,
33
52
  j as downloadPdf,
34
- M as fmt,
53
+ n as fmt,
35
54
  l as getColumnDataType,
36
55
  z as getDashbaordStateWithoutData,
37
56
  m as getFilterValueType,
@@ -42,20 +61,20 @@ export {
42
61
  c as isBooleanDataType,
43
62
  h as isColumnInSqlGen,
44
63
  b as isDateDataType,
45
- g as isNumberDataType,
46
- f as isTextDataType,
64
+ f as isNumberDataType,
65
+ g as isTextDataType,
47
66
  y as resolveDataType,
48
67
  A as resolveDatamodelName,
49
68
  v as useCard,
50
69
  x as useCurrentActiveCard,
51
70
  E as useCurrentCardConfig,
52
- F as useCurrentSheetActiveCards,
53
- N as useDashboardActions,
54
- P as useDashboardStore,
55
- k as useDataColumns,
56
- q as useDateFilterHook,
57
- Q as useEditorActions,
58
- R as useEditorAside,
59
- _ as useEditorStore,
60
- w as useTextFilterHook
71
+ Q as useCurrentSheetActiveCards,
72
+ k as useDashboardActions,
73
+ F as useDashboardStore,
74
+ W as useDataColumns,
75
+ N as useDateFilterHook,
76
+ P as useEditorActions,
77
+ q as useEditorAside,
78
+ R as useEditorStore,
79
+ _ as useTextFilterHook
61
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-CBTf0BDO.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-B8vcdh4C.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-WlY0hLPo.js";
1
+ import { D as f } from "../chunks/dashboard-plus-CTzt60G8.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -267,7 +267,7 @@ declare interface DataSource {
267
267
  selectedEntities: SelectedEntities;
268
268
  }
269
269
 
270
- declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
270
+ declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
271
271
 
272
272
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
273
273
 
@@ -537,7 +537,7 @@ export declare interface DataSource {
537
537
 
538
538
  export declare type DataType = 'string' | 'number' | 'date' | 'datetime' | 'boolean' | 'json' | 'geo';
539
539
 
540
- export declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
540
+ export declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
541
541
 
542
542
  export declare type DateFormatOption = {
543
543
  value: DateFormatValue;
@@ -270,7 +270,7 @@ declare interface DataSource {
270
270
  selectedEntities: SelectedEntities;
271
271
  }
272
272
 
273
- declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
273
+ declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
274
274
 
275
275
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
276
276
 
@@ -264,7 +264,7 @@ declare interface DataSource {
264
264
  selectedEntities: SelectedEntities;
265
265
  }
266
266
 
267
- declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM", "MMMM YYYY", "custom"];
267
+ declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
268
268
 
269
269
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
270
270
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.0.548",
8
+ "version": "0.0.549",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",