@cloudtower/eagle 0.22.10 → 0.22.11
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/components/Table/index.d.ts +0 -1
- package/dist/esm/index.js +154 -177
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/store/index.d.ts +3 -8
- package/dist/style.css +667 -671
- package/dist/umd/index.js +156 -176
- package/dist/umd/stats1.html +1 -1
- package/package.json +4 -4
- package/dist/components/Table/TableSelection.d.ts +0 -27
package/dist/esm/index.js
CHANGED
|
@@ -1918,138 +1918,76 @@ const modalReducer = (state = initialModalState, action) => {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
1920
|
|
|
1921
|
-
var __defProp$6 = Object.defineProperty;
|
|
1922
|
-
var __defProps$3 = Object.defineProperties;
|
|
1923
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
1924
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
1925
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
1926
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
1927
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1928
|
-
var __spreadValues$6 = (a, b) => {
|
|
1929
|
-
for (var prop in b || (b = {}))
|
|
1930
|
-
if (__hasOwnProp$6.call(b, prop))
|
|
1931
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
1932
|
-
if (__getOwnPropSymbols$6)
|
|
1933
|
-
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
1934
|
-
if (__propIsEnum$6.call(b, prop))
|
|
1935
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
1936
|
-
}
|
|
1937
|
-
return a;
|
|
1938
|
-
};
|
|
1939
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
1940
|
-
const initialTableState = {};
|
|
1941
|
-
const tableReducer = (state = initialTableState, action) => {
|
|
1942
|
-
var _a;
|
|
1943
|
-
switch (action.type) {
|
|
1944
|
-
case "SET_ROWS_SELECTION" /* SET_ROWS_SELECTION */: {
|
|
1945
|
-
const { resource, rows } = action.payload;
|
|
1946
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1947
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1948
|
-
selectRows: rows
|
|
1949
|
-
})
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
case "REMOVE_ROW_SELECTION" /* REMOVE_ROW_SELECTION */: {
|
|
1953
|
-
const { resource, id } = action.payload;
|
|
1954
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1955
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1956
|
-
selectRows: (_a = state[resource].selectRows) == null ? void 0 : _a.filter((r) => r.id !== id)
|
|
1957
|
-
})
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
1961
|
-
const { resource, rows } = action.payload;
|
|
1962
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1963
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1964
|
-
rows
|
|
1965
|
-
})
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
case "SET_RESOURCE_QUERY" /* SET_RESOURCE_QUERY */: {
|
|
1969
|
-
const { resource, query } = action.payload;
|
|
1970
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1971
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1972
|
-
query
|
|
1973
|
-
})
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
default:
|
|
1977
|
-
return state;
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
|
|
1981
1921
|
const appReducer = combineReducers({
|
|
1982
1922
|
chart: chartReducer,
|
|
1983
|
-
modal: modalReducer
|
|
1984
|
-
table: tableReducer
|
|
1923
|
+
modal: modalReducer
|
|
1985
1924
|
});
|
|
1986
1925
|
const rootReducer = (state, action) => {
|
|
1987
|
-
if (action.type === "
|
|
1926
|
+
if (action.type === "RESET_UI_KIT_STORE") {
|
|
1988
1927
|
state = {
|
|
1989
1928
|
modal: initialModalState,
|
|
1990
|
-
chart: initialChartState
|
|
1991
|
-
table: initialTableState
|
|
1929
|
+
chart: initialChartState
|
|
1992
1930
|
};
|
|
1993
1931
|
}
|
|
1994
1932
|
return appReducer(state, action);
|
|
1995
1933
|
};
|
|
1996
|
-
const
|
|
1934
|
+
const UIKitStore = createStore(rootReducer);
|
|
1997
1935
|
function pushModal(modal) {
|
|
1998
|
-
|
|
1936
|
+
UIKitStore.dispatch({
|
|
1999
1937
|
type: ModalActions.PUSH_MODAL,
|
|
2000
1938
|
payload: modal
|
|
2001
1939
|
});
|
|
2002
1940
|
}
|
|
2003
1941
|
function popModal() {
|
|
2004
|
-
|
|
1942
|
+
UIKitStore.dispatch({
|
|
2005
1943
|
type: ModalActions.POP_MODAL
|
|
2006
1944
|
});
|
|
2007
1945
|
}
|
|
2008
1946
|
function closeModal(id) {
|
|
2009
|
-
|
|
1947
|
+
UIKitStore.dispatch({
|
|
2010
1948
|
type: ModalActions.CLOSE_MODAL,
|
|
2011
1949
|
id
|
|
2012
1950
|
});
|
|
2013
1951
|
}
|
|
2014
1952
|
|
|
2015
1953
|
const ctx = createContext({
|
|
2016
|
-
store,
|
|
2017
|
-
storeState:
|
|
1954
|
+
store: UIKitStore,
|
|
1955
|
+
storeState: UIKitStore.getState()
|
|
2018
1956
|
});
|
|
2019
1957
|
const KitStoreProvider = (props) => {
|
|
2020
1958
|
const { children } = props;
|
|
2021
|
-
return /* @__PURE__ */ React.createElement(Provider, { context: ctx, store }, children);
|
|
1959
|
+
return /* @__PURE__ */ React.createElement(Provider, { context: ctx, store: UIKitStore }, children);
|
|
2022
1960
|
};
|
|
2023
1961
|
const useKitDispatch = createDispatchHook(ctx);
|
|
2024
1962
|
const useKitSelector = createSelectorHook(ctx);
|
|
2025
1963
|
|
|
2026
|
-
var __defProp$
|
|
2027
|
-
var __defProps$
|
|
2028
|
-
var __getOwnPropDescs$
|
|
2029
|
-
var __getOwnPropSymbols$
|
|
2030
|
-
var __hasOwnProp$
|
|
2031
|
-
var __propIsEnum$
|
|
2032
|
-
var __defNormalProp$
|
|
2033
|
-
var __spreadValues$
|
|
1964
|
+
var __defProp$6 = Object.defineProperty;
|
|
1965
|
+
var __defProps$3 = Object.defineProperties;
|
|
1966
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
1967
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
1968
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
1969
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
1970
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1971
|
+
var __spreadValues$6 = (a, b) => {
|
|
2034
1972
|
for (var prop in b || (b = {}))
|
|
2035
|
-
if (__hasOwnProp$
|
|
2036
|
-
__defNormalProp$
|
|
2037
|
-
if (__getOwnPropSymbols$
|
|
2038
|
-
for (var prop of __getOwnPropSymbols$
|
|
2039
|
-
if (__propIsEnum$
|
|
2040
|
-
__defNormalProp$
|
|
1973
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
1974
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
1975
|
+
if (__getOwnPropSymbols$6)
|
|
1976
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
1977
|
+
if (__propIsEnum$6.call(b, prop))
|
|
1978
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
2041
1979
|
}
|
|
2042
1980
|
return a;
|
|
2043
1981
|
};
|
|
2044
|
-
var __spreadProps$
|
|
1982
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
2045
1983
|
var __objRest$4 = (source, exclude) => {
|
|
2046
1984
|
var target = {};
|
|
2047
1985
|
for (var prop in source)
|
|
2048
|
-
if (__hasOwnProp$
|
|
1986
|
+
if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2049
1987
|
target[prop] = source[prop];
|
|
2050
|
-
if (source != null && __getOwnPropSymbols$
|
|
2051
|
-
for (var prop of __getOwnPropSymbols$
|
|
2052
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1988
|
+
if (source != null && __getOwnPropSymbols$6)
|
|
1989
|
+
for (var prop of __getOwnPropSymbols$6(source)) {
|
|
1990
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
|
|
2053
1991
|
target[prop] = source[prop];
|
|
2054
1992
|
}
|
|
2055
1993
|
return target;
|
|
@@ -2130,7 +2068,7 @@ const Modal = (props) => {
|
|
|
2130
2068
|
}
|
|
2131
2069
|
return /* @__PURE__ */ React.createElement(
|
|
2132
2070
|
Modal$1,
|
|
2133
|
-
__spreadProps$
|
|
2071
|
+
__spreadProps$3(__spreadValues$6({
|
|
2134
2072
|
maskClosable,
|
|
2135
2073
|
className: cs(
|
|
2136
2074
|
className,
|
|
@@ -2165,7 +2103,7 @@ const Modal = (props) => {
|
|
|
2165
2103
|
prevText
|
|
2166
2104
|
), error && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React.createElement(
|
|
2167
2105
|
Button,
|
|
2168
|
-
__spreadValues$
|
|
2106
|
+
__spreadValues$6({
|
|
2169
2107
|
type: "quiet",
|
|
2170
2108
|
onMouseDown: (e) => {
|
|
2171
2109
|
e.preventDefault();
|
|
@@ -2179,7 +2117,7 @@ const Modal = (props) => {
|
|
|
2179
2117
|
cancelText
|
|
2180
2118
|
), showOk && /* @__PURE__ */ React.createElement(
|
|
2181
2119
|
Button,
|
|
2182
|
-
__spreadValues$
|
|
2120
|
+
__spreadValues$6({
|
|
2183
2121
|
onClick: (e) => {
|
|
2184
2122
|
var _a2, _b2;
|
|
2185
2123
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -2325,28 +2263,28 @@ const Pagination = props => {
|
|
|
2325
2263
|
}))));
|
|
2326
2264
|
};
|
|
2327
2265
|
|
|
2328
|
-
var __defProp$
|
|
2329
|
-
var __getOwnPropSymbols$
|
|
2330
|
-
var __hasOwnProp$
|
|
2331
|
-
var __propIsEnum$
|
|
2332
|
-
var __defNormalProp$
|
|
2266
|
+
var __defProp$5 = Object.defineProperty;
|
|
2267
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
2268
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
2269
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
2270
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
2333
2271
|
enumerable: true,
|
|
2334
2272
|
configurable: true,
|
|
2335
2273
|
writable: true,
|
|
2336
2274
|
value
|
|
2337
2275
|
}) : obj[key] = value;
|
|
2338
|
-
var __spreadValues$
|
|
2339
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2340
|
-
if (__getOwnPropSymbols$
|
|
2341
|
-
if (__propIsEnum$
|
|
2276
|
+
var __spreadValues$5 = (a, b) => {
|
|
2277
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
2278
|
+
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
2279
|
+
if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
2342
2280
|
}
|
|
2343
2281
|
return a;
|
|
2344
2282
|
};
|
|
2345
2283
|
var __objRest$3 = (source, exclude) => {
|
|
2346
2284
|
var target = {};
|
|
2347
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2348
|
-
if (source != null && __getOwnPropSymbols$
|
|
2349
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2285
|
+
for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2286
|
+
if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
|
|
2287
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
|
|
2350
2288
|
}
|
|
2351
2289
|
return target;
|
|
2352
2290
|
};
|
|
@@ -2372,7 +2310,7 @@ const Radio = _a => {
|
|
|
2372
2310
|
className: cx("radio-description", Typo.Label.l4_regular)
|
|
2373
2311
|
}, description));
|
|
2374
2312
|
}
|
|
2375
|
-
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Radio$1, __spreadValues$
|
|
2313
|
+
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(Radio$1, __spreadValues$5({
|
|
2376
2314
|
className: cx(className, RadioStyle, compact && "compact"),
|
|
2377
2315
|
checked: checked || false,
|
|
2378
2316
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -2390,7 +2328,7 @@ const RadioGroup = _c => {
|
|
|
2390
2328
|
disabled: props.disabled,
|
|
2391
2329
|
name: props.name
|
|
2392
2330
|
}
|
|
2393
|
-
}, /* @__PURE__ */React.createElement(Radio$1.Group, __spreadValues$
|
|
2331
|
+
}, /* @__PURE__ */React.createElement(Radio$1.Group, __spreadValues$5({
|
|
2394
2332
|
className: cx(className, RadioGroupStyle)
|
|
2395
2333
|
}, props), children ? children : null));
|
|
2396
2334
|
};
|
|
@@ -2446,36 +2384,36 @@ const RadioButton = _e => {
|
|
|
2446
2384
|
className: "ant-radio-button-input-label"
|
|
2447
2385
|
}, typeof children === "string" ? children : ""));
|
|
2448
2386
|
};
|
|
2449
|
-
return /* @__PURE__ */React.createElement(Radio$1.Button, __spreadValues$
|
|
2387
|
+
return /* @__PURE__ */React.createElement(Radio$1.Button, __spreadValues$5({
|
|
2450
2388
|
className: cx(className, RadioButtonStyle),
|
|
2451
2389
|
value: radioButtonValue
|
|
2452
2390
|
}, props), renderChildren());
|
|
2453
2391
|
};
|
|
2454
2392
|
|
|
2455
|
-
var __defProp$
|
|
2456
|
-
var __getOwnPropSymbols$
|
|
2457
|
-
var __hasOwnProp$
|
|
2458
|
-
var __propIsEnum$
|
|
2459
|
-
var __defNormalProp$
|
|
2460
|
-
var __spreadValues$
|
|
2393
|
+
var __defProp$4 = Object.defineProperty;
|
|
2394
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
2395
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
2396
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
2397
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2398
|
+
var __spreadValues$4 = (a, b) => {
|
|
2461
2399
|
for (var prop in b || (b = {}))
|
|
2462
|
-
if (__hasOwnProp$
|
|
2463
|
-
__defNormalProp$
|
|
2464
|
-
if (__getOwnPropSymbols$
|
|
2465
|
-
for (var prop of __getOwnPropSymbols$
|
|
2466
|
-
if (__propIsEnum$
|
|
2467
|
-
__defNormalProp$
|
|
2400
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
2401
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
2402
|
+
if (__getOwnPropSymbols$4)
|
|
2403
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
2404
|
+
if (__propIsEnum$4.call(b, prop))
|
|
2405
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
2468
2406
|
}
|
|
2469
2407
|
return a;
|
|
2470
2408
|
};
|
|
2471
2409
|
var __objRest$2 = (source, exclude) => {
|
|
2472
2410
|
var target = {};
|
|
2473
2411
|
for (var prop in source)
|
|
2474
|
-
if (__hasOwnProp$
|
|
2412
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2475
2413
|
target[prop] = source[prop];
|
|
2476
|
-
if (source != null && __getOwnPropSymbols$
|
|
2477
|
-
for (var prop of __getOwnPropSymbols$
|
|
2478
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2414
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
2415
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
2416
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
2479
2417
|
target[prop] = source[prop];
|
|
2480
2418
|
}
|
|
2481
2419
|
return target;
|
|
@@ -2485,7 +2423,7 @@ const SearchInput = (props) => {
|
|
|
2485
2423
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
2486
2424
|
return /* @__PURE__ */ React.createElement(
|
|
2487
2425
|
Input,
|
|
2488
|
-
__spreadValues$
|
|
2426
|
+
__spreadValues$4({
|
|
2489
2427
|
style: { width: 276 },
|
|
2490
2428
|
prefix: /* @__PURE__ */ React.createElement(SearchOutlined, null),
|
|
2491
2429
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -2641,26 +2579,26 @@ const ColumnTitle = props => {
|
|
|
2641
2579
|
}));
|
|
2642
2580
|
};
|
|
2643
2581
|
|
|
2644
|
-
var __defProp$
|
|
2645
|
-
var __defProps$
|
|
2646
|
-
var __getOwnPropDescs$
|
|
2647
|
-
var __getOwnPropSymbols$
|
|
2648
|
-
var __hasOwnProp$
|
|
2649
|
-
var __propIsEnum$
|
|
2650
|
-
var __defNormalProp$
|
|
2582
|
+
var __defProp$3 = Object.defineProperty;
|
|
2583
|
+
var __defProps$2 = Object.defineProperties;
|
|
2584
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
2585
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
2586
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
2587
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
2588
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
2651
2589
|
enumerable: true,
|
|
2652
2590
|
configurable: true,
|
|
2653
2591
|
writable: true,
|
|
2654
2592
|
value
|
|
2655
2593
|
}) : obj[key] = value;
|
|
2656
|
-
var __spreadValues$
|
|
2657
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2658
|
-
if (__getOwnPropSymbols$
|
|
2659
|
-
if (__propIsEnum$
|
|
2594
|
+
var __spreadValues$3 = (a, b) => {
|
|
2595
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
2596
|
+
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
2597
|
+
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
2660
2598
|
}
|
|
2661
2599
|
return a;
|
|
2662
2600
|
};
|
|
2663
|
-
var __spreadProps$
|
|
2601
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
2664
2602
|
const TableContainerStyle = "t1upn1sz";
|
|
2665
2603
|
const tableStyleCover = "tta5kd2";
|
|
2666
2604
|
const Table = props => {
|
|
@@ -2699,7 +2637,7 @@ const Table = props => {
|
|
|
2699
2637
|
},
|
|
2700
2638
|
dataSource: dataSource || [],
|
|
2701
2639
|
pagination: pagination || false,
|
|
2702
|
-
columns: columns.map(column => column.sorter ? __spreadProps$
|
|
2640
|
+
columns: columns.map(column => column.sorter ? __spreadProps$2(__spreadValues$3({}, column), {
|
|
2703
2641
|
title: /* @__PURE__ */React.createElement(ColumnTitle, {
|
|
2704
2642
|
title: column.title,
|
|
2705
2643
|
sortOrder: column.sortOrder
|
|
@@ -2720,7 +2658,7 @@ const Table = props => {
|
|
|
2720
2658
|
}),
|
|
2721
2659
|
rowClassName,
|
|
2722
2660
|
scroll,
|
|
2723
|
-
rowSelection: rowSelection && __spreadProps$
|
|
2661
|
+
rowSelection: rowSelection && __spreadProps$2(__spreadValues$3({}, rowSelection), {
|
|
2724
2662
|
columnWidth: 32
|
|
2725
2663
|
}),
|
|
2726
2664
|
showSorterTooltip: false
|
|
@@ -2834,33 +2772,33 @@ const TimeZoneOption = ({
|
|
|
2834
2772
|
}, /* @__PURE__ */React.createElement("span", null, timeZone.text, ", ", timeZone.abbr)));
|
|
2835
2773
|
};
|
|
2836
2774
|
|
|
2837
|
-
var __defProp$
|
|
2838
|
-
var __defProps = Object.defineProperties;
|
|
2839
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2840
|
-
var __getOwnPropSymbols$
|
|
2841
|
-
var __hasOwnProp$
|
|
2842
|
-
var __propIsEnum$
|
|
2843
|
-
var __defNormalProp$
|
|
2844
|
-
var __spreadValues$
|
|
2775
|
+
var __defProp$2 = Object.defineProperty;
|
|
2776
|
+
var __defProps$1 = Object.defineProperties;
|
|
2777
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
2778
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
2779
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
2780
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
2781
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2782
|
+
var __spreadValues$2 = (a, b) => {
|
|
2845
2783
|
for (var prop in b || (b = {}))
|
|
2846
|
-
if (__hasOwnProp$
|
|
2847
|
-
__defNormalProp$
|
|
2848
|
-
if (__getOwnPropSymbols$
|
|
2849
|
-
for (var prop of __getOwnPropSymbols$
|
|
2850
|
-
if (__propIsEnum$
|
|
2851
|
-
__defNormalProp$
|
|
2784
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
2785
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
2786
|
+
if (__getOwnPropSymbols$2)
|
|
2787
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
2788
|
+
if (__propIsEnum$2.call(b, prop))
|
|
2789
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
2852
2790
|
}
|
|
2853
2791
|
return a;
|
|
2854
2792
|
};
|
|
2855
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
2793
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
2856
2794
|
var __objRest$1 = (source, exclude) => {
|
|
2857
2795
|
var target = {};
|
|
2858
2796
|
for (var prop in source)
|
|
2859
|
-
if (__hasOwnProp$
|
|
2797
|
+
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2860
2798
|
target[prop] = source[prop];
|
|
2861
|
-
if (source != null && __getOwnPropSymbols$
|
|
2862
|
-
for (var prop of __getOwnPropSymbols$
|
|
2863
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2799
|
+
if (source != null && __getOwnPropSymbols$2)
|
|
2800
|
+
for (var prop of __getOwnPropSymbols$2(source)) {
|
|
2801
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
|
|
2864
2802
|
target[prop] = source[prop];
|
|
2865
2803
|
}
|
|
2866
2804
|
return target;
|
|
@@ -2914,10 +2852,10 @@ const Tooltip = (props) => {
|
|
|
2914
2852
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
2915
2853
|
return /* @__PURE__ */ React.createElement(
|
|
2916
2854
|
Tooltip$1,
|
|
2917
|
-
__spreadProps(__spreadValues$
|
|
2855
|
+
__spreadProps$1(__spreadValues$2({}, restProps), {
|
|
2918
2856
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
2919
2857
|
children: _children,
|
|
2920
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
2858
|
+
overlayStyle: followMouse ? __spreadValues$2({
|
|
2921
2859
|
transform: "translate(-50%, -100%)",
|
|
2922
2860
|
pointerEvents: "none"
|
|
2923
2861
|
}, overlayStyle) : overlayStyle
|
|
@@ -2971,28 +2909,28 @@ function getAntdKit() {
|
|
|
2971
2909
|
}
|
|
2972
2910
|
const antdKit = getAntdKit();
|
|
2973
2911
|
|
|
2974
|
-
var __defProp = Object.defineProperty;
|
|
2975
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2976
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2977
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
2978
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
2912
|
+
var __defProp$1 = Object.defineProperty;
|
|
2913
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
2914
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
2915
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
2916
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
2979
2917
|
enumerable: true,
|
|
2980
2918
|
configurable: true,
|
|
2981
2919
|
writable: true,
|
|
2982
2920
|
value
|
|
2983
2921
|
}) : obj[key] = value;
|
|
2984
|
-
var __spreadValues = (a, b) => {
|
|
2985
|
-
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
2986
|
-
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
2987
|
-
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
2922
|
+
var __spreadValues$1 = (a, b) => {
|
|
2923
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
2924
|
+
if (__getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(b)) {
|
|
2925
|
+
if (__propIsEnum$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
2988
2926
|
}
|
|
2989
2927
|
return a;
|
|
2990
2928
|
};
|
|
2991
2929
|
var __objRest = (source, exclude) => {
|
|
2992
2930
|
var target = {};
|
|
2993
|
-
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2994
|
-
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
2995
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
2931
|
+
for (var prop in source) if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2932
|
+
if (source != null && __getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(source)) {
|
|
2933
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop)) target[prop] = source[prop];
|
|
2996
2934
|
}
|
|
2997
2935
|
return target;
|
|
2998
2936
|
};
|
|
@@ -3036,7 +2974,7 @@ React.forwardRef((props, ref) => {
|
|
|
3036
2974
|
style: {
|
|
3037
2975
|
cursor: "not-allowed"
|
|
3038
2976
|
}
|
|
3039
|
-
}, /* @__PURE__ */React.createElement(Button, __spreadValues({
|
|
2977
|
+
}, /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3040
2978
|
style: {
|
|
3041
2979
|
pointerEvents: "none"
|
|
3042
2980
|
},
|
|
@@ -3046,7 +2984,7 @@ React.forwardRef((props, ref) => {
|
|
|
3046
2984
|
ghost,
|
|
3047
2985
|
className: cx(ButtonStyle, className2),
|
|
3048
2986
|
prefixIcon: icon
|
|
3049
|
-
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues({
|
|
2987
|
+
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3050
2988
|
type,
|
|
3051
2989
|
size,
|
|
3052
2990
|
danger,
|
|
@@ -3055,7 +2993,7 @@ React.forwardRef((props, ref) => {
|
|
|
3055
2993
|
prefixIcon: icon
|
|
3056
2994
|
}, buttonPropArgs)));
|
|
3057
2995
|
}
|
|
3058
|
-
return /* @__PURE__ */React.createElement(Button, __spreadValues({
|
|
2996
|
+
return /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3059
2997
|
key: key || index,
|
|
3060
2998
|
type,
|
|
3061
2999
|
size,
|
|
@@ -3121,6 +3059,45 @@ const tickFormatter = (tick, dateRange) => {
|
|
|
3121
3059
|
return dayjs(tick).format("MM/DD");
|
|
3122
3060
|
};
|
|
3123
3061
|
|
|
3062
|
+
var __defProp = Object.defineProperty;
|
|
3063
|
+
var __defProps = Object.defineProperties;
|
|
3064
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3065
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3066
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3067
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
3068
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3069
|
+
var __spreadValues = (a, b) => {
|
|
3070
|
+
for (var prop in b || (b = {}))
|
|
3071
|
+
if (__hasOwnProp.call(b, prop))
|
|
3072
|
+
__defNormalProp(a, prop, b[prop]);
|
|
3073
|
+
if (__getOwnPropSymbols)
|
|
3074
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
3075
|
+
if (__propIsEnum.call(b, prop))
|
|
3076
|
+
__defNormalProp(a, prop, b[prop]);
|
|
3077
|
+
}
|
|
3078
|
+
return a;
|
|
3079
|
+
};
|
|
3080
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
3081
|
+
const ModalStack = () => {
|
|
3082
|
+
const stack = useKitSelector(
|
|
3083
|
+
(state) => state.modal.stack
|
|
3084
|
+
);
|
|
3085
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, stack.map((modal) => /* @__PURE__ */ React.createElement(
|
|
3086
|
+
modal.component,
|
|
3087
|
+
__spreadProps(__spreadValues({}, modal.props), {
|
|
3088
|
+
modalId: modal.id,
|
|
3089
|
+
onClose: () => {
|
|
3090
|
+
var _a;
|
|
3091
|
+
if ((_a = modal.props) == null ? void 0 : _a.onClose) {
|
|
3092
|
+
modal.props.onClose();
|
|
3093
|
+
}
|
|
3094
|
+
closeModal(modal.id);
|
|
3095
|
+
},
|
|
3096
|
+
key: modal.id
|
|
3097
|
+
})
|
|
3098
|
+
)));
|
|
3099
|
+
};
|
|
3100
|
+
|
|
3124
3101
|
var Architecture = /* @__PURE__ */ ((Architecture2) => {
|
|
3125
3102
|
Architecture2["Aarch64"] = "AARCH64";
|
|
3126
3103
|
Architecture2["X86_64"] = "X86_64";
|
|
@@ -3155,4 +3132,4 @@ const useUIKit = () => {
|
|
|
3155
3132
|
return useContext(kitContext);
|
|
3156
3133
|
};
|
|
3157
3134
|
|
|
3158
|
-
export { Architecture, Button, EntityAsyncStatus, FailedLoad, KitStoreProvider, PAGINATION_SELECTOR, TABLE_WRAPPER_SELECTOR, TBODY_SELECTOR, THEAD_SELECTOR, TaskStatus, Typo, UIKitProvider, UserSource, antdKit, closeModal, kitContext, popModal, pushModal, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };
|
|
3135
|
+
export { Architecture, Button, EntityAsyncStatus, FailedLoad, KitStoreProvider, ModalActions, ModalStack, PAGINATION_SELECTOR, TABLE_WRAPPER_SELECTOR, TBODY_SELECTOR, THEAD_SELECTOR, TaskStatus, Typo, UIKitProvider, UIKitStore, UserSource, antdKit, closeModal, kitContext, popModal, pushModal, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };
|