@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.js
CHANGED
|
@@ -1283,6 +1283,9 @@ var WRAPPER_STYLE = {
|
|
|
1283
1283
|
fontSize: 0,
|
|
1284
1284
|
overflow: "hidden"
|
|
1285
1285
|
};
|
|
1286
|
+
function toWatchedCSSValue(varName) {
|
|
1287
|
+
return varName.startsWith("var(") || varName.startsWith("calc(") ? varName : `var(${varName})`;
|
|
1288
|
+
}
|
|
1286
1289
|
|
|
1287
1290
|
// src/components/CSSNumericVariableWatch/index.tsx
|
|
1288
1291
|
var useCSSVariableWatch = (params) => {
|
|
@@ -1316,7 +1319,7 @@ var CSSNumericVariableWatch = (props) => {
|
|
|
1316
1319
|
...props,
|
|
1317
1320
|
ref: domRef
|
|
1318
1321
|
});
|
|
1319
|
-
const height2 =
|
|
1322
|
+
const height2 = toWatchedCSSValue(props.varName);
|
|
1320
1323
|
const { allowInts = false } = props;
|
|
1321
1324
|
return /* @__PURE__ */ React2.createElement(
|
|
1322
1325
|
"div",
|
|
@@ -2240,7 +2243,35 @@ function stripVar(cssVariableWithVarString) {
|
|
|
2240
2243
|
|
|
2241
2244
|
// src/components/InfiniteTable/components/icons/Icon.tsx
|
|
2242
2245
|
var React6 = __toESM(require("react"));
|
|
2246
|
+
|
|
2247
|
+
// src/components/InfiniteTable/components/icons/Icon.css.ts
|
|
2248
|
+
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" };
|
|
2249
|
+
var LoadingIconSpinWhenCustomCls = "_1jm33zvf";
|
|
2250
|
+
|
|
2251
|
+
// src/components/InfiniteTable/components/icons/customizableIcons.ts
|
|
2252
|
+
var CUSTOMIZABLE_ICONS = {
|
|
2253
|
+
expandCollapse: "expand-collapse",
|
|
2254
|
+
loading: "loading",
|
|
2255
|
+
done: "done",
|
|
2256
|
+
clear: "clear",
|
|
2257
|
+
hidden: "hidden",
|
|
2258
|
+
filterOperatorContains: "filter-operator-contains",
|
|
2259
|
+
filterOperatorStartsWith: "filter-operator-starts-with",
|
|
2260
|
+
filterOperatorEndsWith: "filter-operator-ends-with",
|
|
2261
|
+
filterOperatorEq: "filter-operator-eq",
|
|
2262
|
+
filterOperatorNeq: "filter-operator-neq",
|
|
2263
|
+
filterOperatorGt: "filter-operator-gt",
|
|
2264
|
+
filterOperatorGte: "filter-operator-gte",
|
|
2265
|
+
filterOperatorLt: "filter-operator-lt",
|
|
2266
|
+
filterOperatorLte: "filter-operator-lte"
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
// src/components/InfiniteTable/components/icons/InfiniteIconClassName.ts
|
|
2270
|
+
var InfiniteIconClassName = "InfiniteIcon";
|
|
2271
|
+
|
|
2272
|
+
// src/components/InfiniteTable/components/icons/Icon.tsx
|
|
2243
2273
|
var Icon = (props) => {
|
|
2274
|
+
const { icon, ...svgProps } = props;
|
|
2244
2275
|
const size = props.size ?? `var(--infinite-icon-size)`;
|
|
2245
2276
|
const style2 = {
|
|
2246
2277
|
flex: "none",
|
|
@@ -2251,7 +2282,21 @@ var Icon = (props) => {
|
|
|
2251
2282
|
};
|
|
2252
2283
|
return (
|
|
2253
2284
|
//@ts-ignore
|
|
2254
|
-
/* @__PURE__ */ React6.createElement(
|
|
2285
|
+
/* @__PURE__ */ React6.createElement(
|
|
2286
|
+
"svg",
|
|
2287
|
+
{
|
|
2288
|
+
viewBox: "0 0 24 24",
|
|
2289
|
+
...svgProps,
|
|
2290
|
+
className: icon ? join(
|
|
2291
|
+
props.className,
|
|
2292
|
+
IconCustomMaskCls[icon],
|
|
2293
|
+
InfiniteIconClassName,
|
|
2294
|
+
`${InfiniteIconClassName}-${CUSTOMIZABLE_ICONS[icon]}`
|
|
2295
|
+
) : props.className,
|
|
2296
|
+
style: style2
|
|
2297
|
+
},
|
|
2298
|
+
props.children
|
|
2299
|
+
)
|
|
2255
2300
|
);
|
|
2256
2301
|
};
|
|
2257
2302
|
|
|
@@ -2297,55 +2342,55 @@ var iconPaths = {
|
|
|
2297
2342
|
|
|
2298
2343
|
// src/components/InfiniteTable/components/icons/IncludesOperatorIcon.tsx
|
|
2299
2344
|
var IncludesOperatorIcon = (props) => {
|
|
2300
|
-
return /* @__PURE__ */ React7.createElement(Icon, { ...props }, iconPaths.includesOperator.map((d) => /* @__PURE__ */ React7.createElement("path", { key: d, d })));
|
|
2345
|
+
return /* @__PURE__ */ React7.createElement(Icon, { ...props, icon: "filterOperatorContains" }, iconPaths.includesOperator.map((d) => /* @__PURE__ */ React7.createElement("path", { key: d, d })));
|
|
2301
2346
|
};
|
|
2302
2347
|
|
|
2303
2348
|
// src/components/InfiniteTable/components/icons/EndsWithOperatorIcon.tsx
|
|
2304
2349
|
var React8 = __toESM(require("react"));
|
|
2305
2350
|
var EndsWithOperatorIcon = (props) => {
|
|
2306
|
-
return /* @__PURE__ */ React8.createElement(Icon, { ...props }, /* @__PURE__ */ React8.createElement("path", { d: iconPaths.endsWithOperator[0] }));
|
|
2351
|
+
return /* @__PURE__ */ React8.createElement(Icon, { ...props, icon: "filterOperatorEndsWith" }, /* @__PURE__ */ React8.createElement("path", { d: iconPaths.endsWithOperator[0] }));
|
|
2307
2352
|
};
|
|
2308
2353
|
|
|
2309
2354
|
// src/components/InfiniteTable/components/icons/EqualOperatorIcon.tsx
|
|
2310
2355
|
var React9 = __toESM(require("react"));
|
|
2311
2356
|
var EqualOperatorIcon = (props) => {
|
|
2312
|
-
return /* @__PURE__ */ React9.createElement(Icon, { ...props }, /* @__PURE__ */ React9.createElement("path", { d: iconPaths.eqOperator[0] }));
|
|
2357
|
+
return /* @__PURE__ */ React9.createElement(Icon, { ...props, icon: "filterOperatorEq" }, /* @__PURE__ */ React9.createElement("path", { d: iconPaths.eqOperator[0] }));
|
|
2313
2358
|
};
|
|
2314
2359
|
|
|
2315
2360
|
// src/components/InfiniteTable/components/icons/GTEOperatorIcon.tsx
|
|
2316
2361
|
var React10 = __toESM(require("react"));
|
|
2317
2362
|
var GTEOperatorIcon = (props) => {
|
|
2318
|
-
return /* @__PURE__ */ React10.createElement(Icon, { ...props }, /* @__PURE__ */ React10.createElement("path", { d: iconPaths.gteOperator[0] }));
|
|
2363
|
+
return /* @__PURE__ */ React10.createElement(Icon, { ...props, icon: "filterOperatorGte" }, /* @__PURE__ */ React10.createElement("path", { d: iconPaths.gteOperator[0] }));
|
|
2319
2364
|
};
|
|
2320
2365
|
|
|
2321
2366
|
// src/components/InfiniteTable/components/icons/GTOperatorIcon.tsx
|
|
2322
2367
|
var React11 = __toESM(require("react"));
|
|
2323
2368
|
var GTOperatorIcon = (props) => {
|
|
2324
|
-
return /* @__PURE__ */ React11.createElement(Icon, { ...props }, /* @__PURE__ */ React11.createElement("path", { d: iconPaths.gtOperator[0] }));
|
|
2369
|
+
return /* @__PURE__ */ React11.createElement(Icon, { ...props, icon: "filterOperatorGt" }, /* @__PURE__ */ React11.createElement("path", { d: iconPaths.gtOperator[0] }));
|
|
2325
2370
|
};
|
|
2326
2371
|
|
|
2327
2372
|
// src/components/InfiniteTable/components/icons/LTEOperatorIcon.tsx
|
|
2328
2373
|
var React12 = __toESM(require("react"));
|
|
2329
2374
|
var LTEOperatorIcon = (props) => {
|
|
2330
|
-
return /* @__PURE__ */ React12.createElement(Icon, { ...props }, /* @__PURE__ */ React12.createElement("path", { d: iconPaths.lteOperator[0] }));
|
|
2375
|
+
return /* @__PURE__ */ React12.createElement(Icon, { ...props, icon: "filterOperatorLte" }, /* @__PURE__ */ React12.createElement("path", { d: iconPaths.lteOperator[0] }));
|
|
2331
2376
|
};
|
|
2332
2377
|
|
|
2333
2378
|
// src/components/InfiniteTable/components/icons/LTOperatorIcon.tsx
|
|
2334
2379
|
var React13 = __toESM(require("react"));
|
|
2335
2380
|
var LTOperatorIcon = (props) => {
|
|
2336
|
-
return /* @__PURE__ */ React13.createElement(Icon, { ...props }, /* @__PURE__ */ React13.createElement("path", { d: iconPaths.ltOperator[0] }));
|
|
2381
|
+
return /* @__PURE__ */ React13.createElement(Icon, { ...props, icon: "filterOperatorLt" }, /* @__PURE__ */ React13.createElement("path", { d: iconPaths.ltOperator[0] }));
|
|
2337
2382
|
};
|
|
2338
2383
|
|
|
2339
2384
|
// src/components/InfiniteTable/components/icons/NotEqualOperatorIcon.tsx
|
|
2340
2385
|
var React14 = __toESM(require("react"));
|
|
2341
2386
|
var NotEqualOperatorIcon = (props) => {
|
|
2342
|
-
return /* @__PURE__ */ React14.createElement(Icon, { ...props }, /* @__PURE__ */ React14.createElement("path", { d: iconPaths.neqOperator[0] }));
|
|
2387
|
+
return /* @__PURE__ */ React14.createElement(Icon, { ...props, icon: "filterOperatorNeq" }, /* @__PURE__ */ React14.createElement("path", { d: iconPaths.neqOperator[0] }));
|
|
2343
2388
|
};
|
|
2344
2389
|
|
|
2345
2390
|
// src/components/InfiniteTable/components/icons/StartsWithOperatorIcon.tsx
|
|
2346
2391
|
var React15 = __toESM(require("react"));
|
|
2347
2392
|
var StartsWithOperatorIcon = (props) => {
|
|
2348
|
-
return /* @__PURE__ */ React15.createElement(Icon, { ...props }, /* @__PURE__ */ React15.createElement("path", { d: iconPaths.startsWithOperator[0] }));
|
|
2393
|
+
return /* @__PURE__ */ React15.createElement(Icon, { ...props, icon: "filterOperatorStartsWith" }, /* @__PURE__ */ React15.createElement("path", { d: iconPaths.startsWithOperator[0] }));
|
|
2349
2394
|
};
|
|
2350
2395
|
|
|
2351
2396
|
// src/components/InfiniteTable/components/FilterEditors.tsx
|
|
@@ -2485,11 +2530,9 @@ var HeaderSortIconIndexCls = "_12zfob16";
|
|
|
2485
2530
|
var HeaderSortIconRecipe = createRuntimeFn({ defaultClassName: "_12zfob12", variantClassNames: { align: { start: "_12zfob13", center: "_12zfob14", end: "_12zfob15" } }, defaultVariants: {}, compoundVariants: [] });
|
|
2486
2531
|
var HeaderWrapperCls = "_12zfob12l _16lm1iw35 _16lm1iw1 _16lm1iw1p _16lm1iw2h";
|
|
2487
2532
|
|
|
2488
|
-
// src/components/InfiniteTable/components/icons/InfiniteIconClassName.ts
|
|
2489
|
-
var InfiniteIconClassName = "InfiniteIcon";
|
|
2490
|
-
|
|
2491
2533
|
// src/components/InfiniteTable/components/icons/FilterIcon/FilterIcon.css.ts
|
|
2492
2534
|
var FilterIconCls = "_1nnkya20 _16lm1iw1p _16lm1iw2f _16lm1iw1 _16lm1iw32 _16lm1iw2j";
|
|
2535
|
+
var FilterIconLineCls = "_1nnkya21";
|
|
2493
2536
|
|
|
2494
2537
|
// src/components/InfiniteTable/components/icons/FilterIcon/shared.ts
|
|
2495
2538
|
var defaultLineStyle = {
|
|
@@ -2558,9 +2601,27 @@ function FilterIcon(props) {
|
|
|
2558
2601
|
},
|
|
2559
2602
|
index
|
|
2560
2603
|
) : null,
|
|
2561
|
-
/* @__PURE__ */ React16.createElement(
|
|
2562
|
-
|
|
2563
|
-
|
|
2604
|
+
/* @__PURE__ */ React16.createElement(
|
|
2605
|
+
"div",
|
|
2606
|
+
{
|
|
2607
|
+
className: FilterIconLineCls,
|
|
2608
|
+
style: { width: sizes[0], ...lineStyle }
|
|
2609
|
+
}
|
|
2610
|
+
),
|
|
2611
|
+
/* @__PURE__ */ React16.createElement(
|
|
2612
|
+
"div",
|
|
2613
|
+
{
|
|
2614
|
+
className: FilterIconLineCls,
|
|
2615
|
+
style: { width: sizes[1], ...lineStyle }
|
|
2616
|
+
}
|
|
2617
|
+
),
|
|
2618
|
+
/* @__PURE__ */ React16.createElement(
|
|
2619
|
+
"div",
|
|
2620
|
+
{
|
|
2621
|
+
className: FilterIconLineCls,
|
|
2622
|
+
style: { width: sizes[2], ...lineStyle }
|
|
2623
|
+
}
|
|
2624
|
+
)
|
|
2564
2625
|
);
|
|
2565
2626
|
}
|
|
2566
2627
|
|
|
@@ -4250,7 +4311,7 @@ var InternalVars = { currentColumnTransformX: "var(--_16hkbkc0)", y: "var(--_16h
|
|
|
4250
4311
|
|
|
4251
4312
|
// src/components/InfiniteTable/vars.css.ts
|
|
4252
4313
|
var CSS_LOADED_VALUE = "true";
|
|
4253
|
-
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)" } } };
|
|
4314
|
+
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)" } } };
|
|
4254
4315
|
var columnHeaderHeightName = "column-header-height";
|
|
4255
4316
|
|
|
4256
4317
|
// src/components/InfiniteTable/utils/infiniteDOMUtils.ts
|
|
@@ -10282,6 +10343,7 @@ function ExpandCollapseIcon(props) {
|
|
|
10282
10343
|
className: join(
|
|
10283
10344
|
props.className,
|
|
10284
10345
|
ExpanderIconCls,
|
|
10346
|
+
IconCustomMaskCls.expandCollapse,
|
|
10285
10347
|
ExpanderIconClsVariants({
|
|
10286
10348
|
direction: direction || "start",
|
|
10287
10349
|
expanded,
|
|
@@ -11695,6 +11757,10 @@ function RenderHeaderCellHookComponent(props) {
|
|
|
11695
11757
|
// src/components/InfiniteTable/components/icons/MenuIcon.tsx
|
|
11696
11758
|
var React27 = __toESM(require("react"));
|
|
11697
11759
|
|
|
11760
|
+
// src/components/InfiniteTable/components/icons/MenuIcon.css.ts
|
|
11761
|
+
var MenuIconLineCls = "yhvuzb1";
|
|
11762
|
+
var MenuIconWithDefaultLinesCls = "yhvuzb0";
|
|
11763
|
+
|
|
11698
11764
|
// src/components/InfiniteTable/components/icons/menuIconAttributes.ts
|
|
11699
11765
|
var MenuIconDataAttributes = keyMirror({
|
|
11700
11766
|
"data-name": ""
|
|
@@ -11709,7 +11775,7 @@ var defaultLineStyle2 = {
|
|
|
11709
11775
|
width: "100%",
|
|
11710
11776
|
pointerEvents: "none"
|
|
11711
11777
|
};
|
|
11712
|
-
var lineClassName = `${InfiniteIconClassName}-menu
|
|
11778
|
+
var lineClassName = join(`${InfiniteIconClassName}-menu`, MenuIconLineCls);
|
|
11713
11779
|
function MenuIcon(props) {
|
|
11714
11780
|
const {
|
|
11715
11781
|
style: style2,
|
|
@@ -11738,7 +11804,8 @@ function MenuIcon(props) {
|
|
|
11738
11804
|
reserveSpaceWhenHidden
|
|
11739
11805
|
}),
|
|
11740
11806
|
InfiniteIconClassName,
|
|
11741
|
-
`${InfiniteIconClassName}-menu
|
|
11807
|
+
`${InfiniteIconClassName}-menu`,
|
|
11808
|
+
children == null ? MenuIconWithDefaultLinesCls : ""
|
|
11742
11809
|
)
|
|
11743
11810
|
},
|
|
11744
11811
|
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 }))
|
|
@@ -11751,6 +11818,8 @@ var import_react21 = require("react");
|
|
|
11751
11818
|
|
|
11752
11819
|
// src/components/InfiniteTable/components/icons/SortIcon/SortIcon.css.ts
|
|
11753
11820
|
var SortIconCls = "_1b8djff0 _16lm1iw1p _16lm1iw2f _16lm1iw1 _16lm1iw32";
|
|
11821
|
+
var SortIconDirectionCls = { asc: "_1b8djff1", desc: "_1b8djff2", none: "_1b8djff3" };
|
|
11822
|
+
var SortIconLineCls = "_1b8djff4";
|
|
11754
11823
|
|
|
11755
11824
|
// src/components/InfiniteTable/components/icons/SortIcon/shared.ts
|
|
11756
11825
|
var defaultLineStyle3 = {
|
|
@@ -11811,6 +11880,7 @@ function SortIcon(props) {
|
|
|
11811
11880
|
if (!rendered && !props.forceSize) {
|
|
11812
11881
|
return null;
|
|
11813
11882
|
}
|
|
11883
|
+
const directionName = direction === 1 ? "asc" : direction === -1 ? "desc" : "none";
|
|
11814
11884
|
const indexStyle = {};
|
|
11815
11885
|
if (direction === -1) {
|
|
11816
11886
|
indexStyle.top = "100%";
|
|
@@ -11824,7 +11894,9 @@ function SortIcon(props) {
|
|
|
11824
11894
|
className,
|
|
11825
11895
|
InfiniteIconClassName,
|
|
11826
11896
|
SortIconCls,
|
|
11827
|
-
|
|
11897
|
+
SortIconDirectionCls[directionName],
|
|
11898
|
+
`${InfiniteIconClassName}-sort`,
|
|
11899
|
+
`${InfiniteIconClassName}-sort--${directionName}`
|
|
11828
11900
|
)
|
|
11829
11901
|
},
|
|
11830
11902
|
showIndex ? /* @__PURE__ */ React28.createElement(
|
|
@@ -11839,12 +11911,25 @@ function SortIcon(props) {
|
|
|
11839
11911
|
/* @__PURE__ */ React28.createElement(
|
|
11840
11912
|
"div",
|
|
11841
11913
|
{
|
|
11914
|
+
className: SortIconLineCls,
|
|
11842
11915
|
style: { width: sizes[0], ...lineStyle },
|
|
11843
11916
|
onTransitionEnd
|
|
11844
11917
|
}
|
|
11845
11918
|
),
|
|
11846
|
-
/* @__PURE__ */ React28.createElement(
|
|
11847
|
-
|
|
11919
|
+
/* @__PURE__ */ React28.createElement(
|
|
11920
|
+
"div",
|
|
11921
|
+
{
|
|
11922
|
+
className: SortIconLineCls,
|
|
11923
|
+
style: { width: sizes[1], ...lineStyle }
|
|
11924
|
+
}
|
|
11925
|
+
),
|
|
11926
|
+
/* @__PURE__ */ React28.createElement(
|
|
11927
|
+
"div",
|
|
11928
|
+
{
|
|
11929
|
+
className: SortIconLineCls,
|
|
11930
|
+
style: { width: sizes[2], ...lineStyle }
|
|
11931
|
+
}
|
|
11932
|
+
)
|
|
11848
11933
|
);
|
|
11849
11934
|
}
|
|
11850
11935
|
|
|
@@ -13215,7 +13300,7 @@ DragList.DraggableItem = DraggableItem;
|
|
|
13215
13300
|
// src/components/InfiniteTable/components/icons/HiddenIcon.tsx
|
|
13216
13301
|
var React32 = __toESM(require("react"));
|
|
13217
13302
|
var HiddenIcon = (props) => {
|
|
13218
|
-
return /* @__PURE__ */ React32.createElement(Icon, { ...props, viewBox: "0 -960 960 960" }, /* @__PURE__ */ React32.createElement("path", { d: iconPaths.hidden[0] }));
|
|
13303
|
+
return /* @__PURE__ */ React32.createElement(Icon, { ...props, icon: "hidden", viewBox: "0 -960 960 960" }, /* @__PURE__ */ React32.createElement("path", { d: iconPaths.hidden[0] }));
|
|
13219
13304
|
};
|
|
13220
13305
|
|
|
13221
13306
|
// src/components/InfiniteTable/components/InfiniteTablePublicHeader/index.tsx
|
|
@@ -22273,10 +22358,47 @@ function treeTraverse(treeParams, traverseOptions, data) {
|
|
|
22273
22358
|
var numberComparator = function(first, second) {
|
|
22274
22359
|
return first - second;
|
|
22275
22360
|
};
|
|
22361
|
+
var LOCALES_WITH_FAST_LOCALE_COMPARE = /* @__PURE__ */ new Set([
|
|
22362
|
+
"ca",
|
|
22363
|
+
"de",
|
|
22364
|
+
"de-AT",
|
|
22365
|
+
"en",
|
|
22366
|
+
"en-DE",
|
|
22367
|
+
"en-GB",
|
|
22368
|
+
"en-US",
|
|
22369
|
+
"fi",
|
|
22370
|
+
"fr",
|
|
22371
|
+
"id",
|
|
22372
|
+
"id-ID",
|
|
22373
|
+
"it",
|
|
22374
|
+
"ms",
|
|
22375
|
+
"nl",
|
|
22376
|
+
"pl",
|
|
22377
|
+
"pt",
|
|
22378
|
+
"ro",
|
|
22379
|
+
"sl",
|
|
22380
|
+
"sv",
|
|
22381
|
+
"sw",
|
|
22382
|
+
"vi"
|
|
22383
|
+
]);
|
|
22384
|
+
var collator;
|
|
22385
|
+
function getCollator() {
|
|
22386
|
+
try {
|
|
22387
|
+
const defaultCollator = new Intl.Collator();
|
|
22388
|
+
return LOCALES_WITH_FAST_LOCALE_COMPARE.has(
|
|
22389
|
+
defaultCollator.resolvedOptions().locale
|
|
22390
|
+
) ? null : defaultCollator;
|
|
22391
|
+
} catch (ex) {
|
|
22392
|
+
return null;
|
|
22393
|
+
}
|
|
22394
|
+
}
|
|
22276
22395
|
var stringComparator = function(first, second) {
|
|
22277
22396
|
first = `${first}`;
|
|
22278
22397
|
second = `${second}`;
|
|
22279
|
-
|
|
22398
|
+
if (collator === void 0) {
|
|
22399
|
+
collator = getCollator();
|
|
22400
|
+
}
|
|
22401
|
+
return collator ? collator.compare(first, second) : first.localeCompare(second);
|
|
22280
22402
|
};
|
|
22281
22403
|
var dateComparator = function(first, second) {
|
|
22282
22404
|
return first - second;
|
|
@@ -26915,6 +27037,46 @@ var ScrollListener = class {
|
|
|
26915
27037
|
}
|
|
26916
27038
|
};
|
|
26917
27039
|
|
|
27040
|
+
// src/components/InfiniteTable/utils/toCSSVarName.ts
|
|
27041
|
+
var toCSSVarName = (value) => `--infinite-${value}`;
|
|
27042
|
+
|
|
27043
|
+
// src/components/InfiniteTable/shared.ts
|
|
27044
|
+
var DEFAULT_ROW_HEIGHT = 40;
|
|
27045
|
+
var DEFAULT_COLUMN_HEADER_HEIGHT = toCSSVarName(
|
|
27046
|
+
columnHeaderHeightName
|
|
27047
|
+
);
|
|
27048
|
+
var DENSITY_SCALE = `var(${toCSSVarName("density-scale")}, 1)`;
|
|
27049
|
+
var DEFAULT_ROW_HEIGHT_CSS_VALUE = `calc(var(${toCSSVarName(
|
|
27050
|
+
"row-height"
|
|
27051
|
+
)}, ${DEFAULT_ROW_HEIGHT}px) * ${DENSITY_SCALE})`;
|
|
27052
|
+
var DEFAULT_COLUMN_HEADER_HEIGHT_CSS_VALUE = `calc(var(${DEFAULT_COLUMN_HEADER_HEIGHT}) * ${DENSITY_SCALE})`;
|
|
27053
|
+
function getRowHeightFromCSSValue(value, state) {
|
|
27054
|
+
if (!value) {
|
|
27055
|
+
return null;
|
|
27056
|
+
}
|
|
27057
|
+
if (state.rowHeightCSSVar !== DEFAULT_ROW_HEIGHT_CSS_VALUE) {
|
|
27058
|
+
return value;
|
|
27059
|
+
}
|
|
27060
|
+
if (!isThemeCSSLoaded()) {
|
|
27061
|
+
return null;
|
|
27062
|
+
}
|
|
27063
|
+
const rowHeight = Math.round(value);
|
|
27064
|
+
return rowHeight === state.rowHeight ? null : rowHeight;
|
|
27065
|
+
}
|
|
27066
|
+
var CSS_LOADED_VAR_NAME = toCSSVarName("loaded");
|
|
27067
|
+
function isThemeCSSLoaded() {
|
|
27068
|
+
if (typeof document === "undefined" || typeof getComputedStyle !== "function") {
|
|
27069
|
+
return false;
|
|
27070
|
+
}
|
|
27071
|
+
return getComputedStyle(document.documentElement).getPropertyValue(CSS_LOADED_VAR_NAME).trim() === CSS_LOADED_VALUE;
|
|
27072
|
+
}
|
|
27073
|
+
function getColumnHeaderHeightFromCSSValue(value, state) {
|
|
27074
|
+
if (!value) {
|
|
27075
|
+
return null;
|
|
27076
|
+
}
|
|
27077
|
+
return state.columnHeaderHeightCSSVar === DEFAULT_COLUMN_HEADER_HEIGHT_CSS_VALUE ? Math.round(value) : value;
|
|
27078
|
+
}
|
|
27079
|
+
|
|
26918
27080
|
// src/components/InfiniteTable/state/computeColumnGroupsDepths.ts
|
|
26919
27081
|
function computeColumnGroupsDepths(columnGroups, columnGroupVisibility) {
|
|
26920
27082
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -27493,7 +27655,12 @@ var forwardProps4 = (_setupState) => {
|
|
|
27493
27655
|
showZebraRows: (showZebraRows) => showZebraRows ?? true,
|
|
27494
27656
|
showHoverRows: (showHoverRows) => showHoverRows ?? true,
|
|
27495
27657
|
virtualizeColumns: (virtualizeColumns) => virtualizeColumns ?? true,
|
|
27496
|
-
rowHeight: (rowHeight) => typeof rowHeight === "number" || typeof rowHeight === "function" ? rowHeight :
|
|
27658
|
+
rowHeight: (rowHeight) => typeof rowHeight === "number" || typeof rowHeight === "function" ? rowHeight : (
|
|
27659
|
+
// when not specified, the row height comes from the theme (and density)
|
|
27660
|
+
// via a CSS watcher - but we start with the old default, so the first render
|
|
27661
|
+
// is the same as before
|
|
27662
|
+
rowHeight === DEFAULT_ROW_HEIGHT_CSS_VALUE ? DEFAULT_ROW_HEIGHT : 0
|
|
27663
|
+
),
|
|
27497
27664
|
rowDetailHeight: (rowDetailHeight) => typeof rowDetailHeight === "number" || typeof rowDetailHeight === "function" ? rowDetailHeight : 300,
|
|
27498
27665
|
columnHeaderHeight: (columnHeaderHeight) => typeof columnHeaderHeight === "number" ? columnHeaderHeight : 30,
|
|
27499
27666
|
columns: 1,
|
|
@@ -27649,7 +27816,10 @@ var mapPropsToState = (params) => {
|
|
|
27649
27816
|
computedColumnGroups,
|
|
27650
27817
|
rowHeightCSSVar: typeof props.rowHeight === "string" ? props.rowHeight : "",
|
|
27651
27818
|
rowDetailHeightCSSVar: typeof props.rowDetailHeight === "string" ? props.rowDetailHeight : "",
|
|
27652
|
-
columnHeaderHeightCSSVar: typeof props.columnHeaderHeight === "string" ? props.columnHeaderHeight ||
|
|
27819
|
+
columnHeaderHeightCSSVar: typeof props.columnHeaderHeight === "string" ? !props.columnHeaderHeight || props.columnHeaderHeight === DEFAULT_COLUMN_HEADER_HEIGHT ? (
|
|
27820
|
+
// the theme column header height, scaled by the density
|
|
27821
|
+
DEFAULT_COLUMN_HEADER_HEIGHT_CSS_VALUE
|
|
27822
|
+
) : props.columnHeaderHeight : ""
|
|
27653
27823
|
};
|
|
27654
27824
|
if (state.devToolsDetected && state.debugId) {
|
|
27655
27825
|
const devToolsOverrides = DEV_TOOLS_INFINITE_OVERRIDES.get(state.debugId);
|
|
@@ -27797,6 +27967,8 @@ var LoadingIcon = (props) => {
|
|
|
27797
27967
|
className: join(
|
|
27798
27968
|
props.className,
|
|
27799
27969
|
LoadingIconCls,
|
|
27970
|
+
IconCustomMaskCls.loading,
|
|
27971
|
+
LoadingIconSpinWhenCustomCls,
|
|
27800
27972
|
"InfiniteIcon",
|
|
27801
27973
|
"InfiniteIcon-loading"
|
|
27802
27974
|
)
|
|
@@ -28814,8 +28986,9 @@ function useComputed(options) {
|
|
|
28814
28986
|
};
|
|
28815
28987
|
});
|
|
28816
28988
|
(0, import_react50.useState)(() => {
|
|
28817
|
-
onRowHeightCSSVarChange.onChange((
|
|
28818
|
-
|
|
28989
|
+
onRowHeightCSSVarChange.onChange((value) => {
|
|
28990
|
+
const rowHeight2 = getRowHeightFromCSSValue(value, getState());
|
|
28991
|
+
if (rowHeight2 != null) {
|
|
28819
28992
|
componentActions.rowHeight = rowHeight2;
|
|
28820
28993
|
}
|
|
28821
28994
|
});
|
|
@@ -28830,8 +29003,12 @@ function useComputed(options) {
|
|
|
28830
29003
|
componentActions.rowDetailHeight = rowDetailHeight2;
|
|
28831
29004
|
}
|
|
28832
29005
|
});
|
|
28833
|
-
onColumnHeaderHeightCSSVarChange.onChange((
|
|
28834
|
-
|
|
29006
|
+
onColumnHeaderHeightCSSVarChange.onChange((value) => {
|
|
29007
|
+
const columnHeaderHeight = getColumnHeaderHeightFromCSSValue(
|
|
29008
|
+
value,
|
|
29009
|
+
getState()
|
|
29010
|
+
);
|
|
29011
|
+
if (columnHeaderHeight != null) {
|
|
28835
29012
|
componentActions.columnHeaderHeight = columnHeaderHeight;
|
|
28836
29013
|
}
|
|
28837
29014
|
});
|
|
@@ -29175,7 +29352,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
29175
29352
|
}
|
|
29176
29353
|
let valid2 = isValidLicense(licenseKey, {
|
|
29177
29354
|
publishedAt: 1624970570587,
|
|
29178
|
-
version: "10.1.
|
|
29355
|
+
version: "10.1.5"
|
|
29179
29356
|
});
|
|
29180
29357
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
29181
29358
|
return true;
|
|
@@ -31841,13 +32018,13 @@ var React68 = __toESM(require("react"));
|
|
|
31841
32018
|
// src/components/InfiniteTable/components/icons/ClearIcon.tsx
|
|
31842
32019
|
var React66 = __toESM(require("react"));
|
|
31843
32020
|
var ClearIcon = (props) => {
|
|
31844
|
-
return /* @__PURE__ */ React66.createElement(Icon, { ...props }, /* @__PURE__ */ React66.createElement("path", { d: iconPaths.clear[0] }));
|
|
32021
|
+
return /* @__PURE__ */ React66.createElement(Icon, { ...props, icon: "clear" }, /* @__PURE__ */ React66.createElement("path", { d: iconPaths.clear[0] }));
|
|
31845
32022
|
};
|
|
31846
32023
|
|
|
31847
32024
|
// src/components/InfiniteTable/components/icons/DoneIcon.tsx
|
|
31848
32025
|
var React67 = __toESM(require("react"));
|
|
31849
32026
|
var DoneIcon = (props) => {
|
|
31850
|
-
return /* @__PURE__ */ React67.createElement(Icon, { ...props }, /* @__PURE__ */ React67.createElement("path", { d: iconPaths.done[0] }));
|
|
32027
|
+
return /* @__PURE__ */ React67.createElement(Icon, { ...props, icon: "done" }, /* @__PURE__ */ React67.createElement("path", { d: iconPaths.done[0] }));
|
|
31851
32028
|
};
|
|
31852
32029
|
|
|
31853
32030
|
// src/components/InfiniteTable/utils/getFilterOperatorMenuForColumn.tsx
|
|
@@ -33052,7 +33229,7 @@ var import_react69 = require("react");
|
|
|
33052
33229
|
|
|
33053
33230
|
// src/components/InfiniteTable/components/GroupingToolbar/index.css.ts
|
|
33054
33231
|
var GroupingToolbarItemClearCls = "hs68h8j _16lm1iwk _16lm1iwx _16lm1iw2n";
|
|
33055
|
-
var GroupingToolbarItemRecipe = createRuntimeFn({ defaultClassName: "hs68h8e
|
|
33232
|
+
var GroupingToolbarItemRecipe = createRuntimeFn({ defaultClassName: "hs68h8e _16lm1iw1x _16lm1iw2j _16lm1iw1p", variantClassNames: { active: { true: "hs68h8f _16lm1iwn _16lm1iw1h", false: "_16lm1iwo" }, draggingInProgress: { true: "hs68h8h", false: "hs68h8i" } }, defaultVariants: {}, compoundVariants: [] });
|
|
33056
33233
|
var GroupingToolbarPlaceholderCls = "hs68h81";
|
|
33057
33234
|
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"]] });
|
|
33058
33235
|
|
|
@@ -34131,15 +34308,6 @@ function useInfiniteColumnApi(columnId) {
|
|
|
34131
34308
|
return useInfiniteTableSelector((ctx) => ctx.api.getColumnApi(columnId));
|
|
34132
34309
|
}
|
|
34133
34310
|
|
|
34134
|
-
// src/components/InfiniteTable/utils/toCSSVarName.ts
|
|
34135
|
-
var toCSSVarName = (value) => `--infinite-${value}`;
|
|
34136
|
-
|
|
34137
|
-
// src/components/InfiniteTable/shared.ts
|
|
34138
|
-
var DEFAULT_ROW_HEIGHT = 40;
|
|
34139
|
-
var DEFAULT_COLUMN_HEADER_HEIGHT = toCSSVarName(
|
|
34140
|
-
columnHeaderHeightName
|
|
34141
|
-
);
|
|
34142
|
-
|
|
34143
34311
|
// src/components/InfiniteTable/index.tsx
|
|
34144
34312
|
var InfiniteTableClassName = internalProps.rootClassName;
|
|
34145
34313
|
var { ManagedComponentContextProvider: InfiniteTableRoot } = buildManagedComponent({
|
|
@@ -34423,7 +34591,7 @@ var InfiniteTable = function(props) {
|
|
|
34423
34591
|
InfiniteTableRoot,
|
|
34424
34592
|
{
|
|
34425
34593
|
repeatWrappedGroupRows: !!props.wrapRowsHorizontally,
|
|
34426
|
-
rowHeight:
|
|
34594
|
+
rowHeight: DEFAULT_ROW_HEIGHT_CSS_VALUE,
|
|
34427
34595
|
columnHeaderHeight: DEFAULT_COLUMN_HEADER_HEIGHT,
|
|
34428
34596
|
...props
|
|
34429
34597
|
},
|