@darajs/core 1.9.4 → 1.9.5
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.
|
Binary file
|
|
@@ -15588,7 +15588,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
15588
15588
|
var allProps = _objectSpread2$1(_objectSpread2$1({}, defaultProps$5), props);
|
|
15589
15589
|
var iconArgs = allProps.icon, maskArgs = allProps.mask, symbol = allProps.symbol, className = allProps.className, title = allProps.title, titleId = allProps.titleId, maskId = allProps.maskId;
|
|
15590
15590
|
var iconLookup = normalizeIconArgs(iconArgs);
|
|
15591
|
-
var classes = objectWithKey("classes", [].concat(_toConsumableArray$2(classList(allProps)), _toConsumableArray$2(className.split(" "))));
|
|
15591
|
+
var classes = objectWithKey("classes", [].concat(_toConsumableArray$2(classList(allProps)), _toConsumableArray$2((className || "").split(" "))));
|
|
15592
15592
|
var transform = objectWithKey("transform", typeof allProps.transform === "string" ? parse$1$1.transform(allProps.transform) : allProps.transform);
|
|
15593
15593
|
var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
|
|
15594
15594
|
var renderedIcon = icon(iconLookup, _objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, classes), transform), mask), {}, {
|
|
@@ -15881,10 +15881,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
15881
15881
|
color: ${(props) => props.theme.colors.grey5};
|
|
15882
15882
|
transition: transform 0.1s linear;
|
|
15883
15883
|
`;
|
|
15884
|
-
|
|
15885
|
-
|
|
15886
|
-
}
|
|
15887
|
-
const Chevron$2 = React__namespace.forwardRef(Chevron$1);
|
|
15884
|
+
const Chevron$1 = React__namespace.forwardRef((props, ref) => jsxRuntime.exports.jsx(Icon$2, { angles: props.angles, className: props.className, disabled: props.disabled, isOpen: props.isOpen, onClick: props.onClick, ref, style: props.style }));
|
|
15885
|
+
const Chevron$2 = React__namespace.memo(Chevron$1);
|
|
15888
15886
|
styled__default.default.label`
|
|
15889
15887
|
margin-bottom: 0;
|
|
15890
15888
|
font-size: 11px;
|
|
@@ -15901,33 +15899,18 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
15901
15899
|
|
|
15902
15900
|
border: 1px solid ${(props) => props.theme.colors.grey3};
|
|
15903
15901
|
`;
|
|
15904
|
-
const
|
|
15905
|
-
|
|
15906
|
-
|
|
15907
|
-
|
|
15908
|
-
|
|
15902
|
+
const NoItemsLabel = styled__default.default.span`
|
|
15903
|
+
display: flex;
|
|
15904
|
+
flex: 1 1 auto;
|
|
15905
|
+
align-items: center;
|
|
15906
|
+
justify-content: center;
|
|
15909
15907
|
|
|
15910
|
-
|
|
15911
|
-
min-height: 2rem;
|
|
15912
|
-
padding: 0.25rem 1rem;
|
|
15908
|
+
height: 2rem;
|
|
15913
15909
|
|
|
15914
|
-
font-size:
|
|
15915
|
-
font-weight: 300;
|
|
15910
|
+
font-size: 1rem;
|
|
15916
15911
|
color: ${(props) => props.theme.colors.text};
|
|
15917
|
-
text-overflow: ellipsis;
|
|
15918
|
-
white-space: nowrap;
|
|
15919
|
-
|
|
15920
|
-
background-color: ${(props) => props.hovered ? props.theme.colors.grey2 : props.theme.colors.blue1};
|
|
15921
|
-
border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
|
|
15922
|
-
|
|
15923
|
-
:active {
|
|
15924
|
-
color: ${(props) => props.theme.colors.blue1};
|
|
15925
|
-
background-color: ${(props) => props.theme.colors.primary};
|
|
15926
|
-
}
|
|
15927
15912
|
|
|
15928
|
-
|
|
15929
|
-
border-bottom: none;
|
|
15930
|
-
}
|
|
15913
|
+
background-color: ${(props) => props.theme.colors.blue1};
|
|
15931
15914
|
`;
|
|
15932
15915
|
globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
15933
15916
|
function adopt(value) {
|
|
@@ -16187,7 +16170,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16187
16170
|
module2.exports = lib.exports;
|
|
16188
16171
|
})(shortid$1);
|
|
16189
16172
|
const shortid = /* @__PURE__ */ getDefaultExportFromCjs(shortid$1.exports);
|
|
16190
|
-
var __awaiter$
|
|
16173
|
+
var __awaiter$2 = globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
16191
16174
|
function adopt(value) {
|
|
16192
16175
|
return value instanceof P ? value : new P(function(resolve) {
|
|
16193
16176
|
resolve(value);
|
|
@@ -16226,7 +16209,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
16226
16209
|
return res.status >= 100 && res.status < 400;
|
|
16227
16210
|
};
|
|
16228
16211
|
function validateResponse(res, fallbackMessage, requestParams) {
|
|
16229
|
-
return __awaiter$
|
|
16212
|
+
return __awaiter$2(this, void 0, void 0, function* () {
|
|
16230
16213
|
if (!isValidResponse(res)) {
|
|
16231
16214
|
let message = fallbackMessage;
|
|
16232
16215
|
try {
|
|
@@ -20155,48 +20138,38 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20155
20138
|
border-radius: ${(props) => props.height ? `${props.height / 2}px` : "1rem"};
|
|
20156
20139
|
`;
|
|
20157
20140
|
function _extends$1() {
|
|
20158
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(
|
|
20159
|
-
for (var
|
|
20160
|
-
var
|
|
20161
|
-
for (var
|
|
20162
|
-
|
|
20163
|
-
target[key] = source[key];
|
|
20164
|
-
}
|
|
20165
|
-
}
|
|
20141
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
20142
|
+
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
20143
|
+
var t2 = arguments[e3];
|
|
20144
|
+
for (var r2 in t2)
|
|
20145
|
+
({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
20166
20146
|
}
|
|
20167
|
-
return
|
|
20168
|
-
};
|
|
20169
|
-
return _extends$1.apply(this, arguments);
|
|
20147
|
+
return n2;
|
|
20148
|
+
}, _extends$1.apply(null, arguments);
|
|
20170
20149
|
}
|
|
20171
|
-
function _assertThisInitialized$4(
|
|
20172
|
-
if (
|
|
20150
|
+
function _assertThisInitialized$4(e3) {
|
|
20151
|
+
if (void 0 === e3)
|
|
20173
20152
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
20174
|
-
|
|
20175
|
-
return self2;
|
|
20153
|
+
return e3;
|
|
20176
20154
|
}
|
|
20177
|
-
function _setPrototypeOf$3(
|
|
20178
|
-
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
};
|
|
20182
|
-
return _setPrototypeOf$3(o2, p2);
|
|
20155
|
+
function _setPrototypeOf$3(t2, e3) {
|
|
20156
|
+
return _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
20157
|
+
return t3.__proto__ = e4, t3;
|
|
20158
|
+
}, _setPrototypeOf$3(t2, e3);
|
|
20183
20159
|
}
|
|
20184
|
-
function _inheritsLoose$1(
|
|
20185
|
-
|
|
20186
|
-
subClass.prototype.constructor = subClass;
|
|
20187
|
-
_setPrototypeOf$3(subClass, superClass);
|
|
20160
|
+
function _inheritsLoose$1(t2, o2) {
|
|
20161
|
+
t2.prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, _setPrototypeOf$3(t2, o2);
|
|
20188
20162
|
}
|
|
20189
|
-
function _getPrototypeOf$3(
|
|
20190
|
-
_getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
20191
|
-
return
|
|
20192
|
-
};
|
|
20193
|
-
return _getPrototypeOf$3(o2);
|
|
20163
|
+
function _getPrototypeOf$3(t2) {
|
|
20164
|
+
return _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t3) {
|
|
20165
|
+
return t3.__proto__ || Object.getPrototypeOf(t3);
|
|
20166
|
+
}, _getPrototypeOf$3(t2);
|
|
20194
20167
|
}
|
|
20195
|
-
function _isNativeFunction$1(
|
|
20168
|
+
function _isNativeFunction$1(t2) {
|
|
20196
20169
|
try {
|
|
20197
|
-
return Function.toString.call(
|
|
20198
|
-
} catch (
|
|
20199
|
-
return
|
|
20170
|
+
return -1 !== Function.toString.call(t2).indexOf("[native code]");
|
|
20171
|
+
} catch (n2) {
|
|
20172
|
+
return "function" == typeof t2;
|
|
20200
20173
|
}
|
|
20201
20174
|
}
|
|
20202
20175
|
function _isNativeReflectConstruct$3() {
|
|
@@ -20217,33 +20190,30 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20217
20190
|
var p2 = new (t2.bind.apply(t2, o2))();
|
|
20218
20191
|
return r2 && _setPrototypeOf$3(p2, r2.prototype), p2;
|
|
20219
20192
|
}
|
|
20220
|
-
function _wrapNativeSuper$1(
|
|
20221
|
-
var
|
|
20222
|
-
_wrapNativeSuper$1 = function _wrapNativeSuper2(
|
|
20223
|
-
if (
|
|
20224
|
-
return
|
|
20225
|
-
if (
|
|
20193
|
+
function _wrapNativeSuper$1(t2) {
|
|
20194
|
+
var r2 = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
|
|
20195
|
+
return _wrapNativeSuper$1 = function _wrapNativeSuper2(t3) {
|
|
20196
|
+
if (null === t3 || !_isNativeFunction$1(t3))
|
|
20197
|
+
return t3;
|
|
20198
|
+
if ("function" != typeof t3)
|
|
20226
20199
|
throw new TypeError("Super expression must either be null or a function");
|
|
20227
|
-
|
|
20228
|
-
|
|
20229
|
-
|
|
20230
|
-
|
|
20231
|
-
_cache.set(Class2, Wrapper2);
|
|
20200
|
+
if (void 0 !== r2) {
|
|
20201
|
+
if (r2.has(t3))
|
|
20202
|
+
return r2.get(t3);
|
|
20203
|
+
r2.set(t3, Wrapper2);
|
|
20232
20204
|
}
|
|
20233
20205
|
function Wrapper2() {
|
|
20234
|
-
return _construct$1(
|
|
20206
|
+
return _construct$1(t3, arguments, _getPrototypeOf$3(this).constructor);
|
|
20235
20207
|
}
|
|
20236
|
-
Wrapper2.prototype = Object.create(
|
|
20208
|
+
return Wrapper2.prototype = Object.create(t3.prototype, {
|
|
20237
20209
|
constructor: {
|
|
20238
20210
|
value: Wrapper2,
|
|
20239
20211
|
enumerable: false,
|
|
20240
20212
|
writable: true,
|
|
20241
20213
|
configurable: true
|
|
20242
20214
|
}
|
|
20243
|
-
});
|
|
20244
|
-
|
|
20245
|
-
};
|
|
20246
|
-
return _wrapNativeSuper$1(Class);
|
|
20215
|
+
}), _setPrototypeOf$3(Wrapper2, t3);
|
|
20216
|
+
}, _wrapNativeSuper$1(t2);
|
|
20247
20217
|
}
|
|
20248
20218
|
var PolishedError$1 = /* @__PURE__ */ function(_Error) {
|
|
20249
20219
|
_inheritsLoose$1(PolishedError2, _Error);
|
|
@@ -20736,7 +20706,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20736
20706
|
var _a;
|
|
20737
20707
|
return jsxRuntime.exports.jsxs(Wrapper$8, { className: props.className, style: props.style, children: [jsxRuntime.exports.jsxs(Loader, { color: props.color, size: props.size, children: [jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" }), jsxRuntime.exports.jsx("div", { className: "sk-chase-dot" })] }), (props.showText || props.text) && jsxRuntime.exports.jsx(LoadingText, { color: props.color, children: (_a = props.text) !== null && _a !== void 0 ? _a : "LOADING" })] });
|
|
20738
20708
|
}
|
|
20739
|
-
var __rest$
|
|
20709
|
+
var __rest$7 = globalThis && globalThis.__rest || function(s, e3) {
|
|
20740
20710
|
var t2 = {};
|
|
20741
20711
|
for (var p2 in s)
|
|
20742
20712
|
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
@@ -20842,7 +20812,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20842
20812
|
secondary: SecondaryButton
|
|
20843
20813
|
};
|
|
20844
20814
|
function Button(_a, ref) {
|
|
20845
|
-
var { autoFocus, children, className, disabled: disabled2, download, href, loading, id, onClick, outline = false, style, styling = "primary", type = "button" } = _a, props = __rest$
|
|
20815
|
+
var { autoFocus, children, className, disabled: disabled2, download, href, loading, id, onClick, outline = false, style, styling = "primary", type = "button" } = _a, props = __rest$7(_a, ["autoFocus", "children", "className", "disabled", "download", "href", "loading", "id", "onClick", "outline", "style", "styling", "type"]);
|
|
20846
20816
|
const currentTheme = useClTheme();
|
|
20847
20817
|
const Component = stylingMap[styling];
|
|
20848
20818
|
const content = loading ? jsxRuntime.exports.jsx(StyledLoading, { color: outline ? currentTheme.colors.grey2 : currentTheme.colors.blue1 }) : children;
|
|
@@ -34182,7 +34152,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34182
34152
|
return jsxRuntime.exports.jsx(CheckboxWrapper, { "aria-disabled": props.disabled, children: jsxRuntime.exports.jsx(Checkbox, { disabled: isSelectPermitted ? props.disabled : ((_a = checkedState.find((option) => option.value === item.value)) === null || _a === void 0 ? void 0 : _a.state) === false, id: index2, isListStyle: props.isListStyle, label: item.label ? item.label : item.value, onChange: (checked, e3) => onChangeValue(e3), selected: (_b = checkedState.find((option) => option.value === item.value)) === null || _b === void 0 ? void 0 : _b.state }) }, `item-${index2}`);
|
|
34183
34153
|
})] });
|
|
34184
34154
|
}
|
|
34185
|
-
var __rest$
|
|
34155
|
+
var __rest$6 = globalThis && globalThis.__rest || function(s, e3) {
|
|
34186
34156
|
var t2 = {};
|
|
34187
34157
|
for (var p2 in s)
|
|
34188
34158
|
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
@@ -34238,7 +34208,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34238
34208
|
color: ${(props) => props.theme.colors.error};
|
|
34239
34209
|
`;
|
|
34240
34210
|
const Input$1 = React.forwardRef((_a, ref) => {
|
|
34241
|
-
var { type = "text" } = _a, props = __rest$
|
|
34211
|
+
var { type = "text" } = _a, props = __rest$6(_a, ["type"]);
|
|
34242
34212
|
const onChange2 = (e3) => {
|
|
34243
34213
|
const target = e3.target;
|
|
34244
34214
|
if (props.onChange) {
|
|
@@ -34412,18 +34382,17 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34412
34382
|
setPreviousFilter(filterValue);
|
|
34413
34383
|
}, children: "Apply" })] });
|
|
34414
34384
|
}
|
|
34415
|
-
function _objectWithoutPropertiesLoose$2(
|
|
34416
|
-
if (
|
|
34385
|
+
function _objectWithoutPropertiesLoose$2(r2, e3) {
|
|
34386
|
+
if (null == r2)
|
|
34417
34387
|
return {};
|
|
34418
|
-
var
|
|
34419
|
-
for (var
|
|
34420
|
-
if (
|
|
34421
|
-
if (
|
|
34388
|
+
var t2 = {};
|
|
34389
|
+
for (var n2 in r2)
|
|
34390
|
+
if ({}.hasOwnProperty.call(r2, n2)) {
|
|
34391
|
+
if (e3.indexOf(n2) >= 0)
|
|
34422
34392
|
continue;
|
|
34423
|
-
|
|
34393
|
+
t2[n2] = r2[n2];
|
|
34424
34394
|
}
|
|
34425
|
-
|
|
34426
|
-
return target;
|
|
34395
|
+
return t2;
|
|
34427
34396
|
}
|
|
34428
34397
|
var reactIs = { exports: {} };
|
|
34429
34398
|
var reactIs_production_min = {};
|
|
@@ -34598,25 +34567,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34598
34567
|
}
|
|
34599
34568
|
return D2;
|
|
34600
34569
|
};
|
|
34601
|
-
var extendStatics = function(d2, b2) {
|
|
34602
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
34603
|
-
d3.__proto__ = b3;
|
|
34604
|
-
} || function(d3, b3) {
|
|
34605
|
-
for (var p2 in b3)
|
|
34606
|
-
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
34607
|
-
d3[p2] = b3[p2];
|
|
34608
|
-
};
|
|
34609
|
-
return extendStatics(d2, b2);
|
|
34610
|
-
};
|
|
34611
|
-
function __extends(d2, b2) {
|
|
34612
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
34613
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
34614
|
-
extendStatics(d2, b2);
|
|
34615
|
-
function __() {
|
|
34616
|
-
this.constructor = d2;
|
|
34617
|
-
}
|
|
34618
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
34619
|
-
}
|
|
34620
34570
|
var __assign = function() {
|
|
34621
34571
|
__assign = Object.assign || function __assign2(t2) {
|
|
34622
34572
|
for (var s, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
@@ -34629,7 +34579,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34629
34579
|
};
|
|
34630
34580
|
return __assign.apply(this, arguments);
|
|
34631
34581
|
};
|
|
34632
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
34582
|
+
function __awaiter$1(thisArg, _arguments, P, generator) {
|
|
34633
34583
|
function adopt(value) {
|
|
34634
34584
|
return value instanceof P ? value : new P(function(resolve) {
|
|
34635
34585
|
resolve(value);
|
|
@@ -34656,7 +34606,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34656
34606
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34657
34607
|
});
|
|
34658
34608
|
}
|
|
34659
|
-
function __generator(thisArg, body) {
|
|
34609
|
+
function __generator$1(thisArg, body) {
|
|
34660
34610
|
var _ = { label: 0, sent: function() {
|
|
34661
34611
|
if (t2[0] & 1)
|
|
34662
34612
|
throw t2[1];
|
|
@@ -34732,21 +34682,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34732
34682
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
34733
34683
|
}
|
|
34734
34684
|
}
|
|
34735
|
-
function
|
|
34736
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s && o2[s], i2 = 0;
|
|
34737
|
-
if (m2)
|
|
34738
|
-
return m2.call(o2);
|
|
34739
|
-
if (o2 && typeof o2.length === "number")
|
|
34740
|
-
return {
|
|
34741
|
-
next: function() {
|
|
34742
|
-
if (o2 && i2 >= o2.length)
|
|
34743
|
-
o2 = void 0;
|
|
34744
|
-
return { value: o2 && o2[i2++], done: !o2 };
|
|
34745
|
-
}
|
|
34746
|
-
};
|
|
34747
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
34748
|
-
}
|
|
34749
|
-
function __read(o2, n2) {
|
|
34685
|
+
function __read$1(o2, n2) {
|
|
34750
34686
|
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
34751
34687
|
if (!m2)
|
|
34752
34688
|
return o2;
|
|
@@ -34769,79 +34705,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
34769
34705
|
}
|
|
34770
34706
|
function __spread() {
|
|
34771
34707
|
for (var ar = [], i2 = 0; i2 < arguments.length; i2++)
|
|
34772
|
-
ar = ar.concat(__read(arguments[i2]));
|
|
34708
|
+
ar = ar.concat(__read$1(arguments[i2]));
|
|
34773
34709
|
return ar;
|
|
34774
34710
|
}
|
|
34775
|
-
function __spreadArray(to, from2, pack) {
|
|
34776
|
-
if (pack || arguments.length === 2)
|
|
34777
|
-
for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
|
|
34778
|
-
if (ar || !(i2 in from2)) {
|
|
34779
|
-
if (!ar)
|
|
34780
|
-
ar = Array.prototype.slice.call(from2, 0, i2);
|
|
34781
|
-
ar[i2] = from2[i2];
|
|
34782
|
-
}
|
|
34783
|
-
}
|
|
34784
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
34785
|
-
}
|
|
34786
|
-
function __await(v2) {
|
|
34787
|
-
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
34788
|
-
}
|
|
34789
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
34790
|
-
if (!Symbol.asyncIterator)
|
|
34791
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
34792
|
-
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
34793
|
-
return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
34794
|
-
return this;
|
|
34795
|
-
}, i2;
|
|
34796
|
-
function verb(n2) {
|
|
34797
|
-
if (g2[n2])
|
|
34798
|
-
i2[n2] = function(v2) {
|
|
34799
|
-
return new Promise(function(a2, b2) {
|
|
34800
|
-
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
34801
|
-
});
|
|
34802
|
-
};
|
|
34803
|
-
}
|
|
34804
|
-
function resume(n2, v2) {
|
|
34805
|
-
try {
|
|
34806
|
-
step(g2[n2](v2));
|
|
34807
|
-
} catch (e3) {
|
|
34808
|
-
settle(q2[0][3], e3);
|
|
34809
|
-
}
|
|
34810
|
-
}
|
|
34811
|
-
function step(r2) {
|
|
34812
|
-
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
|
|
34813
|
-
}
|
|
34814
|
-
function fulfill(value) {
|
|
34815
|
-
resume("next", value);
|
|
34816
|
-
}
|
|
34817
|
-
function reject(value) {
|
|
34818
|
-
resume("throw", value);
|
|
34819
|
-
}
|
|
34820
|
-
function settle(f2, v2) {
|
|
34821
|
-
if (f2(v2), q2.shift(), q2.length)
|
|
34822
|
-
resume(q2[0][0], q2[0][1]);
|
|
34823
|
-
}
|
|
34824
|
-
}
|
|
34825
|
-
function __asyncValues(o2) {
|
|
34826
|
-
if (!Symbol.asyncIterator)
|
|
34827
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
34828
|
-
var m2 = o2[Symbol.asyncIterator], i2;
|
|
34829
|
-
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
34830
|
-
return this;
|
|
34831
|
-
}, i2);
|
|
34832
|
-
function verb(n2) {
|
|
34833
|
-
i2[n2] = o2[n2] && function(v2) {
|
|
34834
|
-
return new Promise(function(resolve, reject) {
|
|
34835
|
-
v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
|
|
34836
|
-
});
|
|
34837
|
-
};
|
|
34838
|
-
}
|
|
34839
|
-
function settle(resolve, reject, d2, v2) {
|
|
34840
|
-
Promise.resolve(v2).then(function(v3) {
|
|
34841
|
-
resolve({ value: v3, done: d2 });
|
|
34842
|
-
}, reject);
|
|
34843
|
-
}
|
|
34844
|
-
}
|
|
34845
34711
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
34846
34712
|
var e3 = new Error(message);
|
|
34847
34713
|
return e3.name = "SuppressedError", e3.error = error, e3.suppressed = suppressed, e3;
|
|
@@ -36537,6 +36403,118 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
36537
36403
|
keyNavigationNext: "ArrowRight",
|
|
36538
36404
|
keyNavigationPrevious: "ArrowLeft"
|
|
36539
36405
|
});
|
|
36406
|
+
var __rest$5 = globalThis && globalThis.__rest || function(s, e3) {
|
|
36407
|
+
var t2 = {};
|
|
36408
|
+
for (var p2 in s)
|
|
36409
|
+
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
36410
|
+
t2[p2] = s[p2];
|
|
36411
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
36412
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s); i2 < p2.length; i2++) {
|
|
36413
|
+
if (e3.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i2]))
|
|
36414
|
+
t2[p2[i2]] = s[p2[i2]];
|
|
36415
|
+
}
|
|
36416
|
+
return t2;
|
|
36417
|
+
};
|
|
36418
|
+
const StyledChevronButton = styled__default.default(Button$1).attrs((attrs2) => Object.assign(Object.assign({}, attrs2), { styling: "ghost" }))`
|
|
36419
|
+
min-width: 0;
|
|
36420
|
+
height: auto;
|
|
36421
|
+
margin: 0;
|
|
36422
|
+
padding: 0 0.25rem;
|
|
36423
|
+
|
|
36424
|
+
background-color: transparent !important;
|
|
36425
|
+
`;
|
|
36426
|
+
const ChevronButton = (_a) => {
|
|
36427
|
+
var { getToggleButtonProps, disabled: disabled2, isOpen } = _a, props = __rest$5(_a, ["getToggleButtonProps", "disabled", "isOpen"]);
|
|
36428
|
+
return jsxRuntime.exports.jsx(StyledChevronButton, Object.assign({}, getToggleButtonProps(), props, { children: jsxRuntime.exports.jsx(Chevron$2, { disabled: disabled2, isOpen }) }));
|
|
36429
|
+
};
|
|
36430
|
+
const ChevronButton$1 = React__default.default.memo(ChevronButton);
|
|
36431
|
+
var __rest$4 = globalThis && globalThis.__rest || function(s, e3) {
|
|
36432
|
+
var t2 = {};
|
|
36433
|
+
for (var p2 in s)
|
|
36434
|
+
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
36435
|
+
t2[p2] = s[p2];
|
|
36436
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
36437
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s); i2 < p2.length; i2++) {
|
|
36438
|
+
if (e3.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i2]))
|
|
36439
|
+
t2[p2[i2]] = s[p2[i2]];
|
|
36440
|
+
}
|
|
36441
|
+
return t2;
|
|
36442
|
+
};
|
|
36443
|
+
const StyledListItem = styled__default.default.span`
|
|
36444
|
+
cursor: pointer;
|
|
36445
|
+
user-select: none;
|
|
36446
|
+
|
|
36447
|
+
overflow: hidden;
|
|
36448
|
+
|
|
36449
|
+
width: 100%;
|
|
36450
|
+
min-height: 2rem;
|
|
36451
|
+
padding: 0.25rem 1rem;
|
|
36452
|
+
|
|
36453
|
+
font-size: ${(props) => props.size ? `${props.size}rem` : "1rem"};
|
|
36454
|
+
font-weight: 300;
|
|
36455
|
+
color: ${(props) => props.theme.colors.text};
|
|
36456
|
+
text-overflow: ellipsis;
|
|
36457
|
+
white-space: nowrap;
|
|
36458
|
+
|
|
36459
|
+
background-color: ${(props) => {
|
|
36460
|
+
if (props.isSelected) {
|
|
36461
|
+
return props.theme.colors.blue3;
|
|
36462
|
+
}
|
|
36463
|
+
if (props.isHighlighted) {
|
|
36464
|
+
return props.theme.colors.grey2;
|
|
36465
|
+
}
|
|
36466
|
+
return props.theme.colors.blue1;
|
|
36467
|
+
}};
|
|
36468
|
+
border-bottom: 1px solid ${(props) => props.theme.colors.grey3};
|
|
36469
|
+
|
|
36470
|
+
:hover {
|
|
36471
|
+
background-color: ${(props) => props.theme.colors.grey2};
|
|
36472
|
+
}
|
|
36473
|
+
|
|
36474
|
+
:active {
|
|
36475
|
+
color: ${(props) => props.theme.colors.blue1};
|
|
36476
|
+
background-color: ${(props) => props.theme.colors.blue4};
|
|
36477
|
+
}
|
|
36478
|
+
|
|
36479
|
+
&:last-child {
|
|
36480
|
+
border-bottom: none;
|
|
36481
|
+
}
|
|
36482
|
+
`;
|
|
36483
|
+
const ListItem = ({ size: size2, title, item, index: index2, getItemProps, itemClass, children, isHighlighted, isSelected }) => {
|
|
36484
|
+
const _a = getItemProps({ index: index2, item }), { itemClassName } = _a, itemProps = __rest$4(_a, ["itemClassName"]);
|
|
36485
|
+
return jsxRuntime.exports.jsx(StyledListItem, Object.assign({}, itemProps, { className: itemClass ? `${itemClassName} ${itemClass}` : itemClassName, title, size: size2, item, isHighlighted, isSelected, children }));
|
|
36486
|
+
};
|
|
36487
|
+
ListItem.displayName = "ListItem";
|
|
36488
|
+
const ListItem$1 = React__default.default.memo(ListItem);
|
|
36489
|
+
const StyledDropdownList$1 = styled__default.default(List)`
|
|
36490
|
+
border-radius: 0 0 0.25rem 0.25rem;
|
|
36491
|
+
outline: 0;
|
|
36492
|
+
box-shadow: ${(props) => props.theme.shadow.light};
|
|
36493
|
+
`;
|
|
36494
|
+
const DropdownList = React__default.default.forwardRef(({ items, getItemProps, getFloatingProps, isOpen, getMenuProps, size: size2, style, maxItems, itemClass, className, children, selectedItem, kbdHighlightIdx }, ref) => jsxRuntime.exports.jsx(StyledDropdownList$1, Object.assign({}, getMenuProps ? getMenuProps({ ref }) : { ref }, getFloatingProps(), { isOpen, maxItems, style: Object.assign(Object.assign({}, style), { zIndex: 9999 }), className, children: !lodash$2.exports.isEmpty(items) ? items.map((item, index2) => {
|
|
36495
|
+
const isSelected = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) === item.label;
|
|
36496
|
+
return children ? children(item, index2) : jsxRuntime.exports.jsx(ListItem$1, { getItemProps, size: size2, title: item.label, item, index: index2, itemClass, isHighlighted: isOpen && kbdHighlightIdx !== void 0 && kbdHighlightIdx === index2, isSelected, children: item.label }, `item-${index2}-${isOpen && isSelected}`);
|
|
36497
|
+
}) : jsxRuntime.exports.jsx(NoItemsLabel, { children: "No Items" }) })));
|
|
36498
|
+
DropdownList.displayName = "DropdownList";
|
|
36499
|
+
const DropdownList$1 = React__default.default.memo(DropdownList);
|
|
36500
|
+
const { stateChangeTypes: useSelectChangeTypes } = useSelect;
|
|
36501
|
+
const { stateChangeTypes: useComboboxChangeTypes } = useCombobox;
|
|
36502
|
+
const setTypes = /* @__PURE__ */ new Set([
|
|
36503
|
+
useSelectChangeTypes.ToggleButtonKeyDownArrowDown,
|
|
36504
|
+
useSelectChangeTypes.ToggleButtonKeyDownArrowUp,
|
|
36505
|
+
useComboboxChangeTypes.InputKeyDownArrowDown,
|
|
36506
|
+
useComboboxChangeTypes.InputKeyDownArrowUp
|
|
36507
|
+
]);
|
|
36508
|
+
const syncKbdHighlightIdx = (setKbdHighlightIdx) => ({
|
|
36509
|
+
onHighlightedIndexChange: ({ highlightedIndex, type }) => {
|
|
36510
|
+
if (setTypes.has(type)) {
|
|
36511
|
+
setKbdHighlightIdx(highlightedIndex);
|
|
36512
|
+
}
|
|
36513
|
+
if (type === useSelectChangeTypes.ItemMouseMove) {
|
|
36514
|
+
setKbdHighlightIdx(void 0);
|
|
36515
|
+
}
|
|
36516
|
+
}
|
|
36517
|
+
});
|
|
36540
36518
|
const Wrapper$6 = styled__default.default.div`
|
|
36541
36519
|
display: inline-flex;
|
|
36542
36520
|
|
|
@@ -36615,36 +36593,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
36615
36593
|
cursor: not-allowed;
|
|
36616
36594
|
color: ${(props) => props.theme.colors.grey2};
|
|
36617
36595
|
}
|
|
36618
|
-
`;
|
|
36619
|
-
const NoItemsLabel = styled__default.default.span`
|
|
36620
|
-
display: flex;
|
|
36621
|
-
flex: 1 1 auto;
|
|
36622
|
-
align-items: center;
|
|
36623
|
-
justify-content: center;
|
|
36624
|
-
|
|
36625
|
-
height: 2rem;
|
|
36626
|
-
|
|
36627
|
-
font-size: 1rem;
|
|
36628
|
-
color: ${(props) => props.theme.colors.text};
|
|
36629
|
-
|
|
36630
|
-
background-color: ${(props) => props.theme.colors.blue1};
|
|
36631
|
-
`;
|
|
36632
|
-
styled__default.default(List)`
|
|
36633
|
-
margin-left: -1px;
|
|
36634
|
-
border-radius: 0 0 0.25rem 0.25rem;
|
|
36635
|
-
box-shadow: ${(props) => props.theme.shadow.light};
|
|
36636
|
-
`;
|
|
36637
|
-
const ChevronButton = styled__default.default(Button$1).attrs((attrs2) => Object.assign(Object.assign({}, attrs2), { styling: "ghost" }))`
|
|
36638
|
-
min-width: 0;
|
|
36639
|
-
height: auto;
|
|
36640
|
-
margin: 0;
|
|
36641
|
-
padding: 0 0.25rem;
|
|
36642
|
-
|
|
36643
|
-
background-color: transparent !important;
|
|
36644
|
-
`;
|
|
36645
|
-
styled__default.default(List)`
|
|
36646
|
-
overflow-y: auto;
|
|
36647
|
-
box-shadow: ${(props) => props.theme.shadow.light};
|
|
36648
36596
|
`;
|
|
36649
36597
|
var dateFormats$1 = {
|
|
36650
36598
|
full: "EEEE, d MMMM yyyy",
|
|
@@ -43277,7 +43225,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
43277
43225
|
}
|
|
43278
43226
|
}
|
|
43279
43227
|
`;
|
|
43280
|
-
const
|
|
43228
|
+
const StyledDatepickerListItem = styled__default.default.span`
|
|
43281
43229
|
cursor: pointer;
|
|
43282
43230
|
user-select: none;
|
|
43283
43231
|
|
|
@@ -43289,22 +43237,27 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
43289
43237
|
min-height: 2rem;
|
|
43290
43238
|
padding: 0.25rem 1.5rem;
|
|
43291
43239
|
|
|
43292
|
-
font-size:
|
|
43240
|
+
font-size: 0.75rem;
|
|
43293
43241
|
font-weight: 300;
|
|
43294
43242
|
color: ${(props) => props.isSelected ? "#FFF" : props.theme.colors.text};
|
|
43295
43243
|
text-overflow: ellipsis;
|
|
43296
43244
|
white-space: nowrap;
|
|
43245
|
+
border-radius: 0.25rem;
|
|
43297
43246
|
|
|
43298
43247
|
background-color: ${(props) => {
|
|
43299
43248
|
if (props.isSelected) {
|
|
43300
43249
|
return props.theme.colors.primary;
|
|
43301
43250
|
}
|
|
43302
|
-
if (props.
|
|
43251
|
+
if (props.isHighlighted) {
|
|
43303
43252
|
return props.theme.colors.grey2;
|
|
43304
43253
|
}
|
|
43305
43254
|
return props.theme.colors.grey1;
|
|
43306
43255
|
}};
|
|
43307
43256
|
|
|
43257
|
+
:hover {
|
|
43258
|
+
background-color: ${(props) => props.isSelected ? props.theme.colors.primary : props.theme.colors.grey2};
|
|
43259
|
+
}
|
|
43260
|
+
|
|
43308
43261
|
:active {
|
|
43309
43262
|
background-color: ${(props) => props.theme.colors.grey1};
|
|
43310
43263
|
}
|
|
@@ -43313,39 +43266,41 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
43313
43266
|
border-bottom: none;
|
|
43314
43267
|
}
|
|
43315
43268
|
`;
|
|
43316
|
-
const
|
|
43269
|
+
const DatepickerListItem = React__namespace.memo(({ item, index: index2, getItemProps, isSelected, size: size2, isHighlighted }) => {
|
|
43270
|
+
const _a = getItemProps({ index: index2, item }), itemProps = __rest$3(_a, ["itemClassName"]);
|
|
43271
|
+
return jsxRuntime.exports.jsx(StyledDatepickerListItem, Object.assign({}, itemProps, { isSelected, title: item.label, item, index: index2, size: size2, isHighlighted, children: item.label }));
|
|
43272
|
+
});
|
|
43273
|
+
const StyledDropdownList = React__namespace.memo(styled__default.default(DropdownList$1)`
|
|
43317
43274
|
overflow-y: auto;
|
|
43318
43275
|
display: ${(props) => props.isOpen ? "flex" : "none"};
|
|
43319
43276
|
flex-direction: column;
|
|
43320
43277
|
gap: 0.125rem;
|
|
43321
43278
|
|
|
43322
|
-
|
|
43279
|
+
width: 16.25rem;
|
|
43280
|
+
max-height: calc(
|
|
43281
|
+
${(props) => (props.maxItems || 5) * 2}em + 2px + (${(props) => (props.maxItems || 5) - 1}) * 0.125em
|
|
43282
|
+
);
|
|
43323
43283
|
margin-left: ${(props) => props.displacement}rem;
|
|
43324
43284
|
|
|
43325
43285
|
background-color: ${(props) => props.theme.colors.grey1};
|
|
43326
43286
|
border: none;
|
|
43327
|
-
|
|
43328
|
-
|
|
43287
|
+
box-shadow: none;
|
|
43288
|
+
`);
|
|
43289
|
+
const DatepickerSelectButtonPrimary = React__namespace.memo(({ disabled: disabled2, getToggleButtonProps, setReference, getReferenceProps, size: size2, isOpen, selectedItem }) => jsxRuntime.exports.jsxs(SelectButtonPrimary, Object.assign({ disabled: disabled2 }, getToggleButtonProps({ disabled: disabled2, ref: setReference }), getReferenceProps(), { type: "button", children: [jsxRuntime.exports.jsx(SelectedItem$1, { size: size2, children: selectedItem ? selectedItem.label : "Select" }), jsxRuntime.exports.jsx(Chevron$2, { disabled: disabled2, isOpen })] })));
|
|
43329
43290
|
function DatepickerSelect(props) {
|
|
43330
43291
|
var _a;
|
|
43331
|
-
const [
|
|
43332
|
-
const { isOpen, selectedItem, getToggleButtonProps, getMenuProps,
|
|
43292
|
+
const [kbdHighlightIdx, setKbdHighlightIdx] = React__namespace.useState();
|
|
43293
|
+
const { isOpen, selectedItem, getToggleButtonProps, getMenuProps, getItemProps } = useSelect(Object.assign(Object.assign(Object.assign({ initialSelectedItem: props.initialValue, itemToString: (item) => item.label, items: props.items, onSelectedItemChange: (changes) => {
|
|
43333
43294
|
const selected = changes.selectedItem;
|
|
43334
43295
|
if (props.onSelect) {
|
|
43335
43296
|
props.onSelect(selected);
|
|
43336
43297
|
}
|
|
43337
|
-
}, stateReducer: (state, { changes, type }) => {
|
|
43338
|
-
if (type === stateChangeTypes$1.ToggleButtonClick) {
|
|
43339
|
-
|
|
43298
|
+
} }, syncKbdHighlightIdx(setKbdHighlightIdx)), { stateReducer: (state, { changes, type }) => {
|
|
43299
|
+
if (type === stateChangeTypes$1.ToggleButtonClick && (changes === null || changes === void 0 ? void 0 : changes.isOpen) && props.selectedItem) {
|
|
43300
|
+
return Object.assign(Object.assign({}, changes), { highlightedIndex: props.items.findIndex((i2) => i2.value === changes.selectedItem.value) });
|
|
43340
43301
|
}
|
|
43341
43302
|
return changes;
|
|
43342
|
-
} }, props.selectedItem && { selectedItem: props.selectedItem }));
|
|
43343
|
-
React.useEffect(() => {
|
|
43344
|
-
if (isOpen && pendingHighlight !== null) {
|
|
43345
|
-
setHighlightedIndex(pendingHighlight);
|
|
43346
|
-
setPendingHighlight(null);
|
|
43347
|
-
}
|
|
43348
|
-
}, [isOpen, pendingHighlight, setHighlightedIndex]);
|
|
43303
|
+
} }), props.selectedItem && { selectedItem: props.selectedItem }));
|
|
43349
43304
|
const { refs, floatingStyles, context: context2 } = useFloating({
|
|
43350
43305
|
open: isOpen,
|
|
43351
43306
|
placement: props.placement || "bottom-start",
|
|
@@ -43354,19 +43309,15 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
43354
43309
|
});
|
|
43355
43310
|
const role = useRole(context2, { role: "listbox" });
|
|
43356
43311
|
const { getReferenceProps, getFloatingProps } = useInteractions([role]);
|
|
43357
|
-
const menuProps = getMenuProps();
|
|
43358
|
-
const setMenuRef = menuProps.ref;
|
|
43359
43312
|
const setFloatingRef = refs.setFloating;
|
|
43360
43313
|
const { dropdownRef } = props;
|
|
43361
43314
|
const mergedDropdownRef = React__namespace.useCallback((node) => {
|
|
43362
43315
|
setFloatingRef(node);
|
|
43363
|
-
setMenuRef(node);
|
|
43364
43316
|
dropdownRef === null || dropdownRef === void 0 ? void 0 : dropdownRef(node);
|
|
43365
|
-
}, [setFloatingRef,
|
|
43366
|
-
|
|
43367
|
-
|
|
43368
|
-
|
|
43369
|
-
}) })), document.body)] }) });
|
|
43317
|
+
}, [setFloatingRef, dropdownRef]);
|
|
43318
|
+
const menuProps = React__namespace.useMemo(() => getMenuProps({ ref: mergedDropdownRef }), [mergedDropdownRef, getMenuProps]);
|
|
43319
|
+
const renderListItem = React__namespace.useCallback((item, index2) => jsxRuntime.exports.jsx(DatepickerListItem, { item, index: index2, getItemProps, isSelected: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) === item.label, isHighlighted: isOpen && kbdHighlightIdx !== void 0 && kbdHighlightIdx === index2 }, `item-${index2}-${isOpen && (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) === item.label}`), [getItemProps, selectedItem, isOpen, kbdHighlightIdx]);
|
|
43320
|
+
return jsxRuntime.exports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$5, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsx(DatepickerSelectButtonPrimary, { disabled: props.disabled, getToggleButtonProps, setReference: refs.setReference, getReferenceProps, size: props.size, isOpen, selectedItem }), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(StyledDropdownList, { items: props.items, getItemProps, getFloatingProps, style: floatingStyles, isOpen, getMenuProps, size: props.size, className: `${(_a = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _a !== void 0 ? _a : ""} ${props.itemClass}`, itemClass: props.itemClass, displacement: props.displacement, maxItems: 7, ref: mergedDropdownRef, kbdHighlightIdx, children: renderListItem }), document.body)] }) });
|
|
43370
43321
|
}
|
|
43371
43322
|
function getMonths() {
|
|
43372
43323
|
const months = [];
|
|
@@ -43987,8 +43938,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
43987
43938
|
"Thumbs.db"
|
|
43988
43939
|
];
|
|
43989
43940
|
function fromEvent(evt) {
|
|
43990
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
43991
|
-
return __generator(this, function(_a) {
|
|
43941
|
+
return __awaiter$1(this, void 0, void 0, function() {
|
|
43942
|
+
return __generator$1(this, function(_a) {
|
|
43992
43943
|
return [2, isDragEvt(evt) && evt.dataTransfer ? getDataTransferFiles(evt.dataTransfer, evt.type) : getInputFiles(evt)];
|
|
43993
43944
|
});
|
|
43994
43945
|
});
|
|
@@ -44006,9 +43957,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
44006
43957
|
return value !== null;
|
|
44007
43958
|
}
|
|
44008
43959
|
function getDataTransferFiles(dt2, type) {
|
|
44009
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
43960
|
+
return __awaiter$1(this, void 0, void 0, function() {
|
|
44010
43961
|
var items, files;
|
|
44011
|
-
return __generator(this, function(_a) {
|
|
43962
|
+
return __generator$1(this, function(_a) {
|
|
44012
43963
|
switch (_a.label) {
|
|
44013
43964
|
case 0:
|
|
44014
43965
|
if (!dt2.items)
|
|
@@ -44068,8 +44019,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
44068
44019
|
return Promise.resolve(fwp);
|
|
44069
44020
|
}
|
|
44070
44021
|
function fromEntry(entry) {
|
|
44071
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
44072
|
-
return __generator(this, function(_a) {
|
|
44022
|
+
return __awaiter$1(this, void 0, void 0, function() {
|
|
44023
|
+
return __generator$1(this, function(_a) {
|
|
44073
44024
|
return [2, entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry)];
|
|
44074
44025
|
});
|
|
44075
44026
|
});
|
|
@@ -44081,9 +44032,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
44081
44032
|
function readEntries() {
|
|
44082
44033
|
var _this = this;
|
|
44083
44034
|
reader.readEntries(function(batch) {
|
|
44084
|
-
return __awaiter(_this, void 0, void 0, function() {
|
|
44035
|
+
return __awaiter$1(_this, void 0, void 0, function() {
|
|
44085
44036
|
var files, err_12, items;
|
|
44086
|
-
return __generator(this, function(_a) {
|
|
44037
|
+
return __generator$1(this, function(_a) {
|
|
44087
44038
|
switch (_a.label) {
|
|
44088
44039
|
case 0:
|
|
44089
44040
|
if (!!batch.length)
|
|
@@ -44120,8 +44071,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
44120
44071
|
});
|
|
44121
44072
|
}
|
|
44122
44073
|
function fromFileEntry(entry) {
|
|
44123
|
-
return __awaiter(this, void 0, void 0, function() {
|
|
44124
|
-
return __generator(this, function(_a) {
|
|
44074
|
+
return __awaiter$1(this, void 0, void 0, function() {
|
|
44075
|
+
return __generator$1(this, function(_a) {
|
|
44125
44076
|
return [2, new Promise(function(resolve, reject) {
|
|
44126
44077
|
entry.file(function(file) {
|
|
44127
44078
|
var fwp = toFileWithPath(file, entry.fullPath);
|
|
@@ -45140,44 +45091,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45140
45091
|
text-overflow: ellipsis;
|
|
45141
45092
|
white-space: nowrap;
|
|
45142
45093
|
`;
|
|
45143
|
-
styled__default.default.span`
|
|
45144
|
-
display: flex;
|
|
45145
|
-
flex: 1 1 auto;
|
|
45146
|
-
align-items: center;
|
|
45147
|
-
justify-content: center;
|
|
45148
|
-
|
|
45149
|
-
height: 2rem;
|
|
45150
|
-
|
|
45151
|
-
font-size: 1rem;
|
|
45152
|
-
color: ${(props) => props.theme.colors.grey4};
|
|
45153
|
-
|
|
45154
|
-
background-color: ${(props) => props.theme.colors.blue1};
|
|
45155
|
-
`;
|
|
45156
|
-
styled__default.default(List)`
|
|
45157
|
-
border-radius: 0 0 0.25rem 0.25rem;
|
|
45158
|
-
outline: 0;
|
|
45159
|
-
box-shadow: ${(props) => props.theme.shadow.light};
|
|
45160
|
-
`;
|
|
45161
|
-
styled__default.default(Button$1).attrs((attrs2) => Object.assign(Object.assign({}, attrs2), { styling: "ghost" }))`
|
|
45162
|
-
min-width: 0;
|
|
45163
|
-
height: auto;
|
|
45164
|
-
margin: 0;
|
|
45165
|
-
padding: 0 0.25rem;
|
|
45166
|
-
|
|
45167
|
-
background-color: transparent !important;
|
|
45168
|
-
`;
|
|
45169
|
-
var __rest$2 = globalThis && globalThis.__rest || function(s, e3) {
|
|
45170
|
-
var t2 = {};
|
|
45171
|
-
for (var p2 in s)
|
|
45172
|
-
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
45173
|
-
t2[p2] = s[p2];
|
|
45174
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45175
|
-
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s); i2 < p2.length; i2++) {
|
|
45176
|
-
if (e3.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i2]))
|
|
45177
|
-
t2[p2[i2]] = s[p2[i2]];
|
|
45178
|
-
}
|
|
45179
|
-
return t2;
|
|
45180
|
-
};
|
|
45181
45094
|
const SelectedItem = styled__default.default.div`
|
|
45182
45095
|
overflow: hidden;
|
|
45183
45096
|
|
|
@@ -45258,21 +45171,16 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45258
45171
|
color: ${(props) => props.theme.colors.grey2};
|
|
45259
45172
|
}
|
|
45260
45173
|
}
|
|
45261
|
-
`;
|
|
45262
|
-
const DropdownList = styled__default.default(List)`
|
|
45263
|
-
margin-left: -1px;
|
|
45264
|
-
border-radius: 0 0 0.25rem 0.25rem;
|
|
45265
|
-
outline: 0;
|
|
45266
|
-
box-shadow: ${(props) => props.theme.shadow.light};
|
|
45267
45174
|
`;
|
|
45268
45175
|
function Select(props) {
|
|
45269
45176
|
var _a, _b, _c;
|
|
45270
45177
|
const { applySameWidthModifier = true } = props;
|
|
45271
|
-
const
|
|
45178
|
+
const [kbdHighlightIdx, setKbdHighlightIdx] = React__namespace.useState();
|
|
45179
|
+
const { isOpen, selectedItem, getToggleButtonProps, getMenuProps, getItemProps } = useSelect(Object.assign(Object.assign({ initialIsOpen: props.initialIsOpen, initialSelectedItem: props.initialValue, itemToString: (item) => item.label, items: props.items, onSelectedItemChange: (changes) => {
|
|
45272
45180
|
var _a2;
|
|
45273
45181
|
const selected = changes.selectedItem;
|
|
45274
45182
|
(_a2 = props.onSelect) === null || _a2 === void 0 ? void 0 : _a2.call(props, selected);
|
|
45275
|
-
} }, "selectedItem" in props && { selectedItem: props.selectedItem }));
|
|
45183
|
+
} }, syncKbdHighlightIdx(setKbdHighlightIdx)), "selectedItem" in props && { selectedItem: props.selectedItem }));
|
|
45276
45184
|
const { refs, floatingStyles, context: context2 } = useFloating({
|
|
45277
45185
|
open: isOpen,
|
|
45278
45186
|
placement: props.placement || "bottom-start",
|
|
@@ -45289,10 +45197,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45289
45197
|
}, [setFloatingRef, dropdownRef]);
|
|
45290
45198
|
const menuProps = React__namespace.useMemo(() => getMenuProps({ ref: mergedDropdownRef }), [mergedDropdownRef, getMenuProps]);
|
|
45291
45199
|
const toggleButtonProps = React__namespace.useMemo(() => getToggleButtonProps({ disabled: props.disabled, ref: refs.setReference }), [props.disabled, refs.setReference, getToggleButtonProps]);
|
|
45292
|
-
|
|
45293
|
-
|
|
45294
|
-
return React.createElement(ListItem, Object.assign({}, itemProps, { className: `${itemClassName} ${props.itemClass}`, hovered: index2 === highlightedIndex, key: `item-${index2}`, size: props.size, title: item.label }), item.label);
|
|
45295
|
-
}) })), document.body)] }) });
|
|
45200
|
+
const dropdownStyle = React__namespace.useMemo(() => Object.assign(Object.assign({}, floatingStyles), { marginLeft: -1 }), [floatingStyles]);
|
|
45201
|
+
return jsxRuntime.exports.jsx(Tooltip, { content: props.errorMsg, disabled: !props.errorMsg, styling: "error", children: jsxRuntime.exports.jsxs(Wrapper$4, { className: props.className, isDisabled: props.disabled, isErrored: !!props.errorMsg, isOpen, onClick: props.onClick, style: props.style, children: [jsxRuntime.exports.jsxs(SelectButton, Object.assign({ disabled: props.disabled, isOpen }, toggleButtonProps, getReferenceProps(), { type: "button", children: [jsxRuntime.exports.jsx(SelectedItem, { size: props.size, children: (_b = (_a = selectedItem === null ? props.placeholder : selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) !== null && _a !== void 0 ? _a : props.placeholder) !== null && _b !== void 0 ? _b : "Select" }), jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen })] })), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(DropdownList$1, { items: props.items, getItemProps, getFloatingProps, style: dropdownStyle, isOpen, getMenuProps, size: props.size, ref: refs.setFloating, className: `${(_c = menuProps === null || menuProps === void 0 ? void 0 : menuProps.className) !== null && _c !== void 0 ? _c : ""} ${props.itemClass}`, itemClass: props.itemClass, maxItems: props.maxItems, selectedItem, kbdHighlightIdx }), document.body)] }) });
|
|
45296
45202
|
}
|
|
45297
45203
|
const StyledSelect$1 = styled__default.default(Select)`
|
|
45298
45204
|
margin: 1px solid ${(props) => props.theme.colors.background};
|
|
@@ -45830,22 +45736,29 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45830
45736
|
display: none;
|
|
45831
45737
|
}
|
|
45832
45738
|
`;
|
|
45739
|
+
var __rest$2 = globalThis && globalThis.__rest || function(s, e3) {
|
|
45740
|
+
var t2 = {};
|
|
45741
|
+
for (var p2 in s)
|
|
45742
|
+
if (Object.prototype.hasOwnProperty.call(s, p2) && e3.indexOf(p2) < 0)
|
|
45743
|
+
t2[p2] = s[p2];
|
|
45744
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45745
|
+
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s); i2 < p2.length; i2++) {
|
|
45746
|
+
if (e3.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p2[i2]))
|
|
45747
|
+
t2[p2[i2]] = s[p2[i2]];
|
|
45748
|
+
}
|
|
45749
|
+
return t2;
|
|
45750
|
+
};
|
|
45833
45751
|
const { stateChangeTypes } = useCombobox;
|
|
45834
|
-
const
|
|
45835
|
-
margin-left: -1px;
|
|
45836
|
-
border-radius: 0 0 0.25rem 0.25rem;
|
|
45837
|
-
box-shadow: ${(props) => props.theme.shadow.light};
|
|
45838
|
-
`;
|
|
45839
|
-
const getTextColor = (heading, selected, theme2) => {
|
|
45752
|
+
const getTextColor = (heading, isSelected, theme2) => {
|
|
45840
45753
|
if (heading) {
|
|
45841
45754
|
return theme2.colors.text;
|
|
45842
45755
|
}
|
|
45843
|
-
if (
|
|
45756
|
+
if (isSelected) {
|
|
45844
45757
|
return theme2.colors.primary;
|
|
45845
45758
|
}
|
|
45846
45759
|
return theme2.colors.text;
|
|
45847
45760
|
};
|
|
45848
|
-
const ListItemSpan = styled__default.default(
|
|
45761
|
+
const ListItemSpan = styled__default.default(StyledListItem)`
|
|
45849
45762
|
cursor: ${(props) => (props === null || props === void 0 ? void 0 : props.heading) ? "text" : "pointer"};
|
|
45850
45763
|
user-select: ${(props) => (props === null || props === void 0 ? void 0 : props.heading) ? "text" : "none"};
|
|
45851
45764
|
|
|
@@ -45857,7 +45770,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45857
45770
|
padding-right: 0.7rem;
|
|
45858
45771
|
|
|
45859
45772
|
font-weight: ${(props) => (props === null || props === void 0 ? void 0 : props.heading) ? "bold" : "normal"};
|
|
45860
|
-
color: ${(props) => getTextColor(props === null || props === void 0 ? void 0 : props.heading, props.
|
|
45773
|
+
color: ${(props) => getTextColor(props === null || props === void 0 ? void 0 : props.heading, props.isSelected, props.theme)};
|
|
45861
45774
|
|
|
45862
45775
|
${(props) => {
|
|
45863
45776
|
if (props.heading) {
|
|
@@ -45883,14 +45796,22 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45883
45796
|
return [...acc, item];
|
|
45884
45797
|
}, []);
|
|
45885
45798
|
}
|
|
45799
|
+
const SectionedListItem = ({ item, index: index2, getItemProps, isSelected, isHighlighted }) => {
|
|
45800
|
+
const theme2 = useClTheme();
|
|
45801
|
+
const _a = getItemProps({ index: index2, item }), itemProps = __rest$2(_a, ["itemClassName"]);
|
|
45802
|
+
if (item.heading) {
|
|
45803
|
+
delete itemProps.onClick;
|
|
45804
|
+
}
|
|
45805
|
+
return jsxRuntime.exports.jsxs(ListItemSpan, Object.assign({}, itemProps, { heading: item.heading, section: item.section, isSelected, title: item.label, item, index: index2, isHighlighted, children: [item.label || item.section, item.badge && jsxRuntime.exports.jsx(Badge, { color: item.badge.color || theme2.colors.primary, children: item.badge.label })] }));
|
|
45806
|
+
};
|
|
45886
45807
|
function SectionedList(props) {
|
|
45887
45808
|
var _a, _b, _c;
|
|
45888
|
-
const theme2 = useClTheme();
|
|
45889
45809
|
const unpackedItems = React.useMemo(() => unpackSectionedList(props.items), [props.items]);
|
|
45890
45810
|
const [pendingHighlight, setPendingHighlight] = React.useState(null);
|
|
45891
45811
|
const [items, setItems] = React.useState(unpackedItems);
|
|
45892
45812
|
const [inputValue, setInputValue] = React.useState((_b = (_a = props.selectedItem) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : "");
|
|
45893
|
-
const
|
|
45813
|
+
const [kbdHighlightIdx, setKbdHighlightIdx] = React__default.default.useState();
|
|
45814
|
+
const { selectedItem, isOpen, getMenuProps, getInputProps, getToggleButtonProps, getItemProps, setHighlightedIndex } = useCombobox(Object.assign(Object.assign(Object.assign({ initialIsOpen: false, initialSelectedItem: (_c = props.initialValue) !== null && _c !== void 0 ? _c : props.selectedItem, itemToString: (item) => item ? item.label : "", items, onInputValueChange: (change) => {
|
|
45894
45815
|
setInputValue(change.inputValue);
|
|
45895
45816
|
if (!change.inputValue) {
|
|
45896
45817
|
setItems(unpackedItems);
|
|
@@ -45923,7 +45844,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45923
45844
|
props.onSelect(changes.selectedItem);
|
|
45924
45845
|
}
|
|
45925
45846
|
}
|
|
45926
|
-
}, stateReducer: (state, { changes, type }) => {
|
|
45847
|
+
} }, syncKbdHighlightIdx(setKbdHighlightIdx)), { stateReducer: (state, { changes, type }) => {
|
|
45927
45848
|
var _a2, _b2, _c2;
|
|
45928
45849
|
if (type === stateChangeTypes.ControlledPropUpdatedSelectedItem) {
|
|
45929
45850
|
return Object.assign(Object.assign({}, changes), { inputValue: "" });
|
|
@@ -45948,7 +45869,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45948
45869
|
return Object.assign(Object.assign({}, changes), { highlightedIndex: changes.highlightedIndex + 1 === items.length ? 0 : changes.highlightedIndex + 1 });
|
|
45949
45870
|
}
|
|
45950
45871
|
return changes;
|
|
45951
|
-
} }, "selectedItem" in props && { selectedItem: props.selectedItem }));
|
|
45872
|
+
} }), "selectedItem" in props && { selectedItem: props.selectedItem }));
|
|
45952
45873
|
React.useEffect(() => {
|
|
45953
45874
|
if (isOpen && pendingHighlight !== null) {
|
|
45954
45875
|
setHighlightedIndex(pendingHighlight);
|
|
@@ -45968,25 +45889,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
45968
45889
|
});
|
|
45969
45890
|
const role = useRole(context2, { role: "listbox" });
|
|
45970
45891
|
const { getReferenceProps, getFloatingProps } = useInteractions([role]);
|
|
45971
|
-
const
|
|
45972
|
-
const
|
|
45973
|
-
|
|
45974
|
-
const mergedRefs = React.useCallback((node) => {
|
|
45975
|
-
setFloatingRef(node);
|
|
45976
|
-
setMenuRef(node);
|
|
45977
|
-
}, [setFloatingRef, setMenuRef]);
|
|
45978
|
-
return jsxRuntime.exports.jsxs(Wrapper$6, { className: props.className, isDisabled: props.disabled, isErrored: false, isOpen, style: props.style, children: [jsxRuntime.exports.jsxs(InputWrapper$2, { disabled: props.disabled, isOpen, ref: refs.setReference, children: [jsxRuntime.exports.jsx(Input, Object.assign({}, getInputProps({ value: inputValue }), getReferenceProps())), jsxRuntime.exports.jsx(ChevronButton, Object.assign({}, getToggleButtonProps(), { children: jsxRuntime.exports.jsx(Chevron$2, { disabled: props.disabled, isOpen }) }))] }), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsxs(ListWrapper, Object.assign({}, menuProps, getFloatingProps(), { ref: mergedRefs, isOpen, style: Object.assign(Object.assign({}, floatingStyles), { zIndex: 9999 }), children: [items.length > 0 && items.map((item, index2) => {
|
|
45979
|
-
const itemProps = getItemProps({ index: index2, item });
|
|
45980
|
-
if (item.heading) {
|
|
45981
|
-
delete itemProps.onClick;
|
|
45982
|
-
}
|
|
45983
|
-
return React.createElement(
|
|
45984
|
-
ListItemSpan,
|
|
45985
|
-
Object.assign({}, itemProps, { heading: item.heading, hovered: index2 === highlightedIndex, key: `item-${index2}`, section: item.section, selected: item.value === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value), title: item.label }),
|
|
45986
|
-
item.label || item.section,
|
|
45987
|
-
item.badge && jsxRuntime.exports.jsx(Badge, { color: item.badge.color || theme2.colors.primary, children: item.badge.label })
|
|
45988
|
-
);
|
|
45989
|
-
}), items.length === 0 && jsxRuntime.exports.jsx(NoItemsLabel, { children: "No Items" })] })), document.body)] });
|
|
45892
|
+
const dropdownStyle = React__default.default.useMemo(() => Object.assign(Object.assign({}, floatingStyles), { marginLeft: -1 }), [floatingStyles]);
|
|
45893
|
+
const renderListItem = React.useCallback((item, index2) => jsxRuntime.exports.jsx(SectionedListItem, { item, index: index2, getItemProps, isSelected: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value) === item.value, isHighlighted: isOpen && kbdHighlightIdx !== void 0 && kbdHighlightIdx === index2 }, `item-${index2}-${isOpen && (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) === item.label}`), [getItemProps, selectedItem, isOpen, kbdHighlightIdx]);
|
|
45894
|
+
return jsxRuntime.exports.jsxs(Wrapper$6, { className: props.className, isDisabled: props.disabled, isErrored: false, isOpen, style: props.style, children: [jsxRuntime.exports.jsxs(InputWrapper$2, { disabled: props.disabled, isOpen, ref: refs.setReference, children: [jsxRuntime.exports.jsx(Input, Object.assign({}, getInputProps({ value: inputValue }), getReferenceProps())), jsxRuntime.exports.jsx(ChevronButton$1, { disabled: props.disabled, isOpen, getToggleButtonProps })] }), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(DropdownList$1, { items, getItemProps, getFloatingProps, style: dropdownStyle, isOpen, getMenuProps, ref: refs.setFloating, kbdHighlightIdx, children: renderListItem }), document.body)] });
|
|
45990
45895
|
}
|
|
45991
45896
|
var toNumber = toNumber_1;
|
|
45992
45897
|
var INFINITY$2 = 1 / 0, MAX_INTEGER = 17976931348623157e292;
|
|
@@ -50180,31 +50085,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50180
50085
|
var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$6(nextProps, _excluded2);
|
|
50181
50086
|
return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
|
|
50182
50087
|
}
|
|
50183
|
-
const GlobalStyle = styled.createGlobalStyle`
|
|
50184
|
-
body {
|
|
50185
|
-
/* stylelint-disable-next-line -- external classname */
|
|
50186
|
-
.DatetimeFilterSelect {
|
|
50187
|
-
background-color: ${(props) => props.theme.colors.grey1};
|
|
50188
|
-
|
|
50189
|
-
span {
|
|
50190
|
-
background-color: ${(props) => props.theme.colors.grey1};
|
|
50191
|
-
border-bottom: 1px solid ${(props) => props.theme.colors.grey1};
|
|
50192
|
-
|
|
50193
|
-
&[aria-selected="true"] {
|
|
50194
|
-
background-color: ${(props) => props.theme.colors.primary};
|
|
50195
|
-
}
|
|
50196
|
-
|
|
50197
|
-
:hover {
|
|
50198
|
-
background-color: ${(props) => props.theme.colors.grey3};
|
|
50199
|
-
}
|
|
50200
|
-
|
|
50201
|
-
:active {
|
|
50202
|
-
background-color: ${(props) => props.theme.colors.grey4};
|
|
50203
|
-
}
|
|
50204
|
-
}
|
|
50205
|
-
}
|
|
50206
|
-
}
|
|
50207
|
-
`;
|
|
50208
50088
|
const DatetimeFilterWrapper = styled__default.default(FilterWrapper)`
|
|
50209
50089
|
gap: 0;
|
|
50210
50090
|
`;
|
|
@@ -50330,7 +50210,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50330
50210
|
}
|
|
50331
50211
|
return false;
|
|
50332
50212
|
}, [props.disabled, previousFilter, filteredValues, dateValues, selected]);
|
|
50333
|
-
return jsxRuntime.exports.jsxs(DatetimeFilterWrapper, { className: props.className, children: [jsxRuntime.exports.
|
|
50213
|
+
return jsxRuntime.exports.jsxs(DatetimeFilterWrapper, { className: props.className, children: [jsxRuntime.exports.jsxs(FilterHeader, { children: [jsxRuntime.exports.jsx(StyledSelect, { dropdownRef: (element) => {
|
|
50334
50214
|
if (props.portalsRef) {
|
|
50335
50215
|
props.portalsRef.current[2] = element;
|
|
50336
50216
|
}
|
|
@@ -51276,6 +51156,237 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
51276
51156
|
text-overflow: ellipsis;
|
|
51277
51157
|
white-space: nowrap;
|
|
51278
51158
|
`;
|
|
51159
|
+
var extendStatics = function(d2, b2) {
|
|
51160
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
51161
|
+
d3.__proto__ = b3;
|
|
51162
|
+
} || function(d3, b3) {
|
|
51163
|
+
for (var p2 in b3)
|
|
51164
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
51165
|
+
d3[p2] = b3[p2];
|
|
51166
|
+
};
|
|
51167
|
+
return extendStatics(d2, b2);
|
|
51168
|
+
};
|
|
51169
|
+
function __extends(d2, b2) {
|
|
51170
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
51171
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
51172
|
+
extendStatics(d2, b2);
|
|
51173
|
+
function __() {
|
|
51174
|
+
this.constructor = d2;
|
|
51175
|
+
}
|
|
51176
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
51177
|
+
}
|
|
51178
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
51179
|
+
function adopt(value) {
|
|
51180
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
51181
|
+
resolve(value);
|
|
51182
|
+
});
|
|
51183
|
+
}
|
|
51184
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
51185
|
+
function fulfilled(value) {
|
|
51186
|
+
try {
|
|
51187
|
+
step(generator.next(value));
|
|
51188
|
+
} catch (e3) {
|
|
51189
|
+
reject(e3);
|
|
51190
|
+
}
|
|
51191
|
+
}
|
|
51192
|
+
function rejected(value) {
|
|
51193
|
+
try {
|
|
51194
|
+
step(generator["throw"](value));
|
|
51195
|
+
} catch (e3) {
|
|
51196
|
+
reject(e3);
|
|
51197
|
+
}
|
|
51198
|
+
}
|
|
51199
|
+
function step(result) {
|
|
51200
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
51201
|
+
}
|
|
51202
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
51203
|
+
});
|
|
51204
|
+
}
|
|
51205
|
+
function __generator(thisArg, body) {
|
|
51206
|
+
var _ = { label: 0, sent: function() {
|
|
51207
|
+
if (t2[0] & 1)
|
|
51208
|
+
throw t2[1];
|
|
51209
|
+
return t2[1];
|
|
51210
|
+
}, trys: [], ops: [] }, f2, y2, t2, g2;
|
|
51211
|
+
return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
51212
|
+
return this;
|
|
51213
|
+
}), g2;
|
|
51214
|
+
function verb(n2) {
|
|
51215
|
+
return function(v2) {
|
|
51216
|
+
return step([n2, v2]);
|
|
51217
|
+
};
|
|
51218
|
+
}
|
|
51219
|
+
function step(op) {
|
|
51220
|
+
if (f2)
|
|
51221
|
+
throw new TypeError("Generator is already executing.");
|
|
51222
|
+
while (g2 && (g2 = 0, op[0] && (_ = 0)), _)
|
|
51223
|
+
try {
|
|
51224
|
+
if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
|
|
51225
|
+
return t2;
|
|
51226
|
+
if (y2 = 0, t2)
|
|
51227
|
+
op = [op[0] & 2, t2.value];
|
|
51228
|
+
switch (op[0]) {
|
|
51229
|
+
case 0:
|
|
51230
|
+
case 1:
|
|
51231
|
+
t2 = op;
|
|
51232
|
+
break;
|
|
51233
|
+
case 4:
|
|
51234
|
+
_.label++;
|
|
51235
|
+
return { value: op[1], done: false };
|
|
51236
|
+
case 5:
|
|
51237
|
+
_.label++;
|
|
51238
|
+
y2 = op[1];
|
|
51239
|
+
op = [0];
|
|
51240
|
+
continue;
|
|
51241
|
+
case 7:
|
|
51242
|
+
op = _.ops.pop();
|
|
51243
|
+
_.trys.pop();
|
|
51244
|
+
continue;
|
|
51245
|
+
default:
|
|
51246
|
+
if (!(t2 = _.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
51247
|
+
_ = 0;
|
|
51248
|
+
continue;
|
|
51249
|
+
}
|
|
51250
|
+
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
51251
|
+
_.label = op[1];
|
|
51252
|
+
break;
|
|
51253
|
+
}
|
|
51254
|
+
if (op[0] === 6 && _.label < t2[1]) {
|
|
51255
|
+
_.label = t2[1];
|
|
51256
|
+
t2 = op;
|
|
51257
|
+
break;
|
|
51258
|
+
}
|
|
51259
|
+
if (t2 && _.label < t2[2]) {
|
|
51260
|
+
_.label = t2[2];
|
|
51261
|
+
_.ops.push(op);
|
|
51262
|
+
break;
|
|
51263
|
+
}
|
|
51264
|
+
if (t2[2])
|
|
51265
|
+
_.ops.pop();
|
|
51266
|
+
_.trys.pop();
|
|
51267
|
+
continue;
|
|
51268
|
+
}
|
|
51269
|
+
op = body.call(thisArg, _);
|
|
51270
|
+
} catch (e3) {
|
|
51271
|
+
op = [6, e3];
|
|
51272
|
+
y2 = 0;
|
|
51273
|
+
} finally {
|
|
51274
|
+
f2 = t2 = 0;
|
|
51275
|
+
}
|
|
51276
|
+
if (op[0] & 5)
|
|
51277
|
+
throw op[1];
|
|
51278
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
51279
|
+
}
|
|
51280
|
+
}
|
|
51281
|
+
function __values(o2) {
|
|
51282
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m2 = s && o2[s], i2 = 0;
|
|
51283
|
+
if (m2)
|
|
51284
|
+
return m2.call(o2);
|
|
51285
|
+
if (o2 && typeof o2.length === "number")
|
|
51286
|
+
return {
|
|
51287
|
+
next: function() {
|
|
51288
|
+
if (o2 && i2 >= o2.length)
|
|
51289
|
+
o2 = void 0;
|
|
51290
|
+
return { value: o2 && o2[i2++], done: !o2 };
|
|
51291
|
+
}
|
|
51292
|
+
};
|
|
51293
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
51294
|
+
}
|
|
51295
|
+
function __read(o2, n2) {
|
|
51296
|
+
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
51297
|
+
if (!m2)
|
|
51298
|
+
return o2;
|
|
51299
|
+
var i2 = m2.call(o2), r2, ar = [], e3;
|
|
51300
|
+
try {
|
|
51301
|
+
while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
|
|
51302
|
+
ar.push(r2.value);
|
|
51303
|
+
} catch (error) {
|
|
51304
|
+
e3 = { error };
|
|
51305
|
+
} finally {
|
|
51306
|
+
try {
|
|
51307
|
+
if (r2 && !r2.done && (m2 = i2["return"]))
|
|
51308
|
+
m2.call(i2);
|
|
51309
|
+
} finally {
|
|
51310
|
+
if (e3)
|
|
51311
|
+
throw e3.error;
|
|
51312
|
+
}
|
|
51313
|
+
}
|
|
51314
|
+
return ar;
|
|
51315
|
+
}
|
|
51316
|
+
function __spreadArray(to, from2, pack) {
|
|
51317
|
+
if (pack || arguments.length === 2)
|
|
51318
|
+
for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
|
|
51319
|
+
if (ar || !(i2 in from2)) {
|
|
51320
|
+
if (!ar)
|
|
51321
|
+
ar = Array.prototype.slice.call(from2, 0, i2);
|
|
51322
|
+
ar[i2] = from2[i2];
|
|
51323
|
+
}
|
|
51324
|
+
}
|
|
51325
|
+
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
51326
|
+
}
|
|
51327
|
+
function __await(v2) {
|
|
51328
|
+
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
51329
|
+
}
|
|
51330
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
51331
|
+
if (!Symbol.asyncIterator)
|
|
51332
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
51333
|
+
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
51334
|
+
return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
51335
|
+
return this;
|
|
51336
|
+
}, i2;
|
|
51337
|
+
function verb(n2) {
|
|
51338
|
+
if (g2[n2])
|
|
51339
|
+
i2[n2] = function(v2) {
|
|
51340
|
+
return new Promise(function(a2, b2) {
|
|
51341
|
+
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
51342
|
+
});
|
|
51343
|
+
};
|
|
51344
|
+
}
|
|
51345
|
+
function resume(n2, v2) {
|
|
51346
|
+
try {
|
|
51347
|
+
step(g2[n2](v2));
|
|
51348
|
+
} catch (e3) {
|
|
51349
|
+
settle(q2[0][3], e3);
|
|
51350
|
+
}
|
|
51351
|
+
}
|
|
51352
|
+
function step(r2) {
|
|
51353
|
+
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
|
|
51354
|
+
}
|
|
51355
|
+
function fulfill(value) {
|
|
51356
|
+
resume("next", value);
|
|
51357
|
+
}
|
|
51358
|
+
function reject(value) {
|
|
51359
|
+
resume("throw", value);
|
|
51360
|
+
}
|
|
51361
|
+
function settle(f2, v2) {
|
|
51362
|
+
if (f2(v2), q2.shift(), q2.length)
|
|
51363
|
+
resume(q2[0][0], q2[0][1]);
|
|
51364
|
+
}
|
|
51365
|
+
}
|
|
51366
|
+
function __asyncValues(o2) {
|
|
51367
|
+
if (!Symbol.asyncIterator)
|
|
51368
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
51369
|
+
var m2 = o2[Symbol.asyncIterator], i2;
|
|
51370
|
+
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
51371
|
+
return this;
|
|
51372
|
+
}, i2);
|
|
51373
|
+
function verb(n2) {
|
|
51374
|
+
i2[n2] = o2[n2] && function(v2) {
|
|
51375
|
+
return new Promise(function(resolve, reject) {
|
|
51376
|
+
v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
|
|
51377
|
+
});
|
|
51378
|
+
};
|
|
51379
|
+
}
|
|
51380
|
+
function settle(resolve, reject, d2, v2) {
|
|
51381
|
+
Promise.resolve(v2).then(function(v3) {
|
|
51382
|
+
resolve({ value: v3, done: d2 });
|
|
51383
|
+
}, reject);
|
|
51384
|
+
}
|
|
51385
|
+
}
|
|
51386
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
51387
|
+
var e3 = new Error(message);
|
|
51388
|
+
return e3.name = "SuppressedError", e3.error = error, e3.suppressed = suppressed, e3;
|
|
51389
|
+
};
|
|
51279
51390
|
function isFunction(value) {
|
|
51280
51391
|
return typeof value === "function";
|
|
51281
51392
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
4
4
|
"description": "Dara Framework core",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@babel/preset-env": "^7.23.0",
|
|
38
38
|
"@babel/preset-react": "^7.22.15",
|
|
39
39
|
"@babel/preset-typescript": "^7.23.0",
|
|
40
|
-
"@darajs/eslint-config": "~1.9.
|
|
41
|
-
"@darajs/prettier-config": "~1.9.
|
|
42
|
-
"@darajs/stylelint-config": "~1.9.
|
|
40
|
+
"@darajs/eslint-config": "~1.9.6",
|
|
41
|
+
"@darajs/prettier-config": "~1.9.6",
|
|
42
|
+
"@darajs/stylelint-config": "~1.9.6",
|
|
43
43
|
"@rollup/plugin-inject": "^4.0.4",
|
|
44
44
|
"@testing-library/dom": "^9.3.0",
|
|
45
45
|
"@testing-library/jest-dom": "^5.16.5",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"whatwg-fetch": "^3.6.2"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@darajs/styled-components": "~1.9.
|
|
83
|
-
"@darajs/ui-components": "~1.9.
|
|
84
|
-
"@darajs/ui-notifications": "~1.9.
|
|
85
|
-
"@darajs/ui-utils": "~1.9.
|
|
82
|
+
"@darajs/styled-components": "~1.9.6",
|
|
83
|
+
"@darajs/ui-components": "~1.9.6",
|
|
84
|
+
"@darajs/ui-notifications": "~1.9.6",
|
|
85
|
+
"@darajs/ui-utils": "~1.9.6",
|
|
86
86
|
"@fortawesome/fontawesome-free": "~6.4.0",
|
|
87
87
|
"@recoiljs/refine": "^0.1.1",
|
|
88
88
|
"@tanstack/query-core": "^4.0.0",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "3087b94fd77c2da3f985242eee14a8bff14074dd"
|
|
122
122
|
}
|