@databrainhq/plugin 0.15.91 → 0.15.92

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,7 +1,7 @@
1
1
  import { FilterFieldType } from '@/components';
2
2
  import { Aggregate, ChartSettingsType, DatasetMetricCreationConfiguration, DateEmbedPresetOption, DateRange, Dimension, FloatingDropDownOption, RlsCondition, SelectedColumn, SetChartFieldParams, TranslationDictionary } from '@/types';
3
3
  export declare const functionOptions: (col?: SelectedColumn, dataType?: string) => FloatingDropDownOption[];
4
- export declare const getColumnType: (column: SelectedColumn) => "custom" | "default" | "arithmetic_column";
4
+ export declare const getColumnType: (column: SelectedColumn) => "default" | "custom" | "arithmetic_column";
5
5
  export declare const getGroupedColumnList: (data: any[]) => string[];
6
6
  export declare const getDimensionsAndAggregates: (columns: SelectedColumn[]) => {
7
7
  dimensions: Dimension[];
@@ -798,5 +798,5 @@ export type DELETE_CONFIG = {
798
798
  name?: string;
799
799
  confirmedName?: string;
800
800
  };
801
- export type CalendarType = 'Indian Financial Year' | 'Default Calendar Year';
801
+ export type CalendarType = 'ind' | 'default';
802
802
  export {};
@@ -81618,7 +81618,7 @@ const GC = (t, i) => {
81618
81618
  timeGrainValue: `${o} - ${n}`,
81619
81619
  value: `${o} - ${n}`
81620
81620
  },
81621
- isFiscal: r.calendarType === "Indian Financial Year"
81621
+ isFiscal: r.calendarType === "ind"
81622
81622
  };
81623
81623
  }), el2 = (t, i, r) => {
81624
81624
  var a, s, o, n, C, A, e;
@@ -126802,7 +126802,7 @@ const qH = ({
126802
126802
  timeseriesSettings: _5 ? void 0 : {
126803
126803
  format: ((m6 = (U5 = (Q3 = w1 == null ? void 0 : w1.timeSeriesSettings) == null ? void 0 : Q3.groupBySettings) == null ? void 0 : U5.value) == null ? void 0 : m6.toLowerCase()) || "monthly",
126804
126804
  seriesField: (w1 == null ? void 0 : w1.seriesField) || "",
126805
- isFiscal: K === "Indian Financial Year"
126805
+ isFiscal: K === "ind"
126806
126806
  },
126807
126807
  chartSeriesField: (w1 == null ? void 0 : w1.seriesField) !== "ungrouped" && (w1 != null && w1.seriesField) && (w1 != null && w1.isDynamicSeries) ? w1 == null ? void 0 : w1.seriesField : void 0,
126808
126808
  comparisonCount: w0,
@@ -127066,7 +127066,7 @@ const qH = ({
127066
127066
  return K9.name === ((B9 = n == null ? void 0 : n.values) == null ? void 0 : B9[t9.name]) || t9.value;
127067
127067
  }
127068
127068
  ) : ((K6 = n == null ? void 0 : n.values) == null ? void 0 : K6[t9.name]) || t9.value : t9.value,
127069
- options: t9.datatype !== yu ? [] : (f9 = t9 == null ? void 0 : t9.options) == null ? void 0 : f9.map((K9) => K === "Indian Financial Year" && t9.datatype === yu ? {
127069
+ options: t9.datatype !== yu ? [] : (f9 = t9 == null ? void 0 : t9.options) == null ? void 0 : f9.map((K9) => K === "ind" && t9.datatype === yu ? {
127070
127070
  ...K9,
127071
127071
  isFiscal: !0
127072
127072
  } : K9),
@@ -131239,7 +131239,7 @@ const EX = (t) => L10.sanitize(t, {
131239
131239
  language: w2,
131240
131240
  translationDictionary: Z2,
131241
131241
  globalFilterOptions: F2,
131242
- calendarType: o0 = "Default Calendar Year"
131242
+ calendarType: o0 = "default"
131243
131243
  }) => {
131244
131244
  var o9, k3, S9, X6, L6, n9, O9, F9, $6, W6, f6, P9, o7, e7, y7, g3, c6, o6, Q6, i9, j9, I9, X9, Y9, T6, G9, Q9, H7, S8, E9, T7, s4;
131245
131245
  const [H0, g0] = B1.useState([]), [h0, w0] = B1.useState({
@@ -192321,7 +192321,7 @@ const Wc2 = ({
192321
192321
  timeseriesSettings: A7 || (g3 == null ? void 0 : g3.chartType) !== p1.timeSeries ? void 0 : {
192322
192322
  format: ((S5 = ($5 = g3 == null ? void 0 : g3.timeSeriesSettings) == null ? void 0 : $5.groupBySettings) == null ? void 0 : S5.value) || "monthly",
192323
192323
  seriesField: (g3 == null ? void 0 : g3.seriesField) || "",
192324
- isFiscal: v5 === "Indian Financial Year"
192324
+ isFiscal: v5 === "ind"
192325
192325
  },
192326
192326
  fileName: l4,
192327
192327
  onServerEvent: O5,
@@ -192366,7 +192366,7 @@ const Wc2 = ({
192366
192366
  timeseriesSettings: A7 || (g3 == null ? void 0 : g3.chartType) !== p1.timeSeries ? void 0 : {
192367
192367
  format: ((Y6 = (d6 = g3 == null ? void 0 : g3.timeSeriesSettings) == null ? void 0 : d6.groupBySettings) == null ? void 0 : Y6.value) || "monthly",
192368
192368
  seriesField: (g3 == null ? void 0 : g3.seriesField) || "",
192369
- isFiscal: v5 === "Indian Financial Year"
192369
+ isFiscal: v5 === "ind"
192370
192370
  },
192371
192371
  fileName: l4,
192372
192372
  onServerEvent: O5,
@@ -197216,7 +197216,7 @@ const vh0 = "_dbcLastCardLevel_kosld_4", Bh0 = "_dbcLastMetricCardLevel_kosld_7"
197216
197216
  setDeleteConfig: h3,
197217
197217
  deleteError: m3,
197218
197218
  isDeletingExternalMetric: l5,
197219
- calendarType: F3 = "Default Calendar Year"
197219
+ calendarType: F3 = "default"
197220
197220
  }) => {
197221
197221
  var r8, j4, P8, z8, I4, z4, k4, fe, r4, R8, K8, D8, E4, h4, o8, on, Ye, m4, X4, K4, o4, v4, be, J4, We, mt, In, nt, Kn, l1, p3, K3, P3, A6, f3, r5;
197222
197222
  const X3 = B1.useRef(), [W3, Z5] = B1.useState(!1), [t3, I3] = B1.useState(!1), [O5, C6] = B1.useState(!1), P6 = B1.useMemo(() => {
@@ -197571,7 +197571,7 @@ const vh0 = "_dbcLastCardLevel_kosld_4", Bh0 = "_dbcLastMetricCardLevel_kosld_7"
197571
197571
  timeseriesSettings: c6 || (k3 == null ? void 0 : k3.chartType) !== p1.timeSeries ? void 0 : {
197572
197572
  format: ((D8 = (K8 = k3 == null ? void 0 : k3.timeSeriesSettings) == null ? void 0 : K8.groupBySettings) == null ? void 0 : D8.value) || "monthly",
197573
197573
  seriesField: (k3 == null ? void 0 : k3.seriesField) || "",
197574
- isFiscal: F3 === "Indian Financial Year"
197574
+ isFiscal: F3 === "ind"
197575
197575
  },
197576
197576
  isPythonMode: (h4 = (E4 = t == null ? void 0 : t.datasetMetricSettings) == null ? void 0 : E4.newDatasetSettings) == null ? void 0 : h4.isPythonMode,
197577
197577
  onServerEvent: o0,
@@ -220275,7 +220275,7 @@ const Lf2 = {
220275
220275
  language: d,
220276
220276
  translationDictionary: g,
220277
220277
  hideDashboardFilters: m,
220278
- calendarType: v = "Default Calendar Year"
220278
+ calendarType: v = "default"
220279
220279
  }) => {
220280
220280
  var o7, e7, y7, g3, c6, o6, Q6, i9, j9, I9, X9, Y9, T6, G9, Q9, H7, S8, E9, T7, s4, A7;
220281
220281
  const x = new URLSearchParams(window.location.search), R = x.get("isDbn"), q = x.get("configId"), z = x.get("embed"), [a2, $] = B1.useState(window.location.search), [K, f2] = B1.useState(window.location.search), { data: b2, isLoading: v2, error: t0 } = AX(), p2 = B1.useRef(null), [w2, Z2] = B1.useState(!1), [F2, o0] = B1.useState(1), [H0, g0] = B1.useState(!1), [h0, w0] = B1.useState(!1), [R2, m1] = B1.useState(!1), [J0, b1] = B1.useState(0), [h3, m3] = B1.useState(0), [l5, F3] = B1.useState({ show: !1 }), [X3, W3] = B1.useState(!1), [Z5, t3] = B1.useState(!1), [I3, O5] = B1.useState([]), [C6, P6] = B1.useState({
@@ -220450,7 +220450,7 @@ const Lf2 = {
220450
220450
  manualOptions: ((V8 = A == null ? void 0 : A[v7 == null ? void 0 : v7.label]) == null ? void 0 : V8.options) || (v7 == null ? void 0 : v7.manualOptions) || [],
220451
220451
  datePresetOptions: (s8 = A == null ? void 0 : A[v7 == null ? void 0 : v7.label]) != null && s8.datePresetOptions ? $A2(
220452
220452
  ((A8 = A == null ? void 0 : A[v7 == null ? void 0 : v7.label]) == null ? void 0 : A8.datePresetOptions) || []
220453
- ) || ((Q8 = v7 == null ? void 0 : v7.datePresetOptions) == null ? void 0 : Q8.map((r8) => v === "Indian Financial Year" ? { ...r8 || {}, isFiscal: !0 } : r8)) || [] : ((l4 = v7 == null ? void 0 : v7.datePresetOptions) == null ? void 0 : l4.map((r8) => v === "Indian Financial Year" ? { ...r8 || {}, isFiscal: !0 } : r8)) || []
220453
+ ) || ((Q8 = v7 == null ? void 0 : v7.datePresetOptions) == null ? void 0 : Q8.map((r8) => v === "ind" ? { ...r8 || {}, isFiscal: !0 } : r8)) || [] : ((l4 = v7 == null ? void 0 : v7.datePresetOptions) == null ? void 0 : l4.map((r8) => v === "ind" ? { ...r8 || {}, isFiscal: !0 } : r8)) || []
220454
220454
  };
220455
220455
  })) || []
220456
220456
  };
@@ -221354,7 +221354,7 @@ const Lf2 = {
221354
221354
  language: a2,
221355
221355
  translationDictionary: $,
221356
221356
  hideDashboardFilters: K,
221357
- calendarType: f2 = "Default Calendar Year"
221357
+ calendarType: f2 = "default"
221358
221358
  }) => {
221359
221359
  var t0, p2, w2, Z2, F2, o0, H0, g0, h0, w0;
221360
221360
  const [b2, v2] = B1.useState();