@infinite-table/infinite-react 10.1.4 → 10.1.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.
- package/README.md +6 -4
- package/index.css +1 -1
- package/index.dev.js +213 -45
- package/index.dev.mjs +213 -45
- package/index.js +8 -8
- package/index.mjs +8 -8
- package/package.json +2 -2
- package/theme/default.css +13 -9
- package/theme/paper.css +649 -0
- package/theme/sheet.css +489 -0
- package/theme/terminal.css +473 -0
package/index.dev.mjs
CHANGED
|
@@ -1200,6 +1200,9 @@ var WRAPPER_STYLE = {
|
|
|
1200
1200
|
fontSize: 0,
|
|
1201
1201
|
overflow: "hidden"
|
|
1202
1202
|
};
|
|
1203
|
+
function toWatchedCSSValue(varName) {
|
|
1204
|
+
return varName.startsWith("var(") || varName.startsWith("calc(") ? varName : `var(${varName})`;
|
|
1205
|
+
}
|
|
1203
1206
|
|
|
1204
1207
|
// src/components/CSSNumericVariableWatch/index.tsx
|
|
1205
1208
|
var useCSSVariableWatch = (params) => {
|
|
@@ -1233,7 +1236,7 @@ var CSSNumericVariableWatch = (props) => {
|
|
|
1233
1236
|
...props,
|
|
1234
1237
|
ref: domRef
|
|
1235
1238
|
});
|
|
1236
|
-
const height2 =
|
|
1239
|
+
const height2 = toWatchedCSSValue(props.varName);
|
|
1237
1240
|
const { allowInts = false } = props;
|
|
1238
1241
|
return /* @__PURE__ */ React2.createElement(
|
|
1239
1242
|
"div",
|
|
@@ -2165,7 +2168,35 @@ function stripVar(cssVariableWithVarString) {
|
|
|
2165
2168
|
|
|
2166
2169
|
// src/components/InfiniteTable/components/icons/Icon.tsx
|
|
2167
2170
|
import * as React6 from "react";
|
|
2171
|
+
|
|
2172
|
+
// src/components/InfiniteTable/components/icons/Icon.css.ts
|
|
2173
|
+
var IconCustomMaskCls = { expandCollapse: "_1jm33zv0", loading: "_1jm33zv1", done: "_1jm33zv2", clear: "_1jm33zv3", hidden: "_1jm33zv4", filterOperatorContains: "_1jm33zv5", filterOperatorStartsWith: "_1jm33zv6", filterOperatorEndsWith: "_1jm33zv7", filterOperatorEq: "_1jm33zv8", filterOperatorNeq: "_1jm33zv9", filterOperatorGt: "_1jm33zva", filterOperatorGte: "_1jm33zvb", filterOperatorLt: "_1jm33zvc", filterOperatorLte: "_1jm33zvd" };
|
|
2174
|
+
var LoadingIconSpinWhenCustomCls = "_1jm33zvf";
|
|
2175
|
+
|
|
2176
|
+
// src/components/InfiniteTable/components/icons/customizableIcons.ts
|
|
2177
|
+
var CUSTOMIZABLE_ICONS = {
|
|
2178
|
+
expandCollapse: "expand-collapse",
|
|
2179
|
+
loading: "loading",
|
|
2180
|
+
done: "done",
|
|
2181
|
+
clear: "clear",
|
|
2182
|
+
hidden: "hidden",
|
|
2183
|
+
filterOperatorContains: "filter-operator-contains",
|
|
2184
|
+
filterOperatorStartsWith: "filter-operator-starts-with",
|
|
2185
|
+
filterOperatorEndsWith: "filter-operator-ends-with",
|
|
2186
|
+
filterOperatorEq: "filter-operator-eq",
|
|
2187
|
+
filterOperatorNeq: "filter-operator-neq",
|
|
2188
|
+
filterOperatorGt: "filter-operator-gt",
|
|
2189
|
+
filterOperatorGte: "filter-operator-gte",
|
|
2190
|
+
filterOperatorLt: "filter-operator-lt",
|
|
2191
|
+
filterOperatorLte: "filter-operator-lte"
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
// src/components/InfiniteTable/components/icons/InfiniteIconClassName.ts
|
|
2195
|
+
var InfiniteIconClassName = "InfiniteIcon";
|
|
2196
|
+
|
|
2197
|
+
// src/components/InfiniteTable/components/icons/Icon.tsx
|
|
2168
2198
|
var Icon = (props) => {
|
|
2199
|
+
const { icon, ...svgProps } = props;
|
|
2169
2200
|
const size = props.size ?? `var(--infinite-icon-size)`;
|
|
2170
2201
|
const style2 = {
|
|
2171
2202
|
flex: "none",
|
|
@@ -2176,7 +2207,21 @@ var Icon = (props) => {
|
|
|
2176
2207
|
};
|
|
2177
2208
|
return (
|
|
2178
2209
|
//@ts-ignore
|
|
2179
|
-
/* @__PURE__ */ React6.createElement(
|
|
2210
|
+
/* @__PURE__ */ React6.createElement(
|
|
2211
|
+
"svg",
|
|
2212
|
+
{
|
|
2213
|
+
viewBox: "0 0 24 24",
|
|
2214
|
+
...svgProps,
|
|
2215
|
+
className: icon ? join(
|
|
2216
|
+
props.className,
|
|
2217
|
+
IconCustomMaskCls[icon],
|
|
2218
|
+
InfiniteIconClassName,
|
|
2219
|
+
`${InfiniteIconClassName}-${CUSTOMIZABLE_ICONS[icon]}`
|
|
2220
|
+
) : props.className,
|
|
2221
|
+
style: style2
|
|
2222
|
+
},
|
|
2223
|
+
props.children
|
|
2224
|
+
)
|
|
2180
2225
|
);
|
|
2181
2226
|
};
|
|
2182
2227
|
|
|
@@ -2222,55 +2267,55 @@ var iconPaths = {
|
|
|
2222
2267
|
|
|
2223
2268
|
// src/components/InfiniteTable/components/icons/IncludesOperatorIcon.tsx
|
|
2224
2269
|
var IncludesOperatorIcon = (props) => {
|
|
2225
|
-
return /* @__PURE__ */ React7.createElement(Icon, { ...props }, iconPaths.includesOperator.map((d) => /* @__PURE__ */ React7.createElement("path", { key: d, d })));
|
|
2270
|
+
return /* @__PURE__ */ React7.createElement(Icon, { ...props, icon: "filterOperatorContains" }, iconPaths.includesOperator.map((d) => /* @__PURE__ */ React7.createElement("path", { key: d, d })));
|
|
2226
2271
|
};
|
|
2227
2272
|
|
|
2228
2273
|
// src/components/InfiniteTable/components/icons/EndsWithOperatorIcon.tsx
|
|
2229
2274
|
import * as React8 from "react";
|
|
2230
2275
|
var EndsWithOperatorIcon = (props) => {
|
|
2231
|
-
return /* @__PURE__ */ React8.createElement(Icon, { ...props }, /* @__PURE__ */ React8.createElement("path", { d: iconPaths.endsWithOperator[0] }));
|
|
2276
|
+
return /* @__PURE__ */ React8.createElement(Icon, { ...props, icon: "filterOperatorEndsWith" }, /* @__PURE__ */ React8.createElement("path", { d: iconPaths.endsWithOperator[0] }));
|
|
2232
2277
|
};
|
|
2233
2278
|
|
|
2234
2279
|
// src/components/InfiniteTable/components/icons/EqualOperatorIcon.tsx
|
|
2235
2280
|
import * as React9 from "react";
|
|
2236
2281
|
var EqualOperatorIcon = (props) => {
|
|
2237
|
-
return /* @__PURE__ */ React9.createElement(Icon, { ...props }, /* @__PURE__ */ React9.createElement("path", { d: iconPaths.eqOperator[0] }));
|
|
2282
|
+
return /* @__PURE__ */ React9.createElement(Icon, { ...props, icon: "filterOperatorEq" }, /* @__PURE__ */ React9.createElement("path", { d: iconPaths.eqOperator[0] }));
|
|
2238
2283
|
};
|
|
2239
2284
|
|
|
2240
2285
|
// src/components/InfiniteTable/components/icons/GTEOperatorIcon.tsx
|
|
2241
2286
|
import * as React10 from "react";
|
|
2242
2287
|
var GTEOperatorIcon = (props) => {
|
|
2243
|
-
return /* @__PURE__ */ React10.createElement(Icon, { ...props }, /* @__PURE__ */ React10.createElement("path", { d: iconPaths.gteOperator[0] }));
|
|
2288
|
+
return /* @__PURE__ */ React10.createElement(Icon, { ...props, icon: "filterOperatorGte" }, /* @__PURE__ */ React10.createElement("path", { d: iconPaths.gteOperator[0] }));
|
|
2244
2289
|
};
|
|
2245
2290
|
|
|
2246
2291
|
// src/components/InfiniteTable/components/icons/GTOperatorIcon.tsx
|
|
2247
2292
|
import * as React11 from "react";
|
|
2248
2293
|
var GTOperatorIcon = (props) => {
|
|
2249
|
-
return /* @__PURE__ */ React11.createElement(Icon, { ...props }, /* @__PURE__ */ React11.createElement("path", { d: iconPaths.gtOperator[0] }));
|
|
2294
|
+
return /* @__PURE__ */ React11.createElement(Icon, { ...props, icon: "filterOperatorGt" }, /* @__PURE__ */ React11.createElement("path", { d: iconPaths.gtOperator[0] }));
|
|
2250
2295
|
};
|
|
2251
2296
|
|
|
2252
2297
|
// src/components/InfiniteTable/components/icons/LTEOperatorIcon.tsx
|
|
2253
2298
|
import * as React12 from "react";
|
|
2254
2299
|
var LTEOperatorIcon = (props) => {
|
|
2255
|
-
return /* @__PURE__ */ React12.createElement(Icon, { ...props }, /* @__PURE__ */ React12.createElement("path", { d: iconPaths.lteOperator[0] }));
|
|
2300
|
+
return /* @__PURE__ */ React12.createElement(Icon, { ...props, icon: "filterOperatorLte" }, /* @__PURE__ */ React12.createElement("path", { d: iconPaths.lteOperator[0] }));
|
|
2256
2301
|
};
|
|
2257
2302
|
|
|
2258
2303
|
// src/components/InfiniteTable/components/icons/LTOperatorIcon.tsx
|
|
2259
2304
|
import * as React13 from "react";
|
|
2260
2305
|
var LTOperatorIcon = (props) => {
|
|
2261
|
-
return /* @__PURE__ */ React13.createElement(Icon, { ...props }, /* @__PURE__ */ React13.createElement("path", { d: iconPaths.ltOperator[0] }));
|
|
2306
|
+
return /* @__PURE__ */ React13.createElement(Icon, { ...props, icon: "filterOperatorLt" }, /* @__PURE__ */ React13.createElement("path", { d: iconPaths.ltOperator[0] }));
|
|
2262
2307
|
};
|
|
2263
2308
|
|
|
2264
2309
|
// src/components/InfiniteTable/components/icons/NotEqualOperatorIcon.tsx
|
|
2265
2310
|
import * as React14 from "react";
|
|
2266
2311
|
var NotEqualOperatorIcon = (props) => {
|
|
2267
|
-
return /* @__PURE__ */ React14.createElement(Icon, { ...props }, /* @__PURE__ */ React14.createElement("path", { d: iconPaths.neqOperator[0] }));
|
|
2312
|
+
return /* @__PURE__ */ React14.createElement(Icon, { ...props, icon: "filterOperatorNeq" }, /* @__PURE__ */ React14.createElement("path", { d: iconPaths.neqOperator[0] }));
|
|
2268
2313
|
};
|
|
2269
2314
|
|
|
2270
2315
|
// src/components/InfiniteTable/components/icons/StartsWithOperatorIcon.tsx
|
|
2271
2316
|
import * as React15 from "react";
|
|
2272
2317
|
var StartsWithOperatorIcon = (props) => {
|
|
2273
|
-
return /* @__PURE__ */ React15.createElement(Icon, { ...props }, /* @__PURE__ */ React15.createElement("path", { d: iconPaths.startsWithOperator[0] }));
|
|
2318
|
+
return /* @__PURE__ */ React15.createElement(Icon, { ...props, icon: "filterOperatorStartsWith" }, /* @__PURE__ */ React15.createElement("path", { d: iconPaths.startsWithOperator[0] }));
|
|
2274
2319
|
};
|
|
2275
2320
|
|
|
2276
2321
|
// src/components/InfiniteTable/components/FilterEditors.tsx
|
|
@@ -2410,11 +2455,9 @@ var HeaderSortIconIndexCls = "_12zfob16";
|
|
|
2410
2455
|
var HeaderSortIconRecipe = createRuntimeFn({ defaultClassName: "_12zfob12", variantClassNames: { align: { start: "_12zfob13", center: "_12zfob14", end: "_12zfob15" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2411
2456
|
var HeaderWrapperCls = "_12zfob12l _16lm1iw35 _16lm1iw1 _16lm1iw1p _16lm1iw2h";
|
|
2412
2457
|
|
|
2413
|
-
// src/components/InfiniteTable/components/icons/InfiniteIconClassName.ts
|
|
2414
|
-
var InfiniteIconClassName = "InfiniteIcon";
|
|
2415
|
-
|
|
2416
2458
|
// src/components/InfiniteTable/components/icons/FilterIcon/FilterIcon.css.ts
|
|
2417
2459
|
var FilterIconCls = "_1nnkya20 _16lm1iw1p _16lm1iw2f _16lm1iw1 _16lm1iw32 _16lm1iw2j";
|
|
2460
|
+
var FilterIconLineCls = "_1nnkya21";
|
|
2418
2461
|
|
|
2419
2462
|
// src/components/InfiniteTable/components/icons/FilterIcon/shared.ts
|
|
2420
2463
|
var defaultLineStyle = {
|
|
@@ -2483,9 +2526,27 @@ function FilterIcon(props) {
|
|
|
2483
2526
|
},
|
|
2484
2527
|
index
|
|
2485
2528
|
) : null,
|
|
2486
|
-
/* @__PURE__ */ React16.createElement(
|
|
2487
|
-
|
|
2488
|
-
|
|
2529
|
+
/* @__PURE__ */ React16.createElement(
|
|
2530
|
+
"div",
|
|
2531
|
+
{
|
|
2532
|
+
className: FilterIconLineCls,
|
|
2533
|
+
style: { width: sizes[0], ...lineStyle }
|
|
2534
|
+
}
|
|
2535
|
+
),
|
|
2536
|
+
/* @__PURE__ */ React16.createElement(
|
|
2537
|
+
"div",
|
|
2538
|
+
{
|
|
2539
|
+
className: FilterIconLineCls,
|
|
2540
|
+
style: { width: sizes[1], ...lineStyle }
|
|
2541
|
+
}
|
|
2542
|
+
),
|
|
2543
|
+
/* @__PURE__ */ React16.createElement(
|
|
2544
|
+
"div",
|
|
2545
|
+
{
|
|
2546
|
+
className: FilterIconLineCls,
|
|
2547
|
+
style: { width: sizes[2], ...lineStyle }
|
|
2548
|
+
}
|
|
2549
|
+
)
|
|
2489
2550
|
);
|
|
2490
2551
|
}
|
|
2491
2552
|
|
|
@@ -4175,7 +4236,7 @@ var InternalVars = { currentColumnTransformX: "var(--_16hkbkc0)", y: "var(--_16h
|
|
|
4175
4236
|
|
|
4176
4237
|
// src/components/InfiniteTable/vars.css.ts
|
|
4177
4238
|
var CSS_LOADED_VALUE = "true";
|
|
4178
|
-
var ThemeVars = { loaded: "var(--infinite-loaded)", themeName: "var(--infinite-theme-name)", themeMode: "var(--infinite-theme-mode)", color: { accent: "var(--infinite-accent-color)", success: "var(--infinite-success-color)", error: "var(--infinite-error-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", focusOutline: "var(--infinite-focus-outline)", background: "var(--infinite-background)", iconSize: "var(--infinite-icon-size)", runtime: { bodyWidth: "var(--infinite-runtime-body-content-width)", totalVisibleColumnsWidthValue: "var(--infinite-runtime-total-visible-columns-width)", totalVisibleColumnsWidthVar: "var(--infinite-runtime-total-visible-columns-width-var)", visibleColumnsCount: "var(--infinite-runtime-visible-columns-count)", browserScrollbarWidth: "var(--infinite-runtime-browser-scrollbar-width)" }, components: { GroupingToolbar: { color: "var(--infinite-grouping-toolbar-color)", background: "var(--infinite-grouping-toolbar-background)", rejectBackground: "var(--infinite-grouping-toolbar-reject-background)", activeBackground: "var(--infinite-grouping-toolbar-active-background)", activeBackgroundAlpha: "var(--infinite-grouping-toolbar-active-background-alpha)", padding: "var(--infinite-grouping-toolbar-padding)", border: "var(--infinite-grouping-toolbar-border)", rejectBorder: "var(--infinite-grouping-toolbar-reject-border)", gap: "var(--infinite-grouping-toolbar-gap)" }, GroupingToolbarItem: { border: "var(--infinite-grouping-toolbar-item-border)", borderRadius: "var(--infinite-grouping-toolbar-item-border-radius)", activeBorder: "var(--infinite-grouping-toolbar-item-active-border)", background: "var(--infinite-grouping-toolbar-item-background)", activeBackground: "var(--infinite-grouping-toolbar-item-active-background)", activeBackgroundAlpha: "var(--infinite-grouping-toolbar-item-active-background-alpha)" }, LoadMask: { padding: "var(--infinite-load-mask-padding)", color: "var(--infinite-load-mask-color)", textBackground: "var(--infinite-load-mask-text-background)", overlayBackground: "var(--infinite-load-mask-overlay-background)", overlayOpacity: "var(--infinite-load-mask-overlay-opacity)", borderRadius: "var(--infinite-load-mask-border-radius)" }, Header: { background: "var(--infinite-header-background)", color: "var(--infinite-header-color)", columnHeaderHeight: "var(--infinite-column-header-height)" }, HeaderCell: { background: "var(--infinite-header-cell-background)", hoverBackground: "var(--infinite-header-cell-hover-background)", border: "var(--infinite-header-cell-border)", padding: "var(--infinite-header-cell-padding)", paddingX: "var(--infinite-header-cell-padding-x)", paddingY: "var(--infinite-header-cell-padding-y)", iconSize: "var(--infinite-header-cell-icon-size)", menuIconLineWidth: "var(--infinite-header-cell-menu-icon-line-width)", sortIconMargin: "var(--infinite-header-cell-sort-icon-margin)", borderRight: "var(--infinite-header-cell-border-right)", resizeHandleActiveAreaWidth: "var(--infinite-resize-handle-active-area-width)", resizeHandleWidth: "var(--infinite-resize-handle-width)", resizeHandleHoverBackground: "var(--infinite-resize-handle-hover-background)", resizeHandleConstrainedHoverBackground: "var(--infinite-resize-handle-constrained-hover-background)", filterOperatorPaddingX: "var(--infinite-filter-operator-padding-x)", filterEditorPaddingX: "var(--infinite-filter-editor-padding-x)", filterEditorMarginX: "var(--infinite-filter-editor-margin-x)", filterOperatorPaddingY: "var(--infinite-filter-operator-padding-y)", filterEditorPaddingY: "var(--infinite-filter-editor-padding-y)", filterEditorMarginY: "var(--infinite-filter-editor-margin-y)", filterEditorBackground: "var(--infinite-filter-editor-background)", filterEditorBorder: "var(--infinite-filter-editor-border)", filterEditorFocusBorderColor: "var(--infinite-filter-editor-focus-border-color)", filterEditorBorderRadius: "var(--infinite-filter-editor-border-radius)", filterEditorColor: "var(--infinite-filter-editor-color)" }, ActiveCellIndicator: { inset: "var(--infinite-active-cell-indicator-inset)" }, Cell: { flashingDuration: "var(--infinite-flashing-duration)", flashingAnimationName: "var(--infinite-flashing-animation-name)", flashingOverlayZIndex: "var(--infinite-flashing-overlay-z-index)", flashingBackground: "var(--infinite-flashing-background)", flashingUpBackground: "var(--infinite-flashing-up-background)", flashingDownBackground: "var(--infinite-flashing-down-background)", padding: "var(--infinite-cell-padding)", borderWidth: "var(--infinite-cell-border-width)", borderColor: "var(--infinite-cell-border-color)", border: "var(--infinite-cell-border)", borderLeft: "var(--infinite-cell-border-left)", borderRight: "var(--infinite-cell-border-right)", borderTop: "var(--infinite-cell-border-top)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", reorderEffectDuration: "var(--infinite-column-reorder-effect-duration)", pinnedBorder: "var(--infinite-pinned-cell-border)", horizontalLayoutColumnReorderDisabledPageOpacity: "var(--infinite-horizontal-layout-column-reorder-disabled-page-opacity)", color: "var(--infinite-cell-color)", selectedBackground: "var(--infinite-selected-cell-background)", selectedBackgroundDefault: "var(--infinite-selected-cell-background-default)", selectedBackgroundAlpha: "var(--infinite-selected-cell-background-alpha)", selectedBackgroundAlphaWhenTableUnfocused: "var(--infinite-selected-cell-background-alpha--table-unfocused)", selectedBorderColor: "var(--infinite-selected-cell-border-color)", selectedBorderWidth: "var(--infinite-selected-cell-border-width)", selectedBorderStyle: "var(--infinite-selected-cell-border-style)", selectedBorder: "var(--infinite-selected-cell-border)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBackgroundDefault: "var(--infinite-active-cell-background-default)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, SelectionCheckBox: { marginInline: "var(--infinite-selection-checkbox-margin-inline)" }, ExpandCollapseIcon: { color: "var(--infinite-expand-collapse-icon-color)" }, Menu: { background: "var(--infinite-menu-background)", color: "var(--infinite-menu-color)", separatorColor: "var(--infinite-menu-separator-color)", padding: "var(--infinite-menu-padding)", cellPaddingVertical: "var(--infinite-menu-cell-padding-vertical)", cellPaddingHorizontal: "var(--infinite-menu-cell-padding-horizontal)", cellMarginVertical: "var(--infinite-menu-cell-margin-vertical)", itemDisabledBackground: "var(--infinite-menu-item-disabled-background)", itemActiveBackground: "var(--infinite-menu-item-active-background)", itemActiveOpacity: "var(--infinite-menu-item-active-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)", borderRadius: "var(--infinite-menu-border-radius)", shadowColor: "var(--infinite-menu-shadow-color)" }, RowDetail: { background: "var(--infinite-rowdetail-background)", padding: "var(--infinite-rowdetail-padding)", gridHeight: "var(--infinite-rowdetail-grid-height)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", disabledBackground: "var(--infinite-row-disabled-background)", oddDisabledBackground: "var(--infinite-row-odd-disabled-background)", selectedBackground: "var(--infinite-row-selected-background)", disabledOpacity: "var(--infinite-row-disabled-opacity)", activeBackground: "var(--infinite-active-row-background)", activeBorderColor: "var(--infinite-active-row-border-color)", activeBorderWidth: "var(--infinite-active-row-border-width)", activeBorderStyle: "var(--infinite-active-row-border-style)", activeBorder: "var(--infinite-active-row-border)", activeBackgroundAlpha: "var(--infinite-active-row-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-row-background-alpha--table-unfocused)", hoverBackground: "var(--infinite-row-hover-background)", selectedHoverBackground: "var(--infinite-row-selected-hover-background)", selectedDisabledBackground: "var(--infinite-row-selected-disabled-background)", groupRowBackground: "var(--infinite-group-row-background)", groupRowColumnNesting: "var(--infinite-group-row-column-nesting)", groupNesting: "var(--infinite-dont-override-group-row-nesting-length)", pointerEventsWhileScrolling: "var(--infinite-row-pointer-events-while-scrolling)" }, ColumnCell: { background: "var(--infinite-column-cell-bg-dont-override)" } } };
|
|
4239
|
+
var ThemeVars = { loaded: "var(--infinite-loaded)", themeName: "var(--infinite-theme-name)", themeMode: "var(--infinite-theme-mode)", color: { accent: "var(--infinite-accent-color)", success: "var(--infinite-success-color)", error: "var(--infinite-error-color)", color: "var(--infinite-color)" }, spacing: { "0": "var(--infinite-space-0)", "1": "var(--infinite-space-1)", "2": "var(--infinite-space-2)", "3": "var(--infinite-space-3)", "4": "var(--infinite-space-4)", "5": "var(--infinite-space-5)", "6": "var(--infinite-space-6)", "7": "var(--infinite-space-7)", "8": "var(--infinite-space-8)", "9": "var(--infinite-space-9)", "10": "var(--infinite-space-10)" }, fontSize: { "0": "var(--infinite-font-size-0)", "1": "var(--infinite-font-size-1)", "2": "var(--infinite-font-size-2)", "3": "var(--infinite-font-size-3)", "4": "var(--infinite-font-size-4)", "5": "var(--infinite-font-size-5)", "6": "var(--infinite-font-size-6)", "7": "var(--infinite-font-size-7)" }, fontFamily: "var(--infinite-font-family)", baseFontSize: "var(--infinite-font-size)", minHeight: "var(--infinite-min-height)", borderRadius: "var(--infinite-border-radius)", focusOutline: "var(--infinite-focus-outline)", background: "var(--infinite-background)", iconSize: "var(--infinite-icon-size)", rowHeight: "var(--infinite-row-height)", densityScale: "var(--infinite-density-scale)", icons: { expandCollapse: "var(--infinite-icon-expand-collapse)", loading: "var(--infinite-icon-loading)", sortAsc: "var(--infinite-icon-sort-asc)", sortDesc: "var(--infinite-icon-sort-desc)", filter: "var(--infinite-icon-filter)", menu: "var(--infinite-icon-menu)", done: "var(--infinite-icon-done)", clear: "var(--infinite-icon-clear)", hidden: "var(--infinite-icon-hidden)", filterOperatorContains: "var(--infinite-icon-filter-operator-contains)", filterOperatorStartsWith: "var(--infinite-icon-filter-operator-starts-with)", filterOperatorEndsWith: "var(--infinite-icon-filter-operator-ends-with)", filterOperatorEq: "var(--infinite-icon-filter-operator-eq)", filterOperatorNeq: "var(--infinite-icon-filter-operator-neq)", filterOperatorGt: "var(--infinite-icon-filter-operator-gt)", filterOperatorGte: "var(--infinite-icon-filter-operator-gte)", filterOperatorLt: "var(--infinite-icon-filter-operator-lt)", filterOperatorLte: "var(--infinite-icon-filter-operator-lte)" }, runtime: { bodyWidth: "var(--infinite-runtime-body-content-width)", totalVisibleColumnsWidthValue: "var(--infinite-runtime-total-visible-columns-width)", totalVisibleColumnsWidthVar: "var(--infinite-runtime-total-visible-columns-width-var)", visibleColumnsCount: "var(--infinite-runtime-visible-columns-count)", browserScrollbarWidth: "var(--infinite-runtime-browser-scrollbar-width)" }, components: { GroupingToolbar: { color: "var(--infinite-grouping-toolbar-color)", background: "var(--infinite-grouping-toolbar-background)", rejectBackground: "var(--infinite-grouping-toolbar-reject-background)", activeBackground: "var(--infinite-grouping-toolbar-active-background)", activeBackgroundAlpha: "var(--infinite-grouping-toolbar-active-background-alpha)", padding: "var(--infinite-grouping-toolbar-padding)", border: "var(--infinite-grouping-toolbar-border)", rejectBorder: "var(--infinite-grouping-toolbar-reject-border)", gap: "var(--infinite-grouping-toolbar-gap)" }, GroupingToolbarItem: { border: "var(--infinite-grouping-toolbar-item-border)", borderRadius: "var(--infinite-grouping-toolbar-item-border-radius)", activeBorder: "var(--infinite-grouping-toolbar-item-active-border)", background: "var(--infinite-grouping-toolbar-item-background)", activeBackground: "var(--infinite-grouping-toolbar-item-active-background)", activeBackgroundAlpha: "var(--infinite-grouping-toolbar-item-active-background-alpha)" }, LoadMask: { padding: "var(--infinite-load-mask-padding)", color: "var(--infinite-load-mask-color)", textBackground: "var(--infinite-load-mask-text-background)", overlayBackground: "var(--infinite-load-mask-overlay-background)", overlayOpacity: "var(--infinite-load-mask-overlay-opacity)", borderRadius: "var(--infinite-load-mask-border-radius)" }, Header: { background: "var(--infinite-header-background)", color: "var(--infinite-header-color)", columnHeaderHeight: "var(--infinite-column-header-height)" }, HeaderCell: { background: "var(--infinite-header-cell-background)", hoverBackground: "var(--infinite-header-cell-hover-background)", border: "var(--infinite-header-cell-border)", padding: "var(--infinite-header-cell-padding)", paddingX: "var(--infinite-header-cell-padding-x)", paddingY: "var(--infinite-header-cell-padding-y)", iconSize: "var(--infinite-header-cell-icon-size)", menuIconLineWidth: "var(--infinite-header-cell-menu-icon-line-width)", sortIconMargin: "var(--infinite-header-cell-sort-icon-margin)", borderRight: "var(--infinite-header-cell-border-right)", resizeHandleActiveAreaWidth: "var(--infinite-resize-handle-active-area-width)", resizeHandleWidth: "var(--infinite-resize-handle-width)", resizeHandleHoverBackground: "var(--infinite-resize-handle-hover-background)", resizeHandleConstrainedHoverBackground: "var(--infinite-resize-handle-constrained-hover-background)", filterOperatorPaddingX: "var(--infinite-filter-operator-padding-x)", filterEditorPaddingX: "var(--infinite-filter-editor-padding-x)", filterEditorMarginX: "var(--infinite-filter-editor-margin-x)", filterOperatorPaddingY: "var(--infinite-filter-operator-padding-y)", filterEditorPaddingY: "var(--infinite-filter-editor-padding-y)", filterEditorMarginY: "var(--infinite-filter-editor-margin-y)", filterEditorBackground: "var(--infinite-filter-editor-background)", filterEditorBorder: "var(--infinite-filter-editor-border)", filterEditorFocusBorderColor: "var(--infinite-filter-editor-focus-border-color)", filterEditorBorderRadius: "var(--infinite-filter-editor-border-radius)", filterEditorColor: "var(--infinite-filter-editor-color)" }, ActiveCellIndicator: { inset: "var(--infinite-active-cell-indicator-inset)" }, Cell: { flashingDuration: "var(--infinite-flashing-duration)", flashingAnimationName: "var(--infinite-flashing-animation-name)", flashingOverlayZIndex: "var(--infinite-flashing-overlay-z-index)", flashingBackground: "var(--infinite-flashing-background)", flashingUpBackground: "var(--infinite-flashing-up-background)", flashingDownBackground: "var(--infinite-flashing-down-background)", padding: "var(--infinite-cell-padding)", paddingX: "var(--infinite-cell-padding-x)", paddingY: "var(--infinite-cell-padding-y)", borderWidth: "var(--infinite-cell-border-width)", borderColor: "var(--infinite-cell-border-color)", border: "var(--infinite-cell-border)", borderLeft: "var(--infinite-cell-border-left)", borderRight: "var(--infinite-cell-border-right)", borderTop: "var(--infinite-cell-border-top)", borderInvisible: "var(--infinite-cell-border-invisible)", borderRadius: "var(--infinite-cell-border-radius)", reorderEffectDuration: "var(--infinite-column-reorder-effect-duration)", pinnedBorder: "var(--infinite-pinned-cell-border)", horizontalLayoutColumnReorderDisabledPageOpacity: "var(--infinite-horizontal-layout-column-reorder-disabled-page-opacity)", color: "var(--infinite-cell-color)", selectedBackground: "var(--infinite-selected-cell-background)", selectedBackgroundDefault: "var(--infinite-selected-cell-background-default)", selectedBackgroundAlpha: "var(--infinite-selected-cell-background-alpha)", selectedBackgroundAlphaWhenTableUnfocused: "var(--infinite-selected-cell-background-alpha--table-unfocused)", selectedBorderColor: "var(--infinite-selected-cell-border-color)", selectedBorderWidth: "var(--infinite-selected-cell-border-width)", selectedBorderStyle: "var(--infinite-selected-cell-border-style)", selectedBorder: "var(--infinite-selected-cell-border)", activeBackgroundAlpha: "var(--infinite-active-cell-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-cell-background-alpha--table-unfocused)", activeBackground: "var(--infinite-active-cell-background)", activeBackgroundDefault: "var(--infinite-active-cell-background-default)", activeBorderColor: "var(--infinite-active-cell-border-color)", activeBorderWidth: "var(--infinite-active-cell-border-width)", activeBorderStyle: "var(--infinite-active-cell-border-style)", activeBorder: "var(--infinite-active-cell-border)" }, SelectionCheckBox: { marginInline: "var(--infinite-selection-checkbox-margin-inline)" }, ExpandCollapseIcon: { color: "var(--infinite-expand-collapse-icon-color)" }, Menu: { background: "var(--infinite-menu-background)", color: "var(--infinite-menu-color)", separatorColor: "var(--infinite-menu-separator-color)", padding: "var(--infinite-menu-padding)", cellPaddingVertical: "var(--infinite-menu-cell-padding-vertical)", cellPaddingHorizontal: "var(--infinite-menu-cell-padding-horizontal)", cellMarginVertical: "var(--infinite-menu-cell-margin-vertical)", itemDisabledBackground: "var(--infinite-menu-item-disabled-background)", itemActiveBackground: "var(--infinite-menu-item-active-background)", itemActiveOpacity: "var(--infinite-menu-item-active-opacity)", itemPressedOpacity: "var(--infinite-menu-item-pressed-opacity)", itemPressedBackground: "var(--infinite-menu-item-pressed-background)", itemDisabledOpacity: "var(--infinite-menu-item-disabled-opacity)", borderRadius: "var(--infinite-menu-border-radius)", shadowColor: "var(--infinite-menu-shadow-color)" }, RowDetail: { background: "var(--infinite-rowdetail-background)", padding: "var(--infinite-rowdetail-padding)", gridHeight: "var(--infinite-rowdetail-grid-height)" }, Row: { background: "var(--infinite-row-background)", oddBackground: "var(--infinite-row-odd-background)", disabledBackground: "var(--infinite-row-disabled-background)", oddDisabledBackground: "var(--infinite-row-odd-disabled-background)", selectedBackground: "var(--infinite-row-selected-background)", disabledOpacity: "var(--infinite-row-disabled-opacity)", activeBackground: "var(--infinite-active-row-background)", activeBorderColor: "var(--infinite-active-row-border-color)", activeBorderWidth: "var(--infinite-active-row-border-width)", activeBorderStyle: "var(--infinite-active-row-border-style)", activeBorder: "var(--infinite-active-row-border)", activeBackgroundAlpha: "var(--infinite-active-row-background-alpha)", activeBackgroundAlphaWhenTableUnfocused: "var(--infinite-active-row-background-alpha--table-unfocused)", hoverBackground: "var(--infinite-row-hover-background)", selectedHoverBackground: "var(--infinite-row-selected-hover-background)", selectedDisabledBackground: "var(--infinite-row-selected-disabled-background)", groupRowBackground: "var(--infinite-group-row-background)", groupRowColumnNesting: "var(--infinite-group-row-column-nesting)", groupNesting: "var(--infinite-dont-override-group-row-nesting-length)", pointerEventsWhileScrolling: "var(--infinite-row-pointer-events-while-scrolling)" }, ColumnCell: { background: "var(--infinite-column-cell-bg-dont-override)" } } };
|
|
4179
4240
|
var columnHeaderHeightName = "column-header-height";
|
|
4180
4241
|
|
|
4181
4242
|
// src/components/InfiniteTable/utils/infiniteDOMUtils.ts
|
|
@@ -10214,6 +10275,7 @@ function ExpandCollapseIcon(props) {
|
|
|
10214
10275
|
className: join(
|
|
10215
10276
|
props.className,
|
|
10216
10277
|
ExpanderIconCls,
|
|
10278
|
+
IconCustomMaskCls.expandCollapse,
|
|
10217
10279
|
ExpanderIconClsVariants({
|
|
10218
10280
|
direction: direction || "start",
|
|
10219
10281
|
expanded,
|
|
@@ -11627,6 +11689,10 @@ function RenderHeaderCellHookComponent(props) {
|
|
|
11627
11689
|
// src/components/InfiniteTable/components/icons/MenuIcon.tsx
|
|
11628
11690
|
import * as React27 from "react";
|
|
11629
11691
|
|
|
11692
|
+
// src/components/InfiniteTable/components/icons/MenuIcon.css.ts
|
|
11693
|
+
var MenuIconLineCls = "yhvuzb1";
|
|
11694
|
+
var MenuIconWithDefaultLinesCls = "yhvuzb0";
|
|
11695
|
+
|
|
11630
11696
|
// src/components/InfiniteTable/components/icons/menuIconAttributes.ts
|
|
11631
11697
|
var MenuIconDataAttributes = keyMirror({
|
|
11632
11698
|
"data-name": ""
|
|
@@ -11641,7 +11707,7 @@ var defaultLineStyle2 = {
|
|
|
11641
11707
|
width: "100%",
|
|
11642
11708
|
pointerEvents: "none"
|
|
11643
11709
|
};
|
|
11644
|
-
var lineClassName = `${InfiniteIconClassName}-menu
|
|
11710
|
+
var lineClassName = join(`${InfiniteIconClassName}-menu`, MenuIconLineCls);
|
|
11645
11711
|
function MenuIcon(props) {
|
|
11646
11712
|
const {
|
|
11647
11713
|
style: style2,
|
|
@@ -11670,7 +11736,8 @@ function MenuIcon(props) {
|
|
|
11670
11736
|
reserveSpaceWhenHidden
|
|
11671
11737
|
}),
|
|
11672
11738
|
InfiniteIconClassName,
|
|
11673
|
-
`${InfiniteIconClassName}-menu
|
|
11739
|
+
`${InfiniteIconClassName}-menu`,
|
|
11740
|
+
children == null ? MenuIconWithDefaultLinesCls : ""
|
|
11674
11741
|
)
|
|
11675
11742
|
},
|
|
11676
11743
|
children ?? /* @__PURE__ */ React27.createElement(React27.Fragment, null, /* @__PURE__ */ React27.createElement("div", { className: lineClassName, style: lineStyle }), /* @__PURE__ */ React27.createElement("div", { className: lineClassName, style: lineStyle }), /* @__PURE__ */ React27.createElement("div", { className: lineClassName, style: lineStyle }))
|
|
@@ -11683,6 +11750,8 @@ import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
|
11683
11750
|
|
|
11684
11751
|
// src/components/InfiniteTable/components/icons/SortIcon/SortIcon.css.ts
|
|
11685
11752
|
var SortIconCls = "_1b8djff0 _16lm1iw1p _16lm1iw2f _16lm1iw1 _16lm1iw32";
|
|
11753
|
+
var SortIconDirectionCls = { asc: "_1b8djff1", desc: "_1b8djff2", none: "_1b8djff3" };
|
|
11754
|
+
var SortIconLineCls = "_1b8djff4";
|
|
11686
11755
|
|
|
11687
11756
|
// src/components/InfiniteTable/components/icons/SortIcon/shared.ts
|
|
11688
11757
|
var defaultLineStyle3 = {
|
|
@@ -11743,6 +11812,7 @@ function SortIcon(props) {
|
|
|
11743
11812
|
if (!rendered && !props.forceSize) {
|
|
11744
11813
|
return null;
|
|
11745
11814
|
}
|
|
11815
|
+
const directionName = direction === 1 ? "asc" : direction === -1 ? "desc" : "none";
|
|
11746
11816
|
const indexStyle = {};
|
|
11747
11817
|
if (direction === -1) {
|
|
11748
11818
|
indexStyle.top = "100%";
|
|
@@ -11756,7 +11826,9 @@ function SortIcon(props) {
|
|
|
11756
11826
|
className,
|
|
11757
11827
|
InfiniteIconClassName,
|
|
11758
11828
|
SortIconCls,
|
|
11759
|
-
|
|
11829
|
+
SortIconDirectionCls[directionName],
|
|
11830
|
+
`${InfiniteIconClassName}-sort`,
|
|
11831
|
+
`${InfiniteIconClassName}-sort--${directionName}`
|
|
11760
11832
|
)
|
|
11761
11833
|
},
|
|
11762
11834
|
showIndex ? /* @__PURE__ */ React28.createElement(
|
|
@@ -11771,12 +11843,25 @@ function SortIcon(props) {
|
|
|
11771
11843
|
/* @__PURE__ */ React28.createElement(
|
|
11772
11844
|
"div",
|
|
11773
11845
|
{
|
|
11846
|
+
className: SortIconLineCls,
|
|
11774
11847
|
style: { width: sizes[0], ...lineStyle },
|
|
11775
11848
|
onTransitionEnd
|
|
11776
11849
|
}
|
|
11777
11850
|
),
|
|
11778
|
-
/* @__PURE__ */ React28.createElement(
|
|
11779
|
-
|
|
11851
|
+
/* @__PURE__ */ React28.createElement(
|
|
11852
|
+
"div",
|
|
11853
|
+
{
|
|
11854
|
+
className: SortIconLineCls,
|
|
11855
|
+
style: { width: sizes[1], ...lineStyle }
|
|
11856
|
+
}
|
|
11857
|
+
),
|
|
11858
|
+
/* @__PURE__ */ React28.createElement(
|
|
11859
|
+
"div",
|
|
11860
|
+
{
|
|
11861
|
+
className: SortIconLineCls,
|
|
11862
|
+
style: { width: sizes[2], ...lineStyle }
|
|
11863
|
+
}
|
|
11864
|
+
)
|
|
11780
11865
|
);
|
|
11781
11866
|
}
|
|
11782
11867
|
|
|
@@ -13147,7 +13232,7 @@ DragList.DraggableItem = DraggableItem;
|
|
|
13147
13232
|
// src/components/InfiniteTable/components/icons/HiddenIcon.tsx
|
|
13148
13233
|
import * as React32 from "react";
|
|
13149
13234
|
var HiddenIcon = (props) => {
|
|
13150
|
-
return /* @__PURE__ */ React32.createElement(Icon, { ...props, viewBox: "0 -960 960 960" }, /* @__PURE__ */ React32.createElement("path", { d: iconPaths.hidden[0] }));
|
|
13235
|
+
return /* @__PURE__ */ React32.createElement(Icon, { ...props, icon: "hidden", viewBox: "0 -960 960 960" }, /* @__PURE__ */ React32.createElement("path", { d: iconPaths.hidden[0] }));
|
|
13151
13236
|
};
|
|
13152
13237
|
|
|
13153
13238
|
// src/components/InfiniteTable/components/InfiniteTablePublicHeader/index.tsx
|
|
@@ -22211,10 +22296,47 @@ function treeTraverse(treeParams, traverseOptions, data) {
|
|
|
22211
22296
|
var numberComparator = function(first, second) {
|
|
22212
22297
|
return first - second;
|
|
22213
22298
|
};
|
|
22299
|
+
var LOCALES_WITH_FAST_LOCALE_COMPARE = /* @__PURE__ */ new Set([
|
|
22300
|
+
"ca",
|
|
22301
|
+
"de",
|
|
22302
|
+
"de-AT",
|
|
22303
|
+
"en",
|
|
22304
|
+
"en-DE",
|
|
22305
|
+
"en-GB",
|
|
22306
|
+
"en-US",
|
|
22307
|
+
"fi",
|
|
22308
|
+
"fr",
|
|
22309
|
+
"id",
|
|
22310
|
+
"id-ID",
|
|
22311
|
+
"it",
|
|
22312
|
+
"ms",
|
|
22313
|
+
"nl",
|
|
22314
|
+
"pl",
|
|
22315
|
+
"pt",
|
|
22316
|
+
"ro",
|
|
22317
|
+
"sl",
|
|
22318
|
+
"sv",
|
|
22319
|
+
"sw",
|
|
22320
|
+
"vi"
|
|
22321
|
+
]);
|
|
22322
|
+
var collator;
|
|
22323
|
+
function getCollator() {
|
|
22324
|
+
try {
|
|
22325
|
+
const defaultCollator = new Intl.Collator();
|
|
22326
|
+
return LOCALES_WITH_FAST_LOCALE_COMPARE.has(
|
|
22327
|
+
defaultCollator.resolvedOptions().locale
|
|
22328
|
+
) ? null : defaultCollator;
|
|
22329
|
+
} catch (ex) {
|
|
22330
|
+
return null;
|
|
22331
|
+
}
|
|
22332
|
+
}
|
|
22214
22333
|
var stringComparator = function(first, second) {
|
|
22215
22334
|
first = `${first}`;
|
|
22216
22335
|
second = `${second}`;
|
|
22217
|
-
|
|
22336
|
+
if (collator === void 0) {
|
|
22337
|
+
collator = getCollator();
|
|
22338
|
+
}
|
|
22339
|
+
return collator ? collator.compare(first, second) : first.localeCompare(second);
|
|
22218
22340
|
};
|
|
22219
22341
|
var dateComparator = function(first, second) {
|
|
22220
22342
|
return first - second;
|
|
@@ -26858,6 +26980,46 @@ var ScrollListener = class {
|
|
|
26858
26980
|
}
|
|
26859
26981
|
};
|
|
26860
26982
|
|
|
26983
|
+
// src/components/InfiniteTable/utils/toCSSVarName.ts
|
|
26984
|
+
var toCSSVarName = (value) => `--infinite-${value}`;
|
|
26985
|
+
|
|
26986
|
+
// src/components/InfiniteTable/shared.ts
|
|
26987
|
+
var DEFAULT_ROW_HEIGHT = 40;
|
|
26988
|
+
var DEFAULT_COLUMN_HEADER_HEIGHT = toCSSVarName(
|
|
26989
|
+
columnHeaderHeightName
|
|
26990
|
+
);
|
|
26991
|
+
var DENSITY_SCALE = `var(${toCSSVarName("density-scale")}, 1)`;
|
|
26992
|
+
var DEFAULT_ROW_HEIGHT_CSS_VALUE = `calc(var(${toCSSVarName(
|
|
26993
|
+
"row-height"
|
|
26994
|
+
)}, ${DEFAULT_ROW_HEIGHT}px) * ${DENSITY_SCALE})`;
|
|
26995
|
+
var DEFAULT_COLUMN_HEADER_HEIGHT_CSS_VALUE = `calc(var(${DEFAULT_COLUMN_HEADER_HEIGHT}) * ${DENSITY_SCALE})`;
|
|
26996
|
+
function getRowHeightFromCSSValue(value, state) {
|
|
26997
|
+
if (!value) {
|
|
26998
|
+
return null;
|
|
26999
|
+
}
|
|
27000
|
+
if (state.rowHeightCSSVar !== DEFAULT_ROW_HEIGHT_CSS_VALUE) {
|
|
27001
|
+
return value;
|
|
27002
|
+
}
|
|
27003
|
+
if (!isThemeCSSLoaded()) {
|
|
27004
|
+
return null;
|
|
27005
|
+
}
|
|
27006
|
+
const rowHeight = Math.round(value);
|
|
27007
|
+
return rowHeight === state.rowHeight ? null : rowHeight;
|
|
27008
|
+
}
|
|
27009
|
+
var CSS_LOADED_VAR_NAME = toCSSVarName("loaded");
|
|
27010
|
+
function isThemeCSSLoaded() {
|
|
27011
|
+
if (typeof document === "undefined" || typeof getComputedStyle !== "function") {
|
|
27012
|
+
return false;
|
|
27013
|
+
}
|
|
27014
|
+
return getComputedStyle(document.documentElement).getPropertyValue(CSS_LOADED_VAR_NAME).trim() === CSS_LOADED_VALUE;
|
|
27015
|
+
}
|
|
27016
|
+
function getColumnHeaderHeightFromCSSValue(value, state) {
|
|
27017
|
+
if (!value) {
|
|
27018
|
+
return null;
|
|
27019
|
+
}
|
|
27020
|
+
return state.columnHeaderHeightCSSVar === DEFAULT_COLUMN_HEADER_HEIGHT_CSS_VALUE ? Math.round(value) : value;
|
|
27021
|
+
}
|
|
27022
|
+
|
|
26861
27023
|
// src/components/InfiniteTable/state/computeColumnGroupsDepths.ts
|
|
26862
27024
|
function computeColumnGroupsDepths(columnGroups, columnGroupVisibility) {
|
|
26863
27025
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -27436,7 +27598,12 @@ var forwardProps4 = (_setupState) => {
|
|
|
27436
27598
|
showZebraRows: (showZebraRows) => showZebraRows ?? true,
|
|
27437
27599
|
showHoverRows: (showHoverRows) => showHoverRows ?? true,
|
|
27438
27600
|
virtualizeColumns: (virtualizeColumns) => virtualizeColumns ?? true,
|
|
27439
|
-
rowHeight: (rowHeight) => typeof rowHeight === "number" || typeof rowHeight === "function" ? rowHeight :
|
|
27601
|
+
rowHeight: (rowHeight) => typeof rowHeight === "number" || typeof rowHeight === "function" ? rowHeight : (
|
|
27602
|
+
// when not specified, the row height comes from the theme (and density)
|
|
27603
|
+
// via a CSS watcher - but we start with the old default, so the first render
|
|
27604
|
+
// is the same as before
|
|
27605
|
+
rowHeight === DEFAULT_ROW_HEIGHT_CSS_VALUE ? DEFAULT_ROW_HEIGHT : 0
|
|
27606
|
+
),
|
|
27440
27607
|
rowDetailHeight: (rowDetailHeight) => typeof rowDetailHeight === "number" || typeof rowDetailHeight === "function" ? rowDetailHeight : 300,
|
|
27441
27608
|
columnHeaderHeight: (columnHeaderHeight) => typeof columnHeaderHeight === "number" ? columnHeaderHeight : 30,
|
|
27442
27609
|
columns: 1,
|
|
@@ -27592,7 +27759,10 @@ var mapPropsToState = (params) => {
|
|
|
27592
27759
|
computedColumnGroups,
|
|
27593
27760
|
rowHeightCSSVar: typeof props.rowHeight === "string" ? props.rowHeight : "",
|
|
27594
27761
|
rowDetailHeightCSSVar: typeof props.rowDetailHeight === "string" ? props.rowDetailHeight : "",
|
|
27595
|
-
columnHeaderHeightCSSVar: typeof props.columnHeaderHeight === "string" ? props.columnHeaderHeight ||
|
|
27762
|
+
columnHeaderHeightCSSVar: typeof props.columnHeaderHeight === "string" ? !props.columnHeaderHeight || props.columnHeaderHeight === DEFAULT_COLUMN_HEADER_HEIGHT ? (
|
|
27763
|
+
// the theme column header height, scaled by the density
|
|
27764
|
+
DEFAULT_COLUMN_HEADER_HEIGHT_CSS_VALUE
|
|
27765
|
+
) : props.columnHeaderHeight : ""
|
|
27596
27766
|
};
|
|
27597
27767
|
if (state.devToolsDetected && state.debugId) {
|
|
27598
27768
|
const devToolsOverrides = DEV_TOOLS_INFINITE_OVERRIDES.get(state.debugId);
|
|
@@ -27740,6 +27910,8 @@ var LoadingIcon = (props) => {
|
|
|
27740
27910
|
className: join(
|
|
27741
27911
|
props.className,
|
|
27742
27912
|
LoadingIconCls,
|
|
27913
|
+
IconCustomMaskCls.loading,
|
|
27914
|
+
LoadingIconSpinWhenCustomCls,
|
|
27743
27915
|
"InfiniteIcon",
|
|
27744
27916
|
"InfiniteIcon-loading"
|
|
27745
27917
|
)
|
|
@@ -28757,8 +28929,9 @@ function useComputed(options) {
|
|
|
28757
28929
|
};
|
|
28758
28930
|
});
|
|
28759
28931
|
useState20(() => {
|
|
28760
|
-
onRowHeightCSSVarChange.onChange((
|
|
28761
|
-
|
|
28932
|
+
onRowHeightCSSVarChange.onChange((value) => {
|
|
28933
|
+
const rowHeight2 = getRowHeightFromCSSValue(value, getState());
|
|
28934
|
+
if (rowHeight2 != null) {
|
|
28762
28935
|
componentActions.rowHeight = rowHeight2;
|
|
28763
28936
|
}
|
|
28764
28937
|
});
|
|
@@ -28773,8 +28946,12 @@ function useComputed(options) {
|
|
|
28773
28946
|
componentActions.rowDetailHeight = rowDetailHeight2;
|
|
28774
28947
|
}
|
|
28775
28948
|
});
|
|
28776
|
-
onColumnHeaderHeightCSSVarChange.onChange((
|
|
28777
|
-
|
|
28949
|
+
onColumnHeaderHeightCSSVarChange.onChange((value) => {
|
|
28950
|
+
const columnHeaderHeight = getColumnHeaderHeightFromCSSValue(
|
|
28951
|
+
value,
|
|
28952
|
+
getState()
|
|
28953
|
+
);
|
|
28954
|
+
if (columnHeaderHeight != null) {
|
|
28778
28955
|
componentActions.columnHeaderHeight = columnHeaderHeight;
|
|
28779
28956
|
}
|
|
28780
28957
|
});
|
|
@@ -29118,7 +29295,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
29118
29295
|
}
|
|
29119
29296
|
let valid2 = isValidLicense(licenseKey, {
|
|
29120
29297
|
publishedAt: 1624970570587,
|
|
29121
|
-
version: "10.1.
|
|
29298
|
+
version: "10.1.5"
|
|
29122
29299
|
});
|
|
29123
29300
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
29124
29301
|
return true;
|
|
@@ -31794,13 +31971,13 @@ import * as React68 from "react";
|
|
|
31794
31971
|
// src/components/InfiniteTable/components/icons/ClearIcon.tsx
|
|
31795
31972
|
import * as React66 from "react";
|
|
31796
31973
|
var ClearIcon = (props) => {
|
|
31797
|
-
return /* @__PURE__ */ React66.createElement(Icon, { ...props }, /* @__PURE__ */ React66.createElement("path", { d: iconPaths.clear[0] }));
|
|
31974
|
+
return /* @__PURE__ */ React66.createElement(Icon, { ...props, icon: "clear" }, /* @__PURE__ */ React66.createElement("path", { d: iconPaths.clear[0] }));
|
|
31798
31975
|
};
|
|
31799
31976
|
|
|
31800
31977
|
// src/components/InfiniteTable/components/icons/DoneIcon.tsx
|
|
31801
31978
|
import * as React67 from "react";
|
|
31802
31979
|
var DoneIcon = (props) => {
|
|
31803
|
-
return /* @__PURE__ */ React67.createElement(Icon, { ...props }, /* @__PURE__ */ React67.createElement("path", { d: iconPaths.done[0] }));
|
|
31980
|
+
return /* @__PURE__ */ React67.createElement(Icon, { ...props, icon: "done" }, /* @__PURE__ */ React67.createElement("path", { d: iconPaths.done[0] }));
|
|
31804
31981
|
};
|
|
31805
31982
|
|
|
31806
31983
|
// src/components/InfiniteTable/utils/getFilterOperatorMenuForColumn.tsx
|
|
@@ -33005,7 +33182,7 @@ import { useCallback as useCallback33 } from "react";
|
|
|
33005
33182
|
|
|
33006
33183
|
// src/components/InfiniteTable/components/GroupingToolbar/index.css.ts
|
|
33007
33184
|
var GroupingToolbarItemClearCls = "hs68h8j _16lm1iwk _16lm1iwx _16lm1iw2n";
|
|
33008
|
-
var GroupingToolbarItemRecipe = createRuntimeFn({ defaultClassName: "hs68h8e
|
|
33185
|
+
var GroupingToolbarItemRecipe = createRuntimeFn({ defaultClassName: "hs68h8e _16lm1iw1x _16lm1iw2j _16lm1iw1p", variantClassNames: { active: { true: "hs68h8f _16lm1iwn _16lm1iw1h", false: "_16lm1iwo" }, draggingInProgress: { true: "hs68h8h", false: "hs68h8i" } }, defaultVariants: {}, compoundVariants: [] });
|
|
33009
33186
|
var GroupingToolbarPlaceholderCls = "hs68h81";
|
|
33010
33187
|
var GroupingToolbarRecipe = createRuntimeFn({ defaultClassName: "hs68h80 _16lm1iw1p", variantClassNames: { orientation: { horizontal: "_16lm1iw2h _16lm1iw2j", vertical: "_16lm1iw2f" }, draggingInProgress: { true: "_16lm1iw1h", false: "hs68h86" }, dropRejected: { true: "hs68h87", false: "hs68h88" }, active: { true: "hs68h89", false: "hs68h8a" } }, defaultVariants: {}, compoundVariants: [[{ dropRejected: true, active: true }, "hs68h8b"], [{ dropRejected: false, active: true }, "hs68h8c"], [{ active: false, dropRejected: false }, "hs68h8d"]] });
|
|
33011
33188
|
|
|
@@ -34084,15 +34261,6 @@ function useInfiniteColumnApi(columnId) {
|
|
|
34084
34261
|
return useInfiniteTableSelector((ctx) => ctx.api.getColumnApi(columnId));
|
|
34085
34262
|
}
|
|
34086
34263
|
|
|
34087
|
-
// src/components/InfiniteTable/utils/toCSSVarName.ts
|
|
34088
|
-
var toCSSVarName = (value) => `--infinite-${value}`;
|
|
34089
|
-
|
|
34090
|
-
// src/components/InfiniteTable/shared.ts
|
|
34091
|
-
var DEFAULT_ROW_HEIGHT = 40;
|
|
34092
|
-
var DEFAULT_COLUMN_HEADER_HEIGHT = toCSSVarName(
|
|
34093
|
-
columnHeaderHeightName
|
|
34094
|
-
);
|
|
34095
|
-
|
|
34096
34264
|
// src/components/InfiniteTable/index.tsx
|
|
34097
34265
|
var InfiniteTableClassName = internalProps.rootClassName;
|
|
34098
34266
|
var { ManagedComponentContextProvider: InfiniteTableRoot } = buildManagedComponent({
|
|
@@ -34376,7 +34544,7 @@ var InfiniteTable = function(props) {
|
|
|
34376
34544
|
InfiniteTableRoot,
|
|
34377
34545
|
{
|
|
34378
34546
|
repeatWrappedGroupRows: !!props.wrapRowsHorizontally,
|
|
34379
|
-
rowHeight:
|
|
34547
|
+
rowHeight: DEFAULT_ROW_HEIGHT_CSS_VALUE,
|
|
34380
34548
|
columnHeaderHeight: DEFAULT_COLUMN_HEADER_HEIGHT,
|
|
34381
34549
|
...props
|
|
34382
34550
|
},
|