@trops/dash-core 0.1.229 → 0.1.230
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.esm.js +11 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +59 -77
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7750,10 +7750,10 @@ var syntax = SyntaxError;
|
|
|
7750
7750
|
var type = TypeError;
|
|
7751
7751
|
|
|
7752
7752
|
/** @type {import('./gOPD')} */
|
|
7753
|
-
var gOPD$
|
|
7753
|
+
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
7754
7754
|
|
|
7755
7755
|
/** @type {import('.')} */
|
|
7756
|
-
var $gOPD$2 = gOPD$
|
|
7756
|
+
var $gOPD$2 = gOPD$6;
|
|
7757
7757
|
|
|
7758
7758
|
if ($gOPD$2) {
|
|
7759
7759
|
try {
|
|
@@ -7888,7 +7888,7 @@ defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
|
7888
7888
|
|
|
7889
7889
|
var defineProperties_1 = defineProperties$1;
|
|
7890
7890
|
|
|
7891
|
-
var callBind$
|
|
7891
|
+
var callBind$7 = {exports: {}};
|
|
7892
7892
|
|
|
7893
7893
|
/** @type {import('.')} */
|
|
7894
7894
|
var esObjectAtoms = Object;
|
|
@@ -8188,78 +8188,60 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
8188
8188
|
return $actualApply(bind$3, $call$1, args);
|
|
8189
8189
|
};
|
|
8190
8190
|
|
|
8191
|
-
var
|
|
8192
|
-
var
|
|
8191
|
+
var callBind$6 = callBindApplyHelpers;
|
|
8192
|
+
var gOPD$5 = gopd$1;
|
|
8193
8193
|
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
var hasProtoAccessor;
|
|
8202
|
-
try {
|
|
8203
|
-
// eslint-disable-next-line no-extra-parens, no-proto
|
|
8204
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
8205
|
-
} catch (e) {
|
|
8206
|
-
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
8207
|
-
throw e;
|
|
8208
|
-
}
|
|
8194
|
+
var hasProtoAccessor;
|
|
8195
|
+
try {
|
|
8196
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
8197
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
8198
|
+
} catch (e) {
|
|
8199
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
8200
|
+
throw e;
|
|
8209
8201
|
}
|
|
8210
|
-
|
|
8211
|
-
// eslint-disable-next-line no-extra-parens
|
|
8212
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
8213
|
-
|
|
8214
|
-
var $Object = Object;
|
|
8215
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
8216
|
-
|
|
8217
|
-
/** @type {import('./get')} */
|
|
8218
|
-
get = desc && typeof desc.get === 'function'
|
|
8219
|
-
? callBind([desc.get])
|
|
8220
|
-
: typeof $getPrototypeOf === 'function'
|
|
8221
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
8222
|
-
// eslint-disable-next-line eqeqeq
|
|
8223
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
8224
|
-
}
|
|
8225
|
-
: false;
|
|
8226
|
-
return get;
|
|
8227
8202
|
}
|
|
8228
8203
|
|
|
8229
|
-
|
|
8230
|
-
var
|
|
8204
|
+
// eslint-disable-next-line no-extra-parens
|
|
8205
|
+
var desc = !!hasProtoAccessor && gOPD$5 && gOPD$5(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
8206
|
+
|
|
8207
|
+
var $Object$3 = Object;
|
|
8208
|
+
var $getPrototypeOf = $Object$3.getPrototypeOf;
|
|
8231
8209
|
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8210
|
+
/** @type {import('./get')} */
|
|
8211
|
+
var get = desc && typeof desc.get === 'function'
|
|
8212
|
+
? callBind$6([desc.get])
|
|
8213
|
+
: typeof $getPrototypeOf === 'function'
|
|
8214
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
8215
|
+
// eslint-disable-next-line eqeqeq
|
|
8216
|
+
return $getPrototypeOf(value == null ? value : $Object$3(value));
|
|
8217
|
+
}
|
|
8218
|
+
: false;
|
|
8235
8219
|
|
|
8236
|
-
|
|
8237
|
-
|
|
8220
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
8221
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
8238
8222
|
|
|
8239
|
-
|
|
8223
|
+
var getDunderProto = get;
|
|
8240
8224
|
|
|
8241
|
-
|
|
8242
|
-
|
|
8225
|
+
/** @type {import('.')} */
|
|
8226
|
+
var getProto$3 = reflectGetProto
|
|
8227
|
+
? function getProto(O) {
|
|
8228
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8229
|
+
return reflectGetProto(O);
|
|
8230
|
+
}
|
|
8231
|
+
: originalGetProto
|
|
8243
8232
|
? function getProto(O) {
|
|
8233
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
8234
|
+
throw new TypeError('getProto: not an object');
|
|
8235
|
+
}
|
|
8244
8236
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8245
|
-
return
|
|
8237
|
+
return originalGetProto(O);
|
|
8246
8238
|
}
|
|
8247
|
-
:
|
|
8239
|
+
: getDunderProto
|
|
8248
8240
|
? function getProto(O) {
|
|
8249
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
8250
|
-
throw new TypeError('getProto: not an object');
|
|
8251
|
-
}
|
|
8252
8241
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8253
|
-
return
|
|
8242
|
+
return getDunderProto(O);
|
|
8254
8243
|
}
|
|
8255
|
-
:
|
|
8256
|
-
? function getProto(O) {
|
|
8257
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8258
|
-
return getDunderProto(O);
|
|
8259
|
-
}
|
|
8260
|
-
: null;
|
|
8261
|
-
return getProto$3;
|
|
8262
|
-
}
|
|
8244
|
+
: null;
|
|
8263
8245
|
|
|
8264
8246
|
var call = Function.prototype.call;
|
|
8265
8247
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -8322,7 +8304,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
8322
8304
|
|
|
8323
8305
|
var hasSymbols$3 = hasSymbols$4();
|
|
8324
8306
|
|
|
8325
|
-
var getProto$2 =
|
|
8307
|
+
var getProto$2 = getProto$3;
|
|
8326
8308
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
8327
8309
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
8328
8310
|
|
|
@@ -8719,9 +8701,9 @@ var applyBind = function applyBind() {
|
|
|
8719
8701
|
} else {
|
|
8720
8702
|
module.exports.apply = applyBind$1;
|
|
8721
8703
|
}
|
|
8722
|
-
} (callBind$
|
|
8704
|
+
} (callBind$7));
|
|
8723
8705
|
|
|
8724
|
-
var callBindExports = callBind$
|
|
8706
|
+
var callBindExports = callBind$7.exports;
|
|
8725
8707
|
|
|
8726
8708
|
var GetIntrinsic$7 = getIntrinsic;
|
|
8727
8709
|
|
|
@@ -9020,7 +9002,7 @@ var getPolyfill$3 = polyfill$2;
|
|
|
9020
9002
|
var gOPD$2 = gopd$1;
|
|
9021
9003
|
var defineProperty = Object.defineProperty;
|
|
9022
9004
|
var $TypeError$5 = esErrors;
|
|
9023
|
-
var getProto$1 =
|
|
9005
|
+
var getProto$1 = getProto$3;
|
|
9024
9006
|
var regex = /a/;
|
|
9025
9007
|
|
|
9026
9008
|
var shim$3 = function shimFlags() {
|
|
@@ -11136,7 +11118,7 @@ var availableTypedArrays = availableTypedArrays$1;
|
|
|
11136
11118
|
var callBind = callBindExports;
|
|
11137
11119
|
var callBound$2 = callBound$i;
|
|
11138
11120
|
var gOPD = gopd$1;
|
|
11139
|
-
var getProto =
|
|
11121
|
+
var getProto = getProto$3;
|
|
11140
11122
|
|
|
11141
11123
|
var $toString = callBound$2('Object.prototype.toString');
|
|
11142
11124
|
var hasToStringTag = shams();
|
|
@@ -37922,9 +37904,9 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37922
37904
|
className: "flex flex-col h-full",
|
|
37923
37905
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
37924
37906
|
className: "flex-shrink-0 flex flex-col gap-2 px-3 py-2 ".concat(headerStyles.backgroundColor || ""),
|
|
37925
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
37907
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
37926
37908
|
className: "flex items-center gap-2",
|
|
37927
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37909
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37928
37910
|
className: "flex-1",
|
|
37929
37911
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.SearchInput, {
|
|
37930
37912
|
value: searchQuery,
|
|
@@ -37932,7 +37914,15 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37932
37914
|
placeholder: "Search dashboards...",
|
|
37933
37915
|
inputClassName: "py-1.5 text-xs"
|
|
37934
37916
|
})
|
|
37935
|
-
})
|
|
37917
|
+
}), onOpenWizard && /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
37918
|
+
onClick: onOpenWizard,
|
|
37919
|
+
className: "flex-shrink-0 p-1.5 rounded opacity-60 hover:opacity-100 transition-opacity",
|
|
37920
|
+
title: "Dashboard Wizard",
|
|
37921
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
37922
|
+
icon: "wand-magic-sparkles",
|
|
37923
|
+
className: "h-3.5 w-3.5"
|
|
37924
|
+
})
|
|
37925
|
+
})]
|
|
37936
37926
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Tabs3, {
|
|
37937
37927
|
value: installMode === "marketplace" ? "marketplace" : viewMode,
|
|
37938
37928
|
onValueChange: function onValueChange(val) {
|
|
@@ -37961,14 +37951,6 @@ var DashboardsSection = function DashboardsSection(_ref) {
|
|
|
37961
37951
|
value: "marketplace",
|
|
37962
37952
|
className: "flex-1",
|
|
37963
37953
|
children: "Marketplace"
|
|
37964
|
-
}), onOpenWizard && /*#__PURE__*/jsxRuntime.jsx(DashReact.Tabs3.Trigger, {
|
|
37965
|
-
value: "wizard",
|
|
37966
|
-
className: "flex-1",
|
|
37967
|
-
onClick: function onClick(e) {
|
|
37968
|
-
e.preventDefault();
|
|
37969
|
-
onOpenWizard();
|
|
37970
|
-
},
|
|
37971
|
-
children: "Wizard"
|
|
37972
37954
|
})]
|
|
37973
37955
|
})
|
|
37974
37956
|
})]
|