@trops/dash-core 0.1.304 → 0.1.305
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 +15 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +63 -73
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8507,10 +8507,10 @@ var syntax = SyntaxError;
|
|
|
8507
8507
|
var type = TypeError;
|
|
8508
8508
|
|
|
8509
8509
|
/** @type {import('./gOPD')} */
|
|
8510
|
-
var gOPD$
|
|
8510
|
+
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
8511
8511
|
|
|
8512
8512
|
/** @type {import('.')} */
|
|
8513
|
-
var $gOPD$2 = gOPD$
|
|
8513
|
+
var $gOPD$2 = gOPD$6;
|
|
8514
8514
|
|
|
8515
8515
|
if ($gOPD$2) {
|
|
8516
8516
|
try {
|
|
@@ -8645,7 +8645,7 @@ defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
|
8645
8645
|
|
|
8646
8646
|
var defineProperties_1 = defineProperties$1;
|
|
8647
8647
|
|
|
8648
|
-
var callBind$
|
|
8648
|
+
var callBind$7 = {exports: {}};
|
|
8649
8649
|
|
|
8650
8650
|
/** @type {import('.')} */
|
|
8651
8651
|
var esObjectAtoms = Object;
|
|
@@ -8945,78 +8945,60 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
8945
8945
|
return $actualApply(bind$3, $call$1, args);
|
|
8946
8946
|
};
|
|
8947
8947
|
|
|
8948
|
-
var
|
|
8949
|
-
var
|
|
8948
|
+
var callBind$6 = callBindApplyHelpers;
|
|
8949
|
+
var gOPD$5 = gopd$1;
|
|
8950
8950
|
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
var hasProtoAccessor;
|
|
8959
|
-
try {
|
|
8960
|
-
// eslint-disable-next-line no-extra-parens, no-proto
|
|
8961
|
-
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
8962
|
-
} catch (e) {
|
|
8963
|
-
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
8964
|
-
throw e;
|
|
8965
|
-
}
|
|
8951
|
+
var hasProtoAccessor;
|
|
8952
|
+
try {
|
|
8953
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
8954
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
8955
|
+
} catch (e) {
|
|
8956
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
8957
|
+
throw e;
|
|
8966
8958
|
}
|
|
8967
|
-
|
|
8968
|
-
// eslint-disable-next-line no-extra-parens
|
|
8969
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
8970
|
-
|
|
8971
|
-
var $Object = Object;
|
|
8972
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
8973
|
-
|
|
8974
|
-
/** @type {import('./get')} */
|
|
8975
|
-
get = desc && typeof desc.get === 'function'
|
|
8976
|
-
? callBind([desc.get])
|
|
8977
|
-
: typeof $getPrototypeOf === 'function'
|
|
8978
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
8979
|
-
// eslint-disable-next-line eqeqeq
|
|
8980
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
8981
|
-
}
|
|
8982
|
-
: false;
|
|
8983
|
-
return get;
|
|
8984
8959
|
}
|
|
8985
8960
|
|
|
8986
|
-
|
|
8987
|
-
var
|
|
8961
|
+
// eslint-disable-next-line no-extra-parens
|
|
8962
|
+
var desc = !!hasProtoAccessor && gOPD$5 && gOPD$5(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
8988
8963
|
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
hasRequiredGetProto = 1;
|
|
8964
|
+
var $Object$3 = Object;
|
|
8965
|
+
var $getPrototypeOf = $Object$3.getPrototypeOf;
|
|
8992
8966
|
|
|
8993
|
-
|
|
8994
|
-
|
|
8967
|
+
/** @type {import('./get')} */
|
|
8968
|
+
var get = desc && typeof desc.get === 'function'
|
|
8969
|
+
? callBind$6([desc.get])
|
|
8970
|
+
: typeof $getPrototypeOf === 'function'
|
|
8971
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
8972
|
+
// eslint-disable-next-line eqeqeq
|
|
8973
|
+
return $getPrototypeOf(value == null ? value : $Object$3(value));
|
|
8974
|
+
}
|
|
8975
|
+
: false;
|
|
8995
8976
|
|
|
8996
|
-
|
|
8977
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
8978
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
8997
8979
|
|
|
8998
|
-
|
|
8999
|
-
|
|
8980
|
+
var getDunderProto = get;
|
|
8981
|
+
|
|
8982
|
+
/** @type {import('.')} */
|
|
8983
|
+
var getProto$3 = reflectGetProto
|
|
8984
|
+
? function getProto(O) {
|
|
8985
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
8986
|
+
return reflectGetProto(O);
|
|
8987
|
+
}
|
|
8988
|
+
: originalGetProto
|
|
9000
8989
|
? function getProto(O) {
|
|
8990
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
8991
|
+
throw new TypeError('getProto: not an object');
|
|
8992
|
+
}
|
|
9001
8993
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9002
|
-
return
|
|
8994
|
+
return originalGetProto(O);
|
|
9003
8995
|
}
|
|
9004
|
-
:
|
|
8996
|
+
: getDunderProto
|
|
9005
8997
|
? function getProto(O) {
|
|
9006
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
9007
|
-
throw new TypeError('getProto: not an object');
|
|
9008
|
-
}
|
|
9009
8998
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9010
|
-
return
|
|
8999
|
+
return getDunderProto(O);
|
|
9011
9000
|
}
|
|
9012
|
-
:
|
|
9013
|
-
? function getProto(O) {
|
|
9014
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
9015
|
-
return getDunderProto(O);
|
|
9016
|
-
}
|
|
9017
|
-
: null;
|
|
9018
|
-
return getProto$3;
|
|
9019
|
-
}
|
|
9001
|
+
: null;
|
|
9020
9002
|
|
|
9021
9003
|
var call = Function.prototype.call;
|
|
9022
9004
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -9079,7 +9061,7 @@ var ThrowTypeError = $gOPD$1
|
|
|
9079
9061
|
|
|
9080
9062
|
var hasSymbols$3 = hasSymbols$4();
|
|
9081
9063
|
|
|
9082
|
-
var getProto$2 =
|
|
9064
|
+
var getProto$2 = getProto$3;
|
|
9083
9065
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
9084
9066
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
9085
9067
|
|
|
@@ -9476,9 +9458,9 @@ var applyBind = function applyBind() {
|
|
|
9476
9458
|
} else {
|
|
9477
9459
|
module.exports.apply = applyBind$1;
|
|
9478
9460
|
}
|
|
9479
|
-
} (callBind$
|
|
9461
|
+
} (callBind$7));
|
|
9480
9462
|
|
|
9481
|
-
var callBindExports = callBind$
|
|
9463
|
+
var callBindExports = callBind$7.exports;
|
|
9482
9464
|
|
|
9483
9465
|
var GetIntrinsic$7 = getIntrinsic;
|
|
9484
9466
|
|
|
@@ -9777,7 +9759,7 @@ var getPolyfill$3 = polyfill$2;
|
|
|
9777
9759
|
var gOPD$2 = gopd$1;
|
|
9778
9760
|
var defineProperty = Object.defineProperty;
|
|
9779
9761
|
var $TypeError$5 = esErrors;
|
|
9780
|
-
var getProto$1 =
|
|
9762
|
+
var getProto$1 = getProto$3;
|
|
9781
9763
|
var regex = /a/;
|
|
9782
9764
|
|
|
9783
9765
|
var shim$3 = function shimFlags() {
|
|
@@ -11893,7 +11875,7 @@ var availableTypedArrays = availableTypedArrays$1;
|
|
|
11893
11875
|
var callBind = callBindExports;
|
|
11894
11876
|
var callBound$2 = callBound$i;
|
|
11895
11877
|
var gOPD = gopd$1;
|
|
11896
|
-
var getProto =
|
|
11878
|
+
var getProto = getProto$3;
|
|
11897
11879
|
|
|
11898
11880
|
var $toString = callBound$2('Object.prototype.toString');
|
|
11899
11881
|
var hasToStringTag = shams();
|
|
@@ -18623,18 +18605,26 @@ var WidgetCardHeader = function WidgetCardHeader(_ref) {
|
|
|
18623
18605
|
children: [/*#__PURE__*/jsxRuntime.jsxs(DashReact.DropdownPanel.Header, {
|
|
18624
18606
|
children: ["Select ", providerType]
|
|
18625
18607
|
}), availableProviders.map(function (provider) {
|
|
18608
|
+
var isSelected = provider.id === selectedProviderId;
|
|
18626
18609
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.MenuItem2, {
|
|
18627
18610
|
onClick: function onClick() {
|
|
18628
18611
|
return handleProviderSelect(providerType, provider.id);
|
|
18629
18612
|
},
|
|
18630
|
-
selected:
|
|
18613
|
+
selected: isSelected,
|
|
18631
18614
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18615
|
+
className: "flex items-center gap-2 w-full",
|
|
18616
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
18617
|
+
className: "w-4 text-center text-xs flex-shrink-0 ".concat(isSelected ? "text-green-400" : "opacity-0"),
|
|
18618
|
+
children: "\u2713"
|
|
18619
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
18620
|
+
className: "flex-1 min-w-0",
|
|
18621
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18622
|
+
className: "font-medium",
|
|
18623
|
+
children: provider.name
|
|
18624
|
+
}), provider.description && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18625
|
+
className: "text-xs opacity-60 mt-0.5",
|
|
18626
|
+
children: provider.description
|
|
18627
|
+
})]
|
|
18638
18628
|
})]
|
|
18639
18629
|
})
|
|
18640
18630
|
}, provider.id);
|