@cloudtower/eagle 0.22.10 → 0.22.12
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/BaseIcon/index.d.ts +4 -2
- package/dist/components/Icon/Icon.stories.d.ts +7 -24
- package/dist/components/Icon/index.d.ts +13 -12
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/esm/index.js +209 -181
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/spec/base.d.ts +5 -0
- package/dist/store/index.d.ts +3 -8
- package/dist/style.css +673 -677
- package/dist/umd/index.js +211 -180
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -4
- package/dist/components/Table/TableSelection.d.ts +0 -27
- package/dist/stories/outline.stories.d.ts +0 -5
- /package/dist/stories/{fill.stories.d.ts → icons-react.stories.d.ts} +0 -0
package/dist/umd/index.js
CHANGED
|
@@ -4,10 +4,36 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.cs, global.React, global._, global.moment, global.reactDom, global.reactIs, global.react, global.icons, global.parrot, global.redux, global.reactRedux, global.core, null, global.TimeZones, global.reactI18next, global.dayjs));
|
|
5
5
|
})(this, (function (exports, antd, cs, React, _, moment, reactDom, reactIs, react, icons, parrot, redux, reactRedux, core, getScrollBarSize, TimeZones, reactI18next, dayjs) { 'use strict';
|
|
6
6
|
|
|
7
|
+
const MAGIC_METRIC_NULL = -2;
|
|
7
8
|
const SECOND = 1;
|
|
8
9
|
const MINUTE = 60 * SECOND;
|
|
9
10
|
const HOUR = 60 * MINUTE;
|
|
10
11
|
const DAY = 24 * HOUR;
|
|
12
|
+
function formatPercent(input, decimals = 2) {
|
|
13
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
14
|
+
input = 0;
|
|
15
|
+
}
|
|
16
|
+
if (input > 100) {
|
|
17
|
+
input = 100;
|
|
18
|
+
}
|
|
19
|
+
const value = parseFloat(input.toFixed(decimals));
|
|
20
|
+
if (value === 0 && input > 0) {
|
|
21
|
+
if (decimals - 1 >= 0) {
|
|
22
|
+
return {
|
|
23
|
+
value: parseFloat(`0.${"0".repeat(decimals - 1)}1`),
|
|
24
|
+
unit: "%"
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
value: 1,
|
|
29
|
+
unit: "%"
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
value,
|
|
34
|
+
unit: "%"
|
|
35
|
+
};
|
|
36
|
+
}
|
|
11
37
|
|
|
12
38
|
const EMPTY_FUNCTION = () => {
|
|
13
39
|
};
|
|
@@ -101,8 +127,8 @@
|
|
|
101
127
|
style,
|
|
102
128
|
children,
|
|
103
129
|
prefixNode,
|
|
104
|
-
suffixIconSrc,
|
|
105
|
-
src
|
|
130
|
+
suffixIconSrc: SuffixSrc,
|
|
131
|
+
src: Src
|
|
106
132
|
} = _a, HTMLSpanElementProps = __objRest$o(_a, [
|
|
107
133
|
"alt",
|
|
108
134
|
"className",
|
|
@@ -123,9 +149,9 @@
|
|
|
123
149
|
style: _.pickBy(__spreadValues$s({ cursor }, style))
|
|
124
150
|
}, HTMLSpanElementProps),
|
|
125
151
|
prefixNode,
|
|
126
|
-
/* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, /* @__PURE__ */ React.createElement("img", { alt, src, width, height })),
|
|
152
|
+
/* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React.createElement(Src, { width, height })),
|
|
127
153
|
children && /* @__PURE__ */ React.createElement("span", { className: "icon-children" }, children),
|
|
128
|
-
|
|
154
|
+
SuffixSrc && /* @__PURE__ */ React.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React.createElement(SuffixSrc, { width, height }))
|
|
129
155
|
);
|
|
130
156
|
}
|
|
131
157
|
);
|
|
@@ -1903,138 +1929,76 @@
|
|
|
1903
1929
|
}
|
|
1904
1930
|
};
|
|
1905
1931
|
|
|
1906
|
-
var __defProp$6 = Object.defineProperty;
|
|
1907
|
-
var __defProps$3 = Object.defineProperties;
|
|
1908
|
-
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
1909
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
1910
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
1911
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
1912
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1913
|
-
var __spreadValues$6 = (a, b) => {
|
|
1914
|
-
for (var prop in b || (b = {}))
|
|
1915
|
-
if (__hasOwnProp$6.call(b, prop))
|
|
1916
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
1917
|
-
if (__getOwnPropSymbols$6)
|
|
1918
|
-
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
1919
|
-
if (__propIsEnum$6.call(b, prop))
|
|
1920
|
-
__defNormalProp$6(a, prop, b[prop]);
|
|
1921
|
-
}
|
|
1922
|
-
return a;
|
|
1923
|
-
};
|
|
1924
|
-
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
1925
|
-
const initialTableState = {};
|
|
1926
|
-
const tableReducer = (state = initialTableState, action) => {
|
|
1927
|
-
var _a;
|
|
1928
|
-
switch (action.type) {
|
|
1929
|
-
case "SET_ROWS_SELECTION" /* SET_ROWS_SELECTION */: {
|
|
1930
|
-
const { resource, rows } = action.payload;
|
|
1931
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1932
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1933
|
-
selectRows: rows
|
|
1934
|
-
})
|
|
1935
|
-
});
|
|
1936
|
-
}
|
|
1937
|
-
case "REMOVE_ROW_SELECTION" /* REMOVE_ROW_SELECTION */: {
|
|
1938
|
-
const { resource, id } = action.payload;
|
|
1939
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1940
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1941
|
-
selectRows: (_a = state[resource].selectRows) == null ? void 0 : _a.filter((r) => r.id !== id)
|
|
1942
|
-
})
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
|
|
1946
|
-
const { resource, rows } = action.payload;
|
|
1947
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1948
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1949
|
-
rows
|
|
1950
|
-
})
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
case "SET_RESOURCE_QUERY" /* SET_RESOURCE_QUERY */: {
|
|
1954
|
-
const { resource, query } = action.payload;
|
|
1955
|
-
return __spreadProps$3(__spreadValues$6({}, state), {
|
|
1956
|
-
[resource]: __spreadProps$3(__spreadValues$6({}, state[resource]), {
|
|
1957
|
-
query
|
|
1958
|
-
})
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
default:
|
|
1962
|
-
return state;
|
|
1963
|
-
}
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
1932
|
const appReducer = redux.combineReducers({
|
|
1967
1933
|
chart: chartReducer,
|
|
1968
|
-
modal: modalReducer
|
|
1969
|
-
table: tableReducer
|
|
1934
|
+
modal: modalReducer
|
|
1970
1935
|
});
|
|
1971
1936
|
const rootReducer = (state, action) => {
|
|
1972
|
-
if (action.type === "
|
|
1937
|
+
if (action.type === "RESET_UI_KIT_STORE") {
|
|
1973
1938
|
state = {
|
|
1974
1939
|
modal: initialModalState,
|
|
1975
|
-
chart: initialChartState
|
|
1976
|
-
table: initialTableState
|
|
1940
|
+
chart: initialChartState
|
|
1977
1941
|
};
|
|
1978
1942
|
}
|
|
1979
1943
|
return appReducer(state, action);
|
|
1980
1944
|
};
|
|
1981
|
-
const
|
|
1945
|
+
const UIKitStore = redux.createStore(rootReducer);
|
|
1982
1946
|
function pushModal(modal) {
|
|
1983
|
-
|
|
1947
|
+
UIKitStore.dispatch({
|
|
1984
1948
|
type: ModalActions.PUSH_MODAL,
|
|
1985
1949
|
payload: modal
|
|
1986
1950
|
});
|
|
1987
1951
|
}
|
|
1988
1952
|
function popModal() {
|
|
1989
|
-
|
|
1953
|
+
UIKitStore.dispatch({
|
|
1990
1954
|
type: ModalActions.POP_MODAL
|
|
1991
1955
|
});
|
|
1992
1956
|
}
|
|
1993
1957
|
function closeModal(id) {
|
|
1994
|
-
|
|
1958
|
+
UIKitStore.dispatch({
|
|
1995
1959
|
type: ModalActions.CLOSE_MODAL,
|
|
1996
1960
|
id
|
|
1997
1961
|
});
|
|
1998
1962
|
}
|
|
1999
1963
|
|
|
2000
1964
|
const ctx = React.createContext({
|
|
2001
|
-
store,
|
|
2002
|
-
storeState:
|
|
1965
|
+
store: UIKitStore,
|
|
1966
|
+
storeState: UIKitStore.getState()
|
|
2003
1967
|
});
|
|
2004
1968
|
const KitStoreProvider = (props) => {
|
|
2005
1969
|
const { children } = props;
|
|
2006
|
-
return /* @__PURE__ */ React.createElement(reactRedux.Provider, { context: ctx, store }, children);
|
|
1970
|
+
return /* @__PURE__ */ React.createElement(reactRedux.Provider, { context: ctx, store: UIKitStore }, children);
|
|
2007
1971
|
};
|
|
2008
1972
|
const useKitDispatch = reactRedux.createDispatchHook(ctx);
|
|
2009
1973
|
const useKitSelector = reactRedux.createSelectorHook(ctx);
|
|
2010
1974
|
|
|
2011
|
-
var __defProp$
|
|
2012
|
-
var __defProps$
|
|
2013
|
-
var __getOwnPropDescs$
|
|
2014
|
-
var __getOwnPropSymbols$
|
|
2015
|
-
var __hasOwnProp$
|
|
2016
|
-
var __propIsEnum$
|
|
2017
|
-
var __defNormalProp$
|
|
2018
|
-
var __spreadValues$
|
|
1975
|
+
var __defProp$6 = Object.defineProperty;
|
|
1976
|
+
var __defProps$3 = Object.defineProperties;
|
|
1977
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
1978
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
1979
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
1980
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
1981
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1982
|
+
var __spreadValues$6 = (a, b) => {
|
|
2019
1983
|
for (var prop in b || (b = {}))
|
|
2020
|
-
if (__hasOwnProp$
|
|
2021
|
-
__defNormalProp$
|
|
2022
|
-
if (__getOwnPropSymbols$
|
|
2023
|
-
for (var prop of __getOwnPropSymbols$
|
|
2024
|
-
if (__propIsEnum$
|
|
2025
|
-
__defNormalProp$
|
|
1984
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
1985
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
1986
|
+
if (__getOwnPropSymbols$6)
|
|
1987
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
1988
|
+
if (__propIsEnum$6.call(b, prop))
|
|
1989
|
+
__defNormalProp$6(a, prop, b[prop]);
|
|
2026
1990
|
}
|
|
2027
1991
|
return a;
|
|
2028
1992
|
};
|
|
2029
|
-
var __spreadProps$
|
|
1993
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
2030
1994
|
var __objRest$4 = (source, exclude) => {
|
|
2031
1995
|
var target = {};
|
|
2032
1996
|
for (var prop in source)
|
|
2033
|
-
if (__hasOwnProp$
|
|
1997
|
+
if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2034
1998
|
target[prop] = source[prop];
|
|
2035
|
-
if (source != null && __getOwnPropSymbols$
|
|
2036
|
-
for (var prop of __getOwnPropSymbols$
|
|
2037
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1999
|
+
if (source != null && __getOwnPropSymbols$6)
|
|
2000
|
+
for (var prop of __getOwnPropSymbols$6(source)) {
|
|
2001
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
|
|
2038
2002
|
target[prop] = source[prop];
|
|
2039
2003
|
}
|
|
2040
2004
|
return target;
|
|
@@ -2115,7 +2079,7 @@
|
|
|
2115
2079
|
}
|
|
2116
2080
|
return /* @__PURE__ */ React.createElement(
|
|
2117
2081
|
antd.Modal,
|
|
2118
|
-
__spreadProps$
|
|
2082
|
+
__spreadProps$3(__spreadValues$6({
|
|
2119
2083
|
maskClosable,
|
|
2120
2084
|
className: cs(
|
|
2121
2085
|
className,
|
|
@@ -2150,7 +2114,7 @@
|
|
|
2150
2114
|
prevText
|
|
2151
2115
|
), 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(
|
|
2152
2116
|
Button,
|
|
2153
|
-
__spreadValues$
|
|
2117
|
+
__spreadValues$6({
|
|
2154
2118
|
type: "quiet",
|
|
2155
2119
|
onMouseDown: (e) => {
|
|
2156
2120
|
e.preventDefault();
|
|
@@ -2164,7 +2128,7 @@
|
|
|
2164
2128
|
cancelText
|
|
2165
2129
|
), showOk && /* @__PURE__ */ React.createElement(
|
|
2166
2130
|
Button,
|
|
2167
|
-
__spreadValues$
|
|
2131
|
+
__spreadValues$6({
|
|
2168
2132
|
onClick: (e) => {
|
|
2169
2133
|
var _a2, _b2;
|
|
2170
2134
|
onOk == null ? void 0 : onOk(e);
|
|
@@ -2310,28 +2274,50 @@
|
|
|
2310
2274
|
}))));
|
|
2311
2275
|
};
|
|
2312
2276
|
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2277
|
+
function isEmpty(rawValue) {
|
|
2278
|
+
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue)) {
|
|
2279
|
+
return true;
|
|
2280
|
+
}
|
|
2281
|
+
return false;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
const Empty = /* @__PURE__ */ React.createElement(React.Fragment, null, "-");
|
|
2285
|
+
|
|
2286
|
+
const Percent = ({
|
|
2287
|
+
rawValue,
|
|
2288
|
+
decimals,
|
|
2289
|
+
valueClassName,
|
|
2290
|
+
unitClassName
|
|
2291
|
+
}) => {
|
|
2292
|
+
if (isEmpty(rawValue)) {
|
|
2293
|
+
return Empty;
|
|
2294
|
+
}
|
|
2295
|
+
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2296
|
+
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2299
|
+
var __defProp$5 = Object.defineProperty;
|
|
2300
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
2301
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
2302
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
2303
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
2318
2304
|
enumerable: true,
|
|
2319
2305
|
configurable: true,
|
|
2320
2306
|
writable: true,
|
|
2321
2307
|
value
|
|
2322
2308
|
}) : obj[key] = value;
|
|
2323
|
-
var __spreadValues$
|
|
2324
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2325
|
-
if (__getOwnPropSymbols$
|
|
2326
|
-
if (__propIsEnum$
|
|
2309
|
+
var __spreadValues$5 = (a, b) => {
|
|
2310
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
2311
|
+
if (__getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(b)) {
|
|
2312
|
+
if (__propIsEnum$5.call(b, prop)) __defNormalProp$5(a, prop, b[prop]);
|
|
2327
2313
|
}
|
|
2328
2314
|
return a;
|
|
2329
2315
|
};
|
|
2330
2316
|
var __objRest$3 = (source, exclude) => {
|
|
2331
2317
|
var target = {};
|
|
2332
|
-
for (var prop in source) if (__hasOwnProp$
|
|
2333
|
-
if (source != null && __getOwnPropSymbols$
|
|
2334
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2318
|
+
for (var prop in source) if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2319
|
+
if (source != null && __getOwnPropSymbols$5) for (var prop of __getOwnPropSymbols$5(source)) {
|
|
2320
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop)) target[prop] = source[prop];
|
|
2335
2321
|
}
|
|
2336
2322
|
return target;
|
|
2337
2323
|
};
|
|
@@ -2357,7 +2343,7 @@
|
|
|
2357
2343
|
className: core.cx("radio-description", Typo.Label.l4_regular)
|
|
2358
2344
|
}, description));
|
|
2359
2345
|
}
|
|
2360
|
-
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(antd.Radio, __spreadValues$
|
|
2346
|
+
return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(antd.Radio, __spreadValues$5({
|
|
2361
2347
|
className: core.cx(className, RadioStyle, compact && "compact"),
|
|
2362
2348
|
checked: checked || false,
|
|
2363
2349
|
"data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
|
|
@@ -2375,7 +2361,7 @@
|
|
|
2375
2361
|
disabled: props.disabled,
|
|
2376
2362
|
name: props.name
|
|
2377
2363
|
}
|
|
2378
|
-
}, /* @__PURE__ */React.createElement(antd.Radio.Group, __spreadValues$
|
|
2364
|
+
}, /* @__PURE__ */React.createElement(antd.Radio.Group, __spreadValues$5({
|
|
2379
2365
|
className: core.cx(className, RadioGroupStyle)
|
|
2380
2366
|
}, props), children ? children : null));
|
|
2381
2367
|
};
|
|
@@ -2431,36 +2417,36 @@
|
|
|
2431
2417
|
className: "ant-radio-button-input-label"
|
|
2432
2418
|
}, typeof children === "string" ? children : ""));
|
|
2433
2419
|
};
|
|
2434
|
-
return /* @__PURE__ */React.createElement(antd.Radio.Button, __spreadValues$
|
|
2420
|
+
return /* @__PURE__ */React.createElement(antd.Radio.Button, __spreadValues$5({
|
|
2435
2421
|
className: core.cx(className, RadioButtonStyle),
|
|
2436
2422
|
value: radioButtonValue
|
|
2437
2423
|
}, props), renderChildren());
|
|
2438
2424
|
};
|
|
2439
2425
|
|
|
2440
|
-
var __defProp$
|
|
2441
|
-
var __getOwnPropSymbols$
|
|
2442
|
-
var __hasOwnProp$
|
|
2443
|
-
var __propIsEnum$
|
|
2444
|
-
var __defNormalProp$
|
|
2445
|
-
var __spreadValues$
|
|
2426
|
+
var __defProp$4 = Object.defineProperty;
|
|
2427
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
2428
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
2429
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
2430
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2431
|
+
var __spreadValues$4 = (a, b) => {
|
|
2446
2432
|
for (var prop in b || (b = {}))
|
|
2447
|
-
if (__hasOwnProp$
|
|
2448
|
-
__defNormalProp$
|
|
2449
|
-
if (__getOwnPropSymbols$
|
|
2450
|
-
for (var prop of __getOwnPropSymbols$
|
|
2451
|
-
if (__propIsEnum$
|
|
2452
|
-
__defNormalProp$
|
|
2433
|
+
if (__hasOwnProp$4.call(b, prop))
|
|
2434
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
2435
|
+
if (__getOwnPropSymbols$4)
|
|
2436
|
+
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
2437
|
+
if (__propIsEnum$4.call(b, prop))
|
|
2438
|
+
__defNormalProp$4(a, prop, b[prop]);
|
|
2453
2439
|
}
|
|
2454
2440
|
return a;
|
|
2455
2441
|
};
|
|
2456
2442
|
var __objRest$2 = (source, exclude) => {
|
|
2457
2443
|
var target = {};
|
|
2458
2444
|
for (var prop in source)
|
|
2459
|
-
if (__hasOwnProp$
|
|
2445
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2460
2446
|
target[prop] = source[prop];
|
|
2461
|
-
if (source != null && __getOwnPropSymbols$
|
|
2462
|
-
for (var prop of __getOwnPropSymbols$
|
|
2463
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2447
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
2448
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
2449
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
2464
2450
|
target[prop] = source[prop];
|
|
2465
2451
|
}
|
|
2466
2452
|
return target;
|
|
@@ -2470,7 +2456,7 @@
|
|
|
2470
2456
|
const onSearch = _.debounce(onChange, debounceWait);
|
|
2471
2457
|
return /* @__PURE__ */ React.createElement(
|
|
2472
2458
|
Input,
|
|
2473
|
-
__spreadValues$
|
|
2459
|
+
__spreadValues$4({
|
|
2474
2460
|
style: { width: 276 },
|
|
2475
2461
|
prefix: /* @__PURE__ */ React.createElement(icons.SearchOutlined, null),
|
|
2476
2462
|
onChange: (e) => onSearch(e.target.value)
|
|
@@ -2626,26 +2612,26 @@
|
|
|
2626
2612
|
}));
|
|
2627
2613
|
};
|
|
2628
2614
|
|
|
2629
|
-
var __defProp$
|
|
2630
|
-
var __defProps$
|
|
2631
|
-
var __getOwnPropDescs$
|
|
2632
|
-
var __getOwnPropSymbols$
|
|
2633
|
-
var __hasOwnProp$
|
|
2634
|
-
var __propIsEnum$
|
|
2635
|
-
var __defNormalProp$
|
|
2615
|
+
var __defProp$3 = Object.defineProperty;
|
|
2616
|
+
var __defProps$2 = Object.defineProperties;
|
|
2617
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
2618
|
+
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
2619
|
+
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
2620
|
+
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
2621
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
2636
2622
|
enumerable: true,
|
|
2637
2623
|
configurable: true,
|
|
2638
2624
|
writable: true,
|
|
2639
2625
|
value
|
|
2640
2626
|
}) : obj[key] = value;
|
|
2641
|
-
var __spreadValues$
|
|
2642
|
-
for (var prop in b || (b = {})) if (__hasOwnProp$
|
|
2643
|
-
if (__getOwnPropSymbols$
|
|
2644
|
-
if (__propIsEnum$
|
|
2627
|
+
var __spreadValues$3 = (a, b) => {
|
|
2628
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
2629
|
+
if (__getOwnPropSymbols$3) for (var prop of __getOwnPropSymbols$3(b)) {
|
|
2630
|
+
if (__propIsEnum$3.call(b, prop)) __defNormalProp$3(a, prop, b[prop]);
|
|
2645
2631
|
}
|
|
2646
2632
|
return a;
|
|
2647
2633
|
};
|
|
2648
|
-
var __spreadProps$
|
|
2634
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
2649
2635
|
const TableContainerStyle = "t1upn1sz";
|
|
2650
2636
|
const tableStyleCover = "tta5kd2";
|
|
2651
2637
|
const Table = props => {
|
|
@@ -2684,7 +2670,7 @@
|
|
|
2684
2670
|
},
|
|
2685
2671
|
dataSource: dataSource || [],
|
|
2686
2672
|
pagination: pagination || false,
|
|
2687
|
-
columns: columns.map(column => column.sorter ? __spreadProps$
|
|
2673
|
+
columns: columns.map(column => column.sorter ? __spreadProps$2(__spreadValues$3({}, column), {
|
|
2688
2674
|
title: /* @__PURE__ */React.createElement(ColumnTitle, {
|
|
2689
2675
|
title: column.title,
|
|
2690
2676
|
sortOrder: column.sortOrder
|
|
@@ -2705,7 +2691,7 @@
|
|
|
2705
2691
|
}),
|
|
2706
2692
|
rowClassName,
|
|
2707
2693
|
scroll,
|
|
2708
|
-
rowSelection: rowSelection && __spreadProps$
|
|
2694
|
+
rowSelection: rowSelection && __spreadProps$2(__spreadValues$3({}, rowSelection), {
|
|
2709
2695
|
columnWidth: 32
|
|
2710
2696
|
}),
|
|
2711
2697
|
showSorterTooltip: false
|
|
@@ -2819,33 +2805,33 @@
|
|
|
2819
2805
|
}, /* @__PURE__ */React.createElement("span", null, timeZone.text, ", ", timeZone.abbr)));
|
|
2820
2806
|
};
|
|
2821
2807
|
|
|
2822
|
-
var __defProp$
|
|
2823
|
-
var __defProps = Object.defineProperties;
|
|
2824
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2825
|
-
var __getOwnPropSymbols$
|
|
2826
|
-
var __hasOwnProp$
|
|
2827
|
-
var __propIsEnum$
|
|
2828
|
-
var __defNormalProp$
|
|
2829
|
-
var __spreadValues$
|
|
2808
|
+
var __defProp$2 = Object.defineProperty;
|
|
2809
|
+
var __defProps$1 = Object.defineProperties;
|
|
2810
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
2811
|
+
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
2812
|
+
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
2813
|
+
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
2814
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2815
|
+
var __spreadValues$2 = (a, b) => {
|
|
2830
2816
|
for (var prop in b || (b = {}))
|
|
2831
|
-
if (__hasOwnProp$
|
|
2832
|
-
__defNormalProp$
|
|
2833
|
-
if (__getOwnPropSymbols$
|
|
2834
|
-
for (var prop of __getOwnPropSymbols$
|
|
2835
|
-
if (__propIsEnum$
|
|
2836
|
-
__defNormalProp$
|
|
2817
|
+
if (__hasOwnProp$2.call(b, prop))
|
|
2818
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
2819
|
+
if (__getOwnPropSymbols$2)
|
|
2820
|
+
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
2821
|
+
if (__propIsEnum$2.call(b, prop))
|
|
2822
|
+
__defNormalProp$2(a, prop, b[prop]);
|
|
2837
2823
|
}
|
|
2838
2824
|
return a;
|
|
2839
2825
|
};
|
|
2840
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
2826
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
2841
2827
|
var __objRest$1 = (source, exclude) => {
|
|
2842
2828
|
var target = {};
|
|
2843
2829
|
for (var prop in source)
|
|
2844
|
-
if (__hasOwnProp$
|
|
2830
|
+
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2845
2831
|
target[prop] = source[prop];
|
|
2846
|
-
if (source != null && __getOwnPropSymbols$
|
|
2847
|
-
for (var prop of __getOwnPropSymbols$
|
|
2848
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2832
|
+
if (source != null && __getOwnPropSymbols$2)
|
|
2833
|
+
for (var prop of __getOwnPropSymbols$2(source)) {
|
|
2834
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
|
|
2849
2835
|
target[prop] = source[prop];
|
|
2850
2836
|
}
|
|
2851
2837
|
return target;
|
|
@@ -2899,10 +2885,10 @@
|
|
|
2899
2885
|
}, [followMouse, onmousemove, uniqueContainerClass]);
|
|
2900
2886
|
return /* @__PURE__ */ React.createElement(
|
|
2901
2887
|
antd.Tooltip,
|
|
2902
|
-
__spreadProps(__spreadValues$
|
|
2888
|
+
__spreadProps$1(__spreadValues$2({}, restProps), {
|
|
2903
2889
|
overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
|
|
2904
2890
|
children: _children,
|
|
2905
|
-
overlayStyle: followMouse ? __spreadValues$
|
|
2891
|
+
overlayStyle: followMouse ? __spreadValues$2({
|
|
2906
2892
|
transform: "translate(-50%, -100%)",
|
|
2907
2893
|
pointerEvents: "none"
|
|
2908
2894
|
}, overlayStyle) : overlayStyle
|
|
@@ -2932,6 +2918,9 @@
|
|
|
2932
2918
|
textArea: TextArea,
|
|
2933
2919
|
checkbox: Checkbox,
|
|
2934
2920
|
fields,
|
|
2921
|
+
units: {
|
|
2922
|
+
Percent
|
|
2923
|
+
},
|
|
2935
2924
|
inputGroup: InputGroup,
|
|
2936
2925
|
alert: Alert,
|
|
2937
2926
|
searchInput: SearchInput,
|
|
@@ -2956,28 +2945,28 @@
|
|
|
2956
2945
|
}
|
|
2957
2946
|
const antdKit = getAntdKit();
|
|
2958
2947
|
|
|
2959
|
-
var __defProp = Object.defineProperty;
|
|
2960
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
2961
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2962
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
2963
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
2948
|
+
var __defProp$1 = Object.defineProperty;
|
|
2949
|
+
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
2950
|
+
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
2951
|
+
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
2952
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
2964
2953
|
enumerable: true,
|
|
2965
2954
|
configurable: true,
|
|
2966
2955
|
writable: true,
|
|
2967
2956
|
value
|
|
2968
2957
|
}) : obj[key] = value;
|
|
2969
|
-
var __spreadValues = (a, b) => {
|
|
2970
|
-
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
2971
|
-
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
2972
|
-
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
2958
|
+
var __spreadValues$1 = (a, b) => {
|
|
2959
|
+
for (var prop in b || (b = {})) if (__hasOwnProp$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
2960
|
+
if (__getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(b)) {
|
|
2961
|
+
if (__propIsEnum$1.call(b, prop)) __defNormalProp$1(a, prop, b[prop]);
|
|
2973
2962
|
}
|
|
2974
2963
|
return a;
|
|
2975
2964
|
};
|
|
2976
2965
|
var __objRest = (source, exclude) => {
|
|
2977
2966
|
var target = {};
|
|
2978
|
-
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2979
|
-
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
2980
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
2967
|
+
for (var prop in source) if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
2968
|
+
if (source != null && __getOwnPropSymbols$1) for (var prop of __getOwnPropSymbols$1(source)) {
|
|
2969
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop)) target[prop] = source[prop];
|
|
2981
2970
|
}
|
|
2982
2971
|
return target;
|
|
2983
2972
|
};
|
|
@@ -3021,7 +3010,7 @@
|
|
|
3021
3010
|
style: {
|
|
3022
3011
|
cursor: "not-allowed"
|
|
3023
3012
|
}
|
|
3024
|
-
}, /* @__PURE__ */React.createElement(Button, __spreadValues({
|
|
3013
|
+
}, /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3025
3014
|
style: {
|
|
3026
3015
|
pointerEvents: "none"
|
|
3027
3016
|
},
|
|
@@ -3031,7 +3020,7 @@
|
|
|
3031
3020
|
ghost,
|
|
3032
3021
|
className: core.cx(ButtonStyle, className2),
|
|
3033
3022
|
prefixIcon: icon
|
|
3034
|
-
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues({
|
|
3023
|
+
}, buttonPropArgs))) : /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3035
3024
|
type,
|
|
3036
3025
|
size,
|
|
3037
3026
|
danger,
|
|
@@ -3040,7 +3029,7 @@
|
|
|
3040
3029
|
prefixIcon: icon
|
|
3041
3030
|
}, buttonPropArgs)));
|
|
3042
3031
|
}
|
|
3043
|
-
return /* @__PURE__ */React.createElement(Button, __spreadValues({
|
|
3032
|
+
return /* @__PURE__ */React.createElement(Button, __spreadValues$1({
|
|
3044
3033
|
key: key || index,
|
|
3045
3034
|
type,
|
|
3046
3035
|
size,
|
|
@@ -3106,6 +3095,45 @@
|
|
|
3106
3095
|
return dayjs(tick).format("MM/DD");
|
|
3107
3096
|
};
|
|
3108
3097
|
|
|
3098
|
+
var __defProp = Object.defineProperty;
|
|
3099
|
+
var __defProps = Object.defineProperties;
|
|
3100
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3101
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3102
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3103
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
3104
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3105
|
+
var __spreadValues = (a, b) => {
|
|
3106
|
+
for (var prop in b || (b = {}))
|
|
3107
|
+
if (__hasOwnProp.call(b, prop))
|
|
3108
|
+
__defNormalProp(a, prop, b[prop]);
|
|
3109
|
+
if (__getOwnPropSymbols)
|
|
3110
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
3111
|
+
if (__propIsEnum.call(b, prop))
|
|
3112
|
+
__defNormalProp(a, prop, b[prop]);
|
|
3113
|
+
}
|
|
3114
|
+
return a;
|
|
3115
|
+
};
|
|
3116
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
3117
|
+
const ModalStack = () => {
|
|
3118
|
+
const stack = useKitSelector(
|
|
3119
|
+
(state) => state.modal.stack
|
|
3120
|
+
);
|
|
3121
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, stack.map((modal) => /* @__PURE__ */ React.createElement(
|
|
3122
|
+
modal.component,
|
|
3123
|
+
__spreadProps(__spreadValues({}, modal.props), {
|
|
3124
|
+
modalId: modal.id,
|
|
3125
|
+
onClose: () => {
|
|
3126
|
+
var _a;
|
|
3127
|
+
if ((_a = modal.props) == null ? void 0 : _a.onClose) {
|
|
3128
|
+
modal.props.onClose();
|
|
3129
|
+
}
|
|
3130
|
+
closeModal(modal.id);
|
|
3131
|
+
},
|
|
3132
|
+
key: modal.id
|
|
3133
|
+
})
|
|
3134
|
+
)));
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3109
3137
|
var Architecture = /* @__PURE__ */ ((Architecture2) => {
|
|
3110
3138
|
Architecture2["Aarch64"] = "AARCH64";
|
|
3111
3139
|
Architecture2["X86_64"] = "X86_64";
|
|
@@ -3153,6 +3181,8 @@
|
|
|
3153
3181
|
exports.EntityAsyncStatus = EntityAsyncStatus;
|
|
3154
3182
|
exports.FailedLoad = FailedLoad;
|
|
3155
3183
|
exports.KitStoreProvider = KitStoreProvider;
|
|
3184
|
+
exports.ModalActions = ModalActions;
|
|
3185
|
+
exports.ModalStack = ModalStack;
|
|
3156
3186
|
exports.PAGINATION_SELECTOR = PAGINATION_SELECTOR;
|
|
3157
3187
|
exports.TABLE_WRAPPER_SELECTOR = TABLE_WRAPPER_SELECTOR;
|
|
3158
3188
|
exports.TBODY_SELECTOR = TBODY_SELECTOR;
|
|
@@ -3160,6 +3190,7 @@
|
|
|
3160
3190
|
exports.TaskStatus = TaskStatus;
|
|
3161
3191
|
exports.Typo = Typo;
|
|
3162
3192
|
exports.UIKitProvider = UIKitProvider;
|
|
3193
|
+
exports.UIKitStore = UIKitStore;
|
|
3163
3194
|
exports.UserSource = UserSource;
|
|
3164
3195
|
exports.antdKit = antdKit;
|
|
3165
3196
|
exports.closeModal = closeModal;
|