react-semaphor 0.1.526 → 0.1.527
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/DATA_APP_SDK.md +5 -1
- package/dist/analytics-protocol/index.js +1179 -296
- package/dist/brand-studio/index.js +15 -15
- package/dist/briefings/index.js +50 -49
- package/dist/chunks/{calculated-field-identity-D1ofR4KJ.js → calculated-field-identity-DEhjPSr-.js} +66 -65
- package/dist/chunks/{card-config-utils-9sv4e-Vb.js → card-config-utils-BlIbwkuD.js} +68 -65
- package/dist/chunks/{constants-DeLIHVAW.js → constants-DNWVy8Y3.js} +4 -4
- package/dist/chunks/dashboard-JNHR0_cZ.js +14 -0
- package/dist/chunks/{dashboard-briefing-launcher-DXz1GhFZ.js → dashboard-briefing-launcher-D9pFByPh.js} +372 -359
- package/dist/chunks/{dashboard-controls-Df8qOSrs.js → dashboard-controls-CJI5ZWMq.js} +739 -686
- package/dist/chunks/{dashboard-json-Xldp0qww.js → dashboard-json-DLdrFry-.js} +10 -10
- package/dist/chunks/{edit-dashboard-visual-COHBqyic.js → edit-dashboard-visual-D5LjWle1.js} +6603 -6572
- package/dist/chunks/{editor-action-buttons-DahlP57T.js → editor-action-buttons-G91NQKxU.js} +266 -267
- package/dist/chunks/{field-aggregations-BQjogiI1.js → field-aggregations-DeVQLIsP.js} +19 -19
- package/dist/chunks/{field-dependencies-v-lJNzC7.js → field-dependencies-CGYic38w.js} +1 -1
- package/dist/chunks/{index-CbjuruKe.js → index-BvJOYbNv.js} +755 -745
- package/dist/chunks/{matrix-analytical-definition-BimC4XIV.js → matrix-analytical-definition-BJyH5-99.js} +1 -1
- package/dist/chunks/{matrix-card-CIlz0Dnp.js → matrix-card-DY45yiUM.js} +7 -6
- package/dist/chunks/{matrix-control-sources-2VAzGlt8.js → matrix-control-sources-BypfLZsK.js} +11 -11
- package/dist/chunks/{matrix-definition-E5gXXSTZ.js → matrix-definition-Cdn3LoxW.js} +3 -3
- package/dist/chunks/{semantic-format-Baqp8kD_.js → matrix-formatter-BoKU3MzZ.js} +655 -511
- package/dist/chunks/{matrix-member-presentation-Bw7-JCrr.js → matrix-member-presentation-BBW0n1iY.js} +1 -1
- package/dist/chunks/matrix-operation-contract-BV02rLhu.js +809 -0
- package/dist/chunks/{metric-comparison-BphoJ9bq.js → metric-comparison-Crljx_XY.js} +15 -10
- package/dist/chunks/{numeric-presentation-VhMUHfrJ.js → numeric-presentation-LvnNY5Ma.js} +68 -68
- package/dist/chunks/pivot-header-presentation-D5v8uyjj.js +618 -0
- package/dist/chunks/{pivot-result-identity-BzUQiCEV.js → pivot-result-identity-CY__BuwI.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-BFO354lk.js → pivot-result-lifecycle-BWrPhlGT.js} +259 -204
- package/dist/chunks/{raw-temporal-7bFbXd2a.js → raw-temporal-CdnA_OXJ.js} +10 -10
- package/dist/chunks/{raw-temporal-contract-BQZIJ1fn.js → raw-temporal-contract-Bc9z83t-.js} +1 -1
- package/dist/chunks/relative-date-DAF9J7mt.js +456 -0
- package/dist/chunks/{report-preferences-dialog-BcH-0lR-.js → report-preferences-dialog-D3hxu4sE.js} +131 -132
- package/dist/chunks/{report-runtime-context-CxIoGyNM.js → report-runtime-context-CtaGGlit.js} +1 -1
- package/dist/chunks/{selection-reducer-NF5C07yM.js → selection-reducer-C7Um5XN-.js} +47 -26
- package/dist/chunks/semantic-format-BjBMOSoo.js +192 -0
- package/dist/chunks/{semaphor-ready-indicator-BLRDuLr4.js → semaphor-ready-indicator-D46I_4g7.js} +49895 -46141
- package/dist/chunks/{slider-BYIH4icg.js → slider-B6LELqx6.js} +81 -82
- package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js} +25 -25
- package/dist/chunks/switch-_7uBAbYx.js +24003 -0
- package/dist/chunks/{temporal-bucket-PcLFSYWX.js → temporal-bucket-DlFuhCnT.js} +6 -6
- package/dist/chunks/{temporal-bucket-contract-DTLDRzgV.js → temporal-bucket-contract-C6lUGPS3.js} +1 -1
- package/dist/chunks/temporal-input-presentation-DyMWCZYh.js +195 -0
- package/dist/chunks/{token-types-BC6RcUY8.js → token-types-UjyNz95-.js} +1 -1
- package/dist/chunks/{validators-CsdOtZI6.js → validators-CQcG0EPN.js} +852 -731
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +138 -137
- package/dist/data-app-sdk/index.js +12 -12
- package/dist/data-app-sdk-adapters/index.js +23 -22
- package/dist/data-app-sdk-validation/index.js +27 -26
- package/dist/format-utils/index.js +247 -329
- package/dist/index.js +165 -168
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/index.d.ts +3 -0
- package/dist/types/components/explorer/filters/card-date-filter.d.ts +13 -5
- package/dist/types/components/explorer/filters/card-date-selection.d.ts +28 -0
- package/dist/types/components/sharing-and-management/dashboard-actions-menu.d.ts +1 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -1
- package/dist/types/components/surfboard/download-settings-dialog.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +8 -29
- package/dist/types/components/surfboard/filter/use-dashboard-filter-mapping-popover.d.ts +5 -1
- package/dist/types/components/ui-custom/date-range-picker.d.ts +18 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -21
- package/dist/types/components/ui-custom/report-calendar.d.ts +18 -0
- package/dist/types/components/visual/aggregated-table/utils/export-utils.d.ts +3 -5
- package/dist/types/components/visual/data-table/data-table-toolbar.d.ts +1 -1
- package/dist/types/components/visual/pivot-table/utils/pivot-table-export-utils.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/api/exports-api.d.ts +3 -0
- package/dist/types/lib/csv-download.d.ts +9 -0
- package/dist/types/lib/csv-encoding-options.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +2 -1
- package/dist/types/lib/dashboard-navigation/build-carried-click-context.d.ts +0 -1
- package/dist/types/lib/document/document-input-runtime.d.ts +2 -1
- package/dist/types/lib/export-utils.d.ts +17 -15
- package/dist/types/lib/hooks/explorer/use-filter-builder.d.ts +2 -2
- package/dist/types/lib/hooks/use-relative-date-summarizer.d.ts +7 -0
- package/dist/types/lib/matrix-table/matrix-application-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-card-draft.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-dataset-history.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +7 -3
- package/dist/types/lib/matrix-table/matrix-execution-context.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-query-transport.d.ts +4 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +105 -4
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +43 -2
- package/dist/types/lib/matrix-table/use-matrix.d.ts +6 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +5 -1
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +0 -1
- package/dist/types/lib/query-context/build-global-date-comparison-context.d.ts +1 -2
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +1 -2
- package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +10 -0
- package/dist/types/lib/query-context/query-auth-scope.d.ts +5 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +9 -4
- package/dist/types/lib/temporal-filter/temporal-filter-utils.d.ts +9 -2
- package/dist/types/lib/types/common-types.d.ts +5 -0
- package/dist/types/lib/types/explorer-types.d.ts +14 -0
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/lib/utils/card-definition.d.ts +1 -1
- package/dist/types/lib/utils/date-timezone-utils.d.ts +4 -46
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +8 -2
- package/dist/types/lib/utils/inline-filter-utils.d.ts +3 -2
- package/dist/types/lib/utils/relative-date-description.d.ts +38 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +10 -7
- package/dist/types/shared/analytics-protocol/index.d.ts +12 -1
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +51 -5
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +9 -3
- package/dist/types/shared/analytics-protocol/operation-temporal-state.d.ts +64 -0
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +61 -0
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +20 -0
- package/dist/types/shared/analytics-protocol/runtime-schemas.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +314 -0
- package/dist/types/shared/analytics-protocol/time-window.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/exporters/csv-utils.d.ts +46 -15
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -3
- package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +2 -1
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +2 -2
- package/dist/types/shared/format-utils/types/format-types.d.ts +0 -42
- package/dist/types/shared/temporal/calendar-periods.d.ts +56 -0
- package/dist/types/shared/temporal/index.d.ts +5 -0
- package/dist/types/shared/temporal/relative-date.d.ts +21 -0
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +73 -0
- package/dist/types/shared/temporal/time-window-periods.d.ts +21 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +23 -0
- package/package.json +1 -17
- package/src/data-app-sdk/README.md +6 -3
- package/dist/chunks/code-highlight-994tgM9v.js +0 -22265
- package/dist/chunks/dashboard-CsHvEtjN.js +0 -15
- package/dist/chunks/dashboard-date-comparison-definition-BqNhECUr.js +0 -183
- package/dist/chunks/matrix-formatter-WBgtebUT.js +0 -341
- package/dist/chunks/matrix-operation-contract-D32U2CSw.js +0 -1802
- package/dist/chunks/mouse-pointer-2-BZvGk45-.js +0 -19
- package/dist/chunks/pivot-header-presentation-CGtudHo7.js +0 -661
- package/dist/chunks/pre-block-Cq1RqhZX.js +0 -3987
- package/dist/chunks/search-CJz-QQ0Q.js +0 -24
- package/dist/chunks/switch-XaAACBrJ.js +0 -2234
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +0 -222
- package/dist/chunks/update-policy-DhAUtiC8.js +0 -913
- package/dist/data-app-builder/index.js +0 -3666
- package/dist/data-app-builder-browser-runtime/index.js +0 -8
- package/dist/data-app-codegen/index.js +0 -22
- package/dist/data-app-codegen-node/index.js +0 -1807
- package/dist/types/components/data-app-runtime/published-data-app-runtime.d.ts +0 -7
- package/dist/types/components/surfboard/json-to-csv.d.ts +0 -7
- package/dist/types/components/visual/data-table/utils/export-utils.d.ts +0 -31
- package/dist/types/data-app-builder/browser-runtime.d.ts +0 -174
- package/dist/types/data-app-builder/constants.d.ts +0 -14
- package/dist/types/data-app-builder/data-app-builder.d.ts +0 -14
- package/dist/types/data-app-builder/index.d.ts +0 -1
- package/dist/types/data-app-builder/lib/api.d.ts +0 -36
- package/dist/types/data-app-builder/lib/context-select.d.ts +0 -3
- package/dist/types/data-app-builder/lib/diagnostics.d.ts +0 -12
- package/dist/types/data-app-builder/lib/file-tree.d.ts +0 -2
- package/dist/types/data-app-builder/types.d.ts +0 -558
- package/dist/types/data-app-builder-browser-runtime.d.ts +0 -2
- package/dist/types/data-app-builder.d.ts +0 -2
- package/dist/types/data-app-codegen/generate-contract.d.ts +0 -26
- package/dist/types/data-app-codegen/generated-contract-files.d.ts +0 -7
- package/dist/types/data-app-codegen/generated-contract-validation.d.ts +0 -13
- package/dist/types/data-app-codegen/index.d.ts +0 -6
- package/dist/types/data-app-codegen/live-execution.d.ts +0 -42
- package/dist/types/data-app-codegen/node.d.ts +0 -2
- package/dist/types/data-app-codegen/update-policy.d.ts +0 -25
- package/dist/types/data-app-codegen/validation.d.ts +0 -8
- package/dist/types/data-app-codegen-node.d.ts +0 -2
- package/dist/types/data-app-codegen.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/data-app-codegen-summary.d.ts +0 -418
- package/dist/types/shared/format-utils/exporters/pivot-exporter.d.ts +0 -13
- package/dist/types/shared/format-utils/exporters/table-exporter.d.ts +0 -10
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsxs as B, jsx as p, Fragment as fe } from "react/jsx-runtime";
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import Ue, { useState as pe, useRef as F, useCallback as W, useEffect as Q, forwardRef as ge, useMemo as T, memo as Qe, Suspense as Ye } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ax as $e, ay as oe, az as he, aA as Ge, aB as je, aC as We, aD as Xe, aE as Je, aF as Ze, aG as et, aH as tt, aI as nt, aJ as rt, aK as ot, aL as st, aM as at } from "./semaphor-ready-indicator-D46I_4g7.js";
|
|
5
|
+
import { a4 as Se, a5 as z, a6 as k, c as ve, a7 as it, a2 as L, a3 as ye, C as be, B as lt, a8 as ct, a9 as ut, u as Z, aa as dt, ab as ft, ac as H, ad as mt, ae as Ce, af as pt, ag as gt } from "./switch-_7uBAbYx.js";
|
|
6
6
|
import "./x-CXDkqdur.js";
|
|
7
|
-
import "./validators-
|
|
8
|
-
import "./matrix-operation-contract-
|
|
7
|
+
import "./validators-CQcG0EPN.js";
|
|
8
|
+
import "./matrix-operation-contract-BV02rLhu.js";
|
|
9
|
+
import "zod";
|
|
9
10
|
import "../value-format-preferences/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import "./card-config-utils-9sv4e-Vb.js";
|
|
15
|
-
import { P as St, r as vt, g as yt, a as me, b as ee, n as bt, c as Ct } from "./index-CbjuruKe.js";
|
|
11
|
+
import { u as Ee, r as we, f as Re } from "./editor-action-buttons-G91NQKxU.js";
|
|
12
|
+
import { M as ht } from "./selection-reducer-C7Um5XN-.js";
|
|
13
|
+
import "./card-config-utils-BlIbwkuD.js";
|
|
14
|
+
import { P as St, r as vt, g as yt, a as me, b as ee, n as bt, c as Ct } from "./index-BvJOYbNv.js";
|
|
16
15
|
import { u as Et } from "./appearance-context-DEYtWinQ.js";
|
|
17
|
-
const
|
|
16
|
+
const dn = Ue.memo(function({
|
|
18
17
|
context: t = "editor"
|
|
19
18
|
} = {}) {
|
|
20
19
|
return /* @__PURE__ */ B(
|
|
@@ -24,14 +23,14 @@ const fn = Ue.memo(function({
|
|
|
24
23
|
className: "flex h-full grow flex-col items-center overflow-hidden",
|
|
25
24
|
children: [
|
|
26
25
|
" ",
|
|
27
|
-
/* @__PURE__ */ p(
|
|
26
|
+
/* @__PURE__ */ p($e, { context: t }),
|
|
28
27
|
" "
|
|
29
28
|
]
|
|
30
29
|
}
|
|
31
30
|
);
|
|
32
31
|
});
|
|
33
32
|
var xe = "Toggle", Pe = C.forwardRef((e, t) => {
|
|
34
|
-
const { pressed: o, defaultPressed: r, onPressedChange: s, ...l } = e, [n, a] =
|
|
33
|
+
const { pressed: o, defaultPressed: r, onPressedChange: s, ...l } = e, [n, a] = Se({
|
|
35
34
|
prop: o,
|
|
36
35
|
onChange: s,
|
|
37
36
|
defaultProp: r ?? !1,
|
|
@@ -77,7 +76,7 @@ const wt = it(
|
|
|
77
76
|
De,
|
|
78
77
|
{
|
|
79
78
|
ref: s,
|
|
80
|
-
className:
|
|
79
|
+
className: ve(wt({ variant: t, size: o, className: e })),
|
|
81
80
|
...r
|
|
82
81
|
}
|
|
83
82
|
));
|
|
@@ -118,7 +117,7 @@ function Te({
|
|
|
118
117
|
}
|
|
119
118
|
const xt = 300;
|
|
120
119
|
function Pt({ onExpand: e }, t) {
|
|
121
|
-
const o =
|
|
120
|
+
const o = L((f) => f.card.sql), r = L((f) => f.sqlGen), s = L((f) => f.card), l = Ee(), { setCardSql: n, setSqlGen: a, setRunSql: u } = ye(), g = T(() => l !== s.type ? { ...s, type: l } : s, [s, l]), { queryKey: S } = oe(g), i = he(), c = F(S);
|
|
122
121
|
c.current = S;
|
|
123
122
|
const b = F(r);
|
|
124
123
|
b.current = r;
|
|
@@ -178,9 +177,9 @@ function Pt({ onExpand: e }, t) {
|
|
|
178
177
|
) : null
|
|
179
178
|
] });
|
|
180
179
|
}
|
|
181
|
-
const
|
|
180
|
+
const fn = ge(Pt), Dt = 300;
|
|
182
181
|
function Tt(e, t) {
|
|
183
|
-
const o =
|
|
182
|
+
const o = L((E) => E.card.python), r = L((E) => E.card), s = Ee(), { setCardPython: l, setRunSql: n } = ye(), a = T(() => s !== r.type ? { ...r, type: s } : r, [r, s]), { queryKey: u } = oe(a), g = he(), S = F(u);
|
|
184
183
|
S.current = u;
|
|
185
184
|
const { value: i, onChange: c, flush: b } = Te({
|
|
186
185
|
storeValue: o,
|
|
@@ -210,7 +209,7 @@ function Tt(e, t) {
|
|
|
210
209
|
}
|
|
211
210
|
);
|
|
212
211
|
}
|
|
213
|
-
const
|
|
212
|
+
const mn = ge(Tt), _t = /* @__PURE__ */ new Set([
|
|
214
213
|
"askForMoreInfo",
|
|
215
214
|
"getAvailableChartTypes",
|
|
216
215
|
"getChartSQLSyntax",
|
|
@@ -218,29 +217,29 @@ const pn = ge(Tt), It = /* @__PURE__ */ new Set([
|
|
|
218
217
|
"getTableColumns",
|
|
219
218
|
"getUserSql",
|
|
220
219
|
"validateCardConfigFormat"
|
|
221
|
-
]),
|
|
220
|
+
]), pn = /* @__PURE__ */ new Set([
|
|
222
221
|
"createChartFromSql",
|
|
223
222
|
"createForecast",
|
|
224
223
|
"generateQueryConfig",
|
|
225
224
|
"getChartDataFromCardConfig",
|
|
226
225
|
"getChartDataFromSqlAndPython",
|
|
227
226
|
"getForecastDataFromSqlAndPython"
|
|
228
|
-
]),
|
|
229
|
-
|
|
230
|
-
).join(", "),
|
|
227
|
+
]), gn = Array.from(
|
|
228
|
+
_t
|
|
229
|
+
).join(", "), hn = 3, Sn = "Self-heal", vn = /* @__PURE__ */ new Set([
|
|
231
230
|
"SQL_PARSE_ERROR",
|
|
232
231
|
"SQL_EXPLAIN_ERROR"
|
|
233
232
|
]);
|
|
234
|
-
function
|
|
233
|
+
function It({ card: e }) {
|
|
235
234
|
var ie, le, ce, ue, de;
|
|
236
|
-
const t =
|
|
235
|
+
const t = Ge(), [o, r] = pe({}), { authToken: s } = je(), l = ut(s == null ? void 0 : s.accessToken), { compiledAppearance: n } = Et(), a = T(
|
|
237
236
|
() => We(n),
|
|
238
237
|
[n]
|
|
239
|
-
), u =
|
|
238
|
+
), u = L((m) => m.frame), g = L(
|
|
240
239
|
(m) => m.inlineFilterValuesMap[e.id]
|
|
241
|
-
), S =
|
|
240
|
+
), S = L(
|
|
242
241
|
(m) => m.actions.setCardInlineFilterValue
|
|
243
|
-
), i =
|
|
242
|
+
), i = L(
|
|
244
243
|
(m) => m.actions.removeCardInlineFilterValue
|
|
245
244
|
), c = e, { getCard: b, manifest: E } = Xe(
|
|
246
245
|
((ie = c.customCardPreferences) == null ? void 0 : ie.url) || ""
|
|
@@ -273,35 +272,35 @@ function _t({ card: e }) {
|
|
|
273
272
|
python: "",
|
|
274
273
|
config: void 0,
|
|
275
274
|
queryConfig: void 0
|
|
276
|
-
} : f !== e.type ? { ...e, type: f } : e, [e, f, h]), { data: y, effectiveCardConfig: K } = oe(w), O = Je(), Y = Z((m) => m.dashboard.filters),
|
|
275
|
+
} : f !== e.type ? { ...e, type: f } : e, [e, f, h]), { data: y, effectiveCardConfig: K } = oe(w), O = Je(), Y = Z((m) => m.dashboard.filters), $ = Z((m) => m.filterValues), _ = Z((m) => m.selectedSheetId), R = T(
|
|
277
276
|
() => Ze({
|
|
278
277
|
card: e,
|
|
279
|
-
sheetId:
|
|
278
|
+
sheetId: _ || "",
|
|
280
279
|
inlineFilterValues: g,
|
|
281
280
|
setInlineFilterValue: (m) => S(e.id, m),
|
|
282
281
|
removeInlineFilterValue: (m) => i(e.id, m)
|
|
283
282
|
}),
|
|
284
283
|
[
|
|
285
284
|
e,
|
|
286
|
-
|
|
285
|
+
_,
|
|
287
286
|
g,
|
|
288
287
|
S,
|
|
289
288
|
i
|
|
290
289
|
]
|
|
291
|
-
), { cardFilters:
|
|
290
|
+
), { cardFilters: I, cardFilterValues: M } = T(
|
|
292
291
|
() => et({
|
|
293
292
|
card: e,
|
|
294
293
|
transientContexts: O,
|
|
295
294
|
filters: Y,
|
|
296
|
-
filterValues:
|
|
297
|
-
selectedSheetId:
|
|
295
|
+
filterValues: $,
|
|
296
|
+
selectedSheetId: _
|
|
298
297
|
}),
|
|
299
298
|
[
|
|
300
299
|
e,
|
|
301
300
|
O,
|
|
302
301
|
Y,
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
$,
|
|
303
|
+
_
|
|
305
304
|
]
|
|
306
305
|
), q = W(
|
|
307
306
|
(m, D) => {
|
|
@@ -312,13 +311,13 @@ function _t({ card: e }) {
|
|
|
312
311
|
}));
|
|
313
312
|
},
|
|
314
313
|
[]
|
|
315
|
-
),
|
|
314
|
+
), A = (ce = c.customCardPreferences) == null ? void 0 : ce.componentName, N = A ? b(A) : null, V = tt(
|
|
316
315
|
(ue = c.customCardPreferences) == null ? void 0 : ue.settings,
|
|
317
316
|
c
|
|
318
317
|
), x = T(
|
|
319
318
|
() => Ct(v),
|
|
320
319
|
[v]
|
|
321
|
-
),
|
|
320
|
+
), G = T(
|
|
322
321
|
() => x.map(
|
|
323
322
|
(m, D) => ee(
|
|
324
323
|
m,
|
|
@@ -354,7 +353,7 @@ function _t({ card: e }) {
|
|
|
354
353
|
t
|
|
355
354
|
]
|
|
356
355
|
);
|
|
357
|
-
return
|
|
356
|
+
return A ? /* @__PURE__ */ p("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ B(
|
|
358
357
|
Ye,
|
|
359
358
|
{
|
|
360
359
|
fallback: /* @__PURE__ */ p(fe, {}),
|
|
@@ -374,7 +373,7 @@ function _t({ card: e }) {
|
|
|
374
373
|
data: (y == null ? void 0 : y.records) || [],
|
|
375
374
|
columns: (y == null ? void 0 : y.columns) || [],
|
|
376
375
|
formatTemporalBucketValue: ae,
|
|
377
|
-
filters:
|
|
376
|
+
filters: I,
|
|
378
377
|
filterValues: [
|
|
379
378
|
...M || [],
|
|
380
379
|
...g || []
|
|
@@ -408,12 +407,12 @@ function _t({ card: e }) {
|
|
|
408
407
|
...at({
|
|
409
408
|
configCard: c,
|
|
410
409
|
slotOrderedCards: x,
|
|
411
|
-
slotTypes:
|
|
410
|
+
slotTypes: G,
|
|
412
411
|
multiInputData: o,
|
|
413
412
|
params: l,
|
|
414
413
|
theme: a,
|
|
415
414
|
chartSettings: V,
|
|
416
|
-
filters:
|
|
415
|
+
filters: I,
|
|
417
416
|
filterValues: [
|
|
418
417
|
...M || [],
|
|
419
418
|
...g || []
|
|
@@ -429,8 +428,8 @@ function _t({ card: e }) {
|
|
|
429
428
|
(de = c.customCardPreferences) == null ? void 0 : de.componentName
|
|
430
429
|
) }) : null;
|
|
431
430
|
}
|
|
432
|
-
const
|
|
433
|
-
var
|
|
431
|
+
const yn = Qe(It);
|
|
432
|
+
var _e = ["PageUp", "PageDown"], Ie = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Ne = {
|
|
434
433
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
435
434
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
436
435
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
@@ -456,7 +455,7 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
456
455
|
inverted: b = !1,
|
|
457
456
|
form: E,
|
|
458
457
|
...d
|
|
459
|
-
} = e, h = C.useRef(/* @__PURE__ */ new Set()), v = C.useRef(0), f = n === "horizontal" ?
|
|
458
|
+
} = e, h = C.useRef(/* @__PURE__ */ new Set()), v = C.useRef(0), f = n === "horizontal" ? Lt : At, [w = [], y] = Se({
|
|
460
459
|
prop: S,
|
|
461
460
|
defaultProp: g,
|
|
462
461
|
onChange: (R) => {
|
|
@@ -465,24 +464,24 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
465
464
|
}
|
|
466
465
|
}), K = C.useRef(w);
|
|
467
466
|
function O(R) {
|
|
468
|
-
const
|
|
469
|
-
|
|
467
|
+
const I = qt(w, R);
|
|
468
|
+
_(R, I);
|
|
470
469
|
}
|
|
471
470
|
function Y(R) {
|
|
472
|
-
|
|
471
|
+
_(R, v.current);
|
|
473
472
|
}
|
|
474
|
-
function
|
|
473
|
+
function $() {
|
|
475
474
|
const R = K.current[v.current];
|
|
476
475
|
w[v.current] !== R && c(w);
|
|
477
476
|
}
|
|
478
|
-
function
|
|
479
|
-
const q = Ut(l),
|
|
477
|
+
function _(R, I, { commit: M } = { commit: !1 }) {
|
|
478
|
+
const q = Ut(l), A = Qt(Math.round((R - r) / l) * l + r, q), N = Ce(A, [r, s]);
|
|
480
479
|
y((V = []) => {
|
|
481
|
-
const x = Kt(V, N,
|
|
480
|
+
const x = Kt(V, N, I);
|
|
482
481
|
if (Ht(x, u * l)) {
|
|
483
482
|
v.current = x.indexOf(N);
|
|
484
|
-
const
|
|
485
|
-
return
|
|
483
|
+
const G = String(x) !== String(V);
|
|
484
|
+
return G && M && c(x), G ? x : V;
|
|
486
485
|
} else
|
|
487
486
|
return V;
|
|
488
487
|
});
|
|
@@ -515,13 +514,13 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
515
514
|
inverted: b,
|
|
516
515
|
onSlideStart: a ? void 0 : O,
|
|
517
516
|
onSlideMove: a ? void 0 : Y,
|
|
518
|
-
onSlideEnd: a ? void 0 :
|
|
519
|
-
onHomeKeyDown: () => !a &&
|
|
520
|
-
onEndKeyDown: () => !a &&
|
|
521
|
-
onStepKeyDown: ({ event: R, direction:
|
|
517
|
+
onSlideEnd: a ? void 0 : $,
|
|
518
|
+
onHomeKeyDown: () => !a && _(r, 0, { commit: !0 }),
|
|
519
|
+
onEndKeyDown: () => !a && _(s, w.length - 1, { commit: !0 }),
|
|
520
|
+
onStepKeyDown: ({ event: R, direction: I }) => {
|
|
522
521
|
if (!a) {
|
|
523
|
-
const
|
|
524
|
-
|
|
522
|
+
const A = _e.includes(R.key) || R.shiftKey && Ie.includes(R.key) ? 10 : 1, N = v.current, V = w[N], x = l * A * I;
|
|
523
|
+
_(V + x, N, { commit: !0 });
|
|
525
524
|
}
|
|
526
525
|
}
|
|
527
526
|
}
|
|
@@ -531,12 +530,12 @@ var Ie = ["PageUp", "PageDown"], _e = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
531
530
|
}
|
|
532
531
|
);
|
|
533
532
|
Ve.displayName = U;
|
|
534
|
-
var [
|
|
533
|
+
var [Le, Ae] = Me(U, {
|
|
535
534
|
startEdge: "left",
|
|
536
535
|
endEdge: "right",
|
|
537
536
|
size: "width",
|
|
538
537
|
direction: 1
|
|
539
|
-
}),
|
|
538
|
+
}), Lt = C.forwardRef(
|
|
540
539
|
(e, t) => {
|
|
541
540
|
const {
|
|
542
541
|
min: o,
|
|
@@ -554,7 +553,7 @@ var [Ae, Le] = Me(U, {
|
|
|
554
553
|
return E.current = w, O(f - w.left);
|
|
555
554
|
}
|
|
556
555
|
return /* @__PURE__ */ p(
|
|
557
|
-
|
|
556
|
+
Le,
|
|
558
557
|
{
|
|
559
558
|
scope: e.__scopeSlider,
|
|
560
559
|
startEdge: v ? "left" : "right",
|
|
@@ -592,7 +591,7 @@ var [Ae, Le] = Me(U, {
|
|
|
592
591
|
}
|
|
593
592
|
);
|
|
594
593
|
}
|
|
595
|
-
),
|
|
594
|
+
), At = C.forwardRef(
|
|
596
595
|
(e, t) => {
|
|
597
596
|
const {
|
|
598
597
|
min: o,
|
|
@@ -609,7 +608,7 @@ var [Ae, Le] = Me(U, {
|
|
|
609
608
|
return c.current = h, f(d - h.top);
|
|
610
609
|
}
|
|
611
610
|
return /* @__PURE__ */ p(
|
|
612
|
-
|
|
611
|
+
Le,
|
|
613
612
|
{
|
|
614
613
|
scope: e.__scopeSlider,
|
|
615
614
|
startEdge: b ? "bottom" : "top",
|
|
@@ -664,7 +663,7 @@ var [Ae, Le] = Me(U, {
|
|
|
664
663
|
...g,
|
|
665
664
|
ref: t,
|
|
666
665
|
onKeyDown: k(e.onKeyDown, (i) => {
|
|
667
|
-
i.key === "Home" ? (n(i), i.preventDefault()) : i.key === "End" ? (a(i), i.preventDefault()) :
|
|
666
|
+
i.key === "Home" ? (n(i), i.preventDefault()) : i.key === "End" ? (a(i), i.preventDefault()) : _e.concat(Ie).includes(i.key) && (u(i), i.preventDefault());
|
|
668
667
|
}),
|
|
669
668
|
onPointerDown: k(e.onPointerDown, (i) => {
|
|
670
669
|
const c = i.target;
|
|
@@ -697,7 +696,7 @@ var [Ae, Le] = Me(U, {
|
|
|
697
696
|
Ke.displayName = ke;
|
|
698
697
|
var ne = "SliderRange", Oe = C.forwardRef(
|
|
699
698
|
(e, t) => {
|
|
700
|
-
const { __scopeSlider: o, ...r } = e, s = X(ne, o), l =
|
|
699
|
+
const { __scopeSlider: o, ...r } = e, s = X(ne, o), l = Ae(ne, o), n = C.useRef(null), a = H(t, n), u = s.values.length, g = s.values.map(
|
|
701
700
|
(c) => ze(c, s.min, s.max)
|
|
702
701
|
), S = u > 1 ? Math.min(...g) : 0, i = 100 - Math.max(...g);
|
|
703
702
|
return /* @__PURE__ */ p(
|
|
@@ -727,7 +726,7 @@ var re = "SliderThumb", qe = C.forwardRef(
|
|
|
727
726
|
}
|
|
728
727
|
), Ft = C.forwardRef(
|
|
729
728
|
(e, t) => {
|
|
730
|
-
const { __scopeSlider: o, index: r, name: s, ...l } = e, n = X(re, o), a =
|
|
729
|
+
const { __scopeSlider: o, index: r, name: s, ...l } = e, n = X(re, o), a = Ae(re, o), [u, g] = C.useState(null), S = H(t, (P) => g(P)), i = u ? n.form || !!u.closest("form") : !0, c = pt(u), b = n.values[r], E = b === void 0 ? 0 : ze(b, n.min, n.max), d = Ot(r, n.values.length), h = c == null ? void 0 : c[a.size], v = h ? Bt(h, E, a.direction) : 0;
|
|
731
730
|
return C.useEffect(() => {
|
|
732
731
|
if (u)
|
|
733
732
|
return n.thumbs.add(u), () => {
|
|
@@ -806,7 +805,7 @@ function Kt(e = [], t, o) {
|
|
|
806
805
|
}
|
|
807
806
|
function ze(e, t, o) {
|
|
808
807
|
const l = 100 / (o - t) * (e - t);
|
|
809
|
-
return
|
|
808
|
+
return Ce(l, [0, 100]);
|
|
810
809
|
}
|
|
811
810
|
function Ot(e, t) {
|
|
812
811
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
@@ -844,34 +843,34 @@ function Qt(e, t) {
|
|
|
844
843
|
const o = Math.pow(10, t);
|
|
845
844
|
return Math.round(e * o) / o;
|
|
846
845
|
}
|
|
847
|
-
var He = Ve, Yt = Ke,
|
|
846
|
+
var He = Ve, Yt = Ke, $t = Oe, Gt = qe;
|
|
848
847
|
const jt = C.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ B(
|
|
849
848
|
He,
|
|
850
849
|
{
|
|
851
850
|
ref: o,
|
|
852
|
-
className:
|
|
851
|
+
className: ve(
|
|
853
852
|
"relative flex w-full touch-none select-none items-center",
|
|
854
853
|
e
|
|
855
854
|
),
|
|
856
855
|
...t,
|
|
857
856
|
children: [
|
|
858
|
-
/* @__PURE__ */ p(Yt, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ p(
|
|
859
|
-
/* @__PURE__ */ p(
|
|
857
|
+
/* @__PURE__ */ p(Yt, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ p($t, { className: "absolute h-full bg-primary" }) }),
|
|
858
|
+
/* @__PURE__ */ p(Gt, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
|
|
860
859
|
]
|
|
861
860
|
}
|
|
862
861
|
));
|
|
863
862
|
jt.displayName = He.displayName;
|
|
864
863
|
export {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
864
|
+
yn as E,
|
|
865
|
+
dn as F,
|
|
866
|
+
gn as I,
|
|
867
|
+
hn as M,
|
|
868
|
+
mn as P,
|
|
869
|
+
vn as R,
|
|
870
|
+
Sn as S,
|
|
872
871
|
Rt as T,
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
872
|
+
pn as a,
|
|
873
|
+
_t as b,
|
|
874
|
+
fn as c,
|
|
876
875
|
jt as d
|
|
877
876
|
};
|
package/dist/chunks/{source-entity-resolution-Bzefiive.js → source-entity-resolution-Bde29mqE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as K } from "./validators-CQcG0EPN.js";
|
|
2
2
|
function p(e) {
|
|
3
3
|
const i = V(e);
|
|
4
4
|
return i.length > 0 ? i.join(".") : void 0;
|
|
@@ -11,7 +11,7 @@ function Q(e) {
|
|
|
11
11
|
const a = {};
|
|
12
12
|
let s = t.length - 1;
|
|
13
13
|
for (let r = e.capabilities.prefixLevels.length - 1; r >= 0 && s >= 0; r -= 1, s -= 1)
|
|
14
|
-
|
|
14
|
+
Y(
|
|
15
15
|
a,
|
|
16
16
|
e.capabilities.prefixLevels[r],
|
|
17
17
|
t[s]
|
|
@@ -30,7 +30,7 @@ function pe(e) {
|
|
|
30
30
|
return t ? I(e.allowed, i) === t : !0;
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function X(e, i = {}) {
|
|
34
34
|
const t = j(e), a = {
|
|
35
35
|
connectionId: i.connectionId,
|
|
36
36
|
connectionType: e,
|
|
@@ -118,7 +118,7 @@ function K(e, i = {}) {
|
|
|
118
118
|
function v(e, i = {}) {
|
|
119
119
|
return M(
|
|
120
120
|
e
|
|
121
|
-
) ?
|
|
121
|
+
) ? X(e, i) : void 0;
|
|
122
122
|
}
|
|
123
123
|
function M(e) {
|
|
124
124
|
const i = j(e);
|
|
@@ -165,7 +165,7 @@ function ke(e) {
|
|
|
165
165
|
function I(e, i) {
|
|
166
166
|
return i === "database" ? e.databaseName : i === "schema" ? e.schemaName : e.tableName;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Y(e, i, t) {
|
|
169
169
|
i === "database" ? e.databaseName = t : i === "schema" ? e.schemaName = t : e.tableName = t;
|
|
170
170
|
}
|
|
171
171
|
const Z = [
|
|
@@ -299,7 +299,7 @@ function ae(e) {
|
|
|
299
299
|
capabilityAuthority: u
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
const d =
|
|
302
|
+
const d = J([
|
|
303
303
|
...e.bareHints || [],
|
|
304
304
|
...r.bareHints,
|
|
305
305
|
o == null ? void 0 : o.tableName
|
|
@@ -523,14 +523,14 @@ function de(e, i) {
|
|
|
523
523
|
)
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function J(e) {
|
|
527
527
|
return new Set(
|
|
528
528
|
e.map(f).map(p).filter((i) => !!i)
|
|
529
529
|
);
|
|
530
530
|
}
|
|
531
531
|
function ue(e) {
|
|
532
532
|
const i = w(e);
|
|
533
|
-
return i ?
|
|
533
|
+
return i ? J([
|
|
534
534
|
f(i.name),
|
|
535
535
|
f(i.table),
|
|
536
536
|
f(i.id)
|
|
@@ -563,7 +563,7 @@ function me(e) {
|
|
|
563
563
|
const i = C(e);
|
|
564
564
|
return !!(i && i.type === "dataset" && l(i.name));
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function U(e) {
|
|
567
567
|
const i = C(e);
|
|
568
568
|
return !!(i && i.type === "dataset" && i.datasetType !== "physical" && l(i.name));
|
|
569
569
|
}
|
|
@@ -589,7 +589,7 @@ function $(e) {
|
|
|
589
589
|
function D(e, i) {
|
|
590
590
|
const t = C(i), a = l(t == null ? void 0 : t.domainId) || l(e.semanticDomainId), s = l(t == null ? void 0 : t.name);
|
|
591
591
|
if (!a || !s) return;
|
|
592
|
-
const r = (t == null ? void 0 : t.datasetType) === "physical" ? void 0 :
|
|
592
|
+
const r = (t == null ? void 0 : t.datasetType) === "physical" ? void 0 : K(t || {}), o = l(t == null ? void 0 : t.connectionId) || l(e.connectionId);
|
|
593
593
|
return {
|
|
594
594
|
kind: "semantic",
|
|
595
595
|
domainId: a,
|
|
@@ -603,7 +603,7 @@ function be(e, i = {}) {
|
|
|
603
603
|
if (t && t !== "dataset")
|
|
604
604
|
return { kind: "unqualified" };
|
|
605
605
|
const a = e.entities.filter(
|
|
606
|
-
(o) => i.includePhysicalDatasets ? me(o) :
|
|
606
|
+
(o) => i.includePhysicalDatasets ? me(o) : U(o)
|
|
607
607
|
), s = l(e.entityId);
|
|
608
608
|
if (s) {
|
|
609
609
|
const o = $(s), n = a.filter((d) => {
|
|
@@ -692,7 +692,7 @@ function Ie(e) {
|
|
|
692
692
|
const i = e.entities.filter(
|
|
693
693
|
W
|
|
694
694
|
), t = e.entities.filter(
|
|
695
|
-
|
|
695
|
+
U
|
|
696
696
|
), a = i.length > 0 || t.length > 0, s = be(e), r = e.qualifiedHints || [], o = r.some(
|
|
697
697
|
(c) => {
|
|
698
698
|
var u;
|
|
@@ -775,21 +775,21 @@ function Ie(e) {
|
|
|
775
775
|
}
|
|
776
776
|
export {
|
|
777
777
|
pe as a,
|
|
778
|
-
|
|
778
|
+
v as b,
|
|
779
779
|
p as c,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
780
|
+
M as d,
|
|
781
|
+
ve as e,
|
|
782
|
+
ke as f,
|
|
783
|
+
X as g,
|
|
784
|
+
ge as h,
|
|
785
|
+
O as i,
|
|
786
|
+
Ne as j,
|
|
787
|
+
W as k,
|
|
788
|
+
ae as l,
|
|
789
|
+
U as m,
|
|
790
790
|
z as n,
|
|
791
|
-
|
|
791
|
+
be as o,
|
|
792
792
|
Q as p,
|
|
793
|
-
|
|
793
|
+
Ie as r,
|
|
794
794
|
P as s
|
|
795
795
|
};
|