@kne/table-page 0.1.16 → 0.1.19
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 +28 -7
- package/dist/index.css +9 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +45 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +39 -25
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -385,6 +385,10 @@ const Tips = () => (
|
|
|
385
385
|
<Tag style={TIP_TAG_STYLE} color="blue">数据加载</Tag>
|
|
386
386
|
通过 <code>loader</code> 模拟分页接口,请求参数为 <code>data.currentPage</code>、<code>data.perPage</code>。
|
|
387
387
|
</div>
|
|
388
|
+
<div>
|
|
389
|
+
<Tag style={TIP_TAG_STYLE} color="processing">蒙层 Loading</Tag>
|
|
390
|
+
<code>reload</code> 切换数据时保留旧表格,叠加半透明蒙层与 spinner,加载完成后再替换为新数据;<code>refresh</code> 会卸载表格并显示全屏 loading。点下方「演示蒙层 Loading」可观察效果。
|
|
391
|
+
</div>
|
|
388
392
|
<div>
|
|
389
393
|
<Tag style={TIP_TAG_STYLE} color="green">分页</Tag>
|
|
390
394
|
分页器渲染在表格外侧,翻页时以 <code>reload</code> 方式请求;<code>pageSize</code> 会持久化到 localStorage;当 <code>total</code> 为 0(无数据)时不显示分页器。
|
|
@@ -481,6 +485,7 @@ const BaseExample = () => {
|
|
|
481
485
|
const [empty, setEmpty] = useState(false);
|
|
482
486
|
const [cardForcePagination, setCardForcePagination] = useState(false);
|
|
483
487
|
const emptyRef = React.useRef(false);
|
|
488
|
+
const slowReloadRef = React.useRef(false);
|
|
484
489
|
const allEmployees = useMemo(() => range(0, TOTAL).map(buildEmployee), []);
|
|
485
490
|
const { selectedRows, getRowSelection } = Table.useSelectedRow({ rowKey: 'id' });
|
|
486
491
|
const { sort, sortRender, mobileSortToolbar } = Table.useSort({
|
|
@@ -508,6 +513,21 @@ const BaseExample = () => {
|
|
|
508
513
|
/>
|
|
509
514
|
<span>{empty ? '空数据(无分页)' : '有数据(显示分页)'}</span>
|
|
510
515
|
</Flex>
|
|
516
|
+
<Button
|
|
517
|
+
type="primary"
|
|
518
|
+
onClick={() => {
|
|
519
|
+
slowReloadRef.current = true;
|
|
520
|
+
Promise.resolve(
|
|
521
|
+
tableRef.current?.reload({
|
|
522
|
+
data: { currentPage: 1 }
|
|
523
|
+
})
|
|
524
|
+
).finally(() => {
|
|
525
|
+
slowReloadRef.current = false;
|
|
526
|
+
});
|
|
527
|
+
}}
|
|
528
|
+
>
|
|
529
|
+
演示蒙层 Loading
|
|
530
|
+
</Button>
|
|
511
531
|
<Button
|
|
512
532
|
onClick={() => {
|
|
513
533
|
tableRef.current?.reload({
|
|
@@ -522,7 +542,7 @@ const BaseExample = () => {
|
|
|
522
542
|
tableRef.current?.refresh();
|
|
523
543
|
}}
|
|
524
544
|
>
|
|
525
|
-
|
|
545
|
+
刷新当前页(全屏 loading)
|
|
526
546
|
</Button>
|
|
527
547
|
<Flex align="center" gap={8}>
|
|
528
548
|
<span>卡片模式数据加载:</span>
|
|
@@ -612,9 +632,10 @@ const BaseExample = () => {
|
|
|
612
632
|
data
|
|
613
633
|
})}
|
|
614
634
|
loader={({ data, requestParams }) => {
|
|
635
|
+
const delay = slowReloadRef.current ? 1600 : 400;
|
|
615
636
|
if (emptyRef.current) {
|
|
616
637
|
return new Promise(resolve => {
|
|
617
|
-
setTimeout(() => resolve({ pageData: [], totalCount: 0 }),
|
|
638
|
+
setTimeout(() => resolve({ pageData: [], totalCount: 0 }), delay);
|
|
618
639
|
});
|
|
619
640
|
}
|
|
620
641
|
const currentPage = Number(data?.currentPage ?? requestParams?.data?.currentPage) || 1;
|
|
@@ -630,7 +651,7 @@ const BaseExample = () => {
|
|
|
630
651
|
pageData: sortedEmployees.slice(startIndex, startIndex + perPage),
|
|
631
652
|
totalCount: filteredEmployees.length
|
|
632
653
|
});
|
|
633
|
-
},
|
|
654
|
+
}, delay);
|
|
634
655
|
});
|
|
635
656
|
}}
|
|
636
657
|
columns={columns}
|
|
@@ -3607,9 +3628,9 @@ render(<BaseExample />);
|
|
|
3607
3628
|
| requestType | `'reload'` \| `'refresh'` | `'reload'` | 翻页时的请求方式,`reload` 不切换 loading,`refresh` 会重新 loading |
|
|
3608
3629
|
| showSizeChanger | boolean | `true` | 是否展示每页条数切换 |
|
|
3609
3630
|
| showQuickJumper | boolean | `true` | 是否展示快速跳转 |
|
|
3610
|
-
| hideOnSinglePage | boolean | `
|
|
3631
|
+
| hideOnSinglePage | boolean | `true` | 仅一页时是否隐藏分页器 |
|
|
3611
3632
|
| pageSizeOptions | array | - | 每页条数选项 |
|
|
3612
|
-
| pageSize | number | `
|
|
3633
|
+
| pageSize | number | `20` | 默认每页条数,会持久化到 localStorage |
|
|
3613
3634
|
| showTotal | function | - | 自定义总数展示 `(total) => ReactNode` |
|
|
3614
3635
|
| onChange | function | - | 自定义翻页回调 `(page, size) => void`,传入后覆盖默认请求逻辑 |
|
|
3615
3636
|
| onShowSizeChange | function | - | 每页条数变化回调,组件内部已处理持久化 |
|
|
@@ -3626,8 +3647,8 @@ render(<BaseExample />);
|
|
|
3626
3647
|
|------|------|--------|------|
|
|
3627
3648
|
| list | `Array<Array>` | - | 传给 `FilterLines` 的筛选项配置 |
|
|
3628
3649
|
| displayLine | number | `1` | 默认展示行数 |
|
|
3629
|
-
| value | array | - |
|
|
3630
|
-
| defaultValue | array | `[]` |
|
|
3650
|
+
| value | array | - | 受控筛选值(传入则受控,同时用于 UI 与首次请求;由 `@kne/use-control-value` 管理) |
|
|
3651
|
+
| defaultValue | array | `[]` | 非受控初始筛选值,会合并进首次请求参数 |
|
|
3631
3652
|
| onChange | function | - | 筛选值变化回调 `(value) => void` |
|
|
3632
3653
|
| mapFilterValue | function | - | 自定义参数转换,默认 `getFilterValue` |
|
|
3633
3654
|
|
package/dist/index.css
CHANGED
|
@@ -167,11 +167,18 @@
|
|
|
167
167
|
display: block;
|
|
168
168
|
width: calc(100% - var(--kne-table-cell-margin, 4px) * 2);
|
|
169
169
|
min-width: 0;
|
|
170
|
+
max-width: 100%;
|
|
170
171
|
box-sizing: border-box;
|
|
172
|
+
overflow: hidden;
|
|
173
|
+
}
|
|
174
|
+
.kne-table-page_CWr3V .ant-tag {
|
|
175
|
+
max-width: 100%;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
text-overflow: ellipsis;
|
|
178
|
+
vertical-align: bottom;
|
|
171
179
|
}
|
|
172
180
|
|
|
173
181
|
.ant-table-thead .kne-table-page_CWr3V {
|
|
174
|
-
overflow: hidden;
|
|
175
182
|
white-space: nowrap;
|
|
176
183
|
}
|
|
177
184
|
|
|
@@ -314,7 +321,7 @@
|
|
|
314
321
|
}
|
|
315
322
|
|
|
316
323
|
.kne-table-page_JARA2 {
|
|
317
|
-
position:
|
|
324
|
+
position: absolute;
|
|
318
325
|
width: 0;
|
|
319
326
|
border-right: 1px dashed var(--primary-color, #1677ff);
|
|
320
327
|
pointer-events: none;
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["style.module.scss","columnConfig.module.scss","tableToolbar.module.scss"],"names":[],"mappings":"AAAA;EACE,oEAAoE;EACpE,sBAAsB;EACtB,kBAAkB;EAClB,yBAAyB;EACzB,yCAAyC;AAC3C;AACA;EACE,kEAAkE;AACpE;AACA;EACE,uEAAuE;AACzE;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,eAAe;AACjB;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,uBAAuB;EACvB,uCAAuC;EACvC,qCAAqC;EACrC,qCAAqC;EACrC,mCAAmC;AACrC;AACA;EACE,uBAAuB;EACvB,mCAAmC;AACrC;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,6CAA6C;EAC7C,gEAAgE;EAChE,8DAA8D;AAChE;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,UAAU;EACV,oBAAo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;IACE,cAAc;EAChB;EACA;;;;IAIE,sBAAsB;IACtB,eAAe;EACjB;AACF;AACA;EACE,OAAO;EACP,YAAY;EACZ,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,cAAc;EACd,UAAU;EACV,kBAAkB;EAClB,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;EACX,qBAAqB;EACrB,oBAAoB;EACpB,4BAA4B;EAC5B,8BAA8B;AAChC;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,QAAQ;AACV;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;;EAEE,8BAA8B;EAC9B,wBAAwB;EACxB,4BAA4B;EAC5B,8BAA8B;EAC9B,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,QAAQ;AACV;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;AACA;;EAEE,4BAA4B;AAC9B","file":"index.css","sourcesContent":[":global(.loading-container.is-loading) {\n opacity: 0.5;\n pointer-events: none;\n position: relative;\n transition: opacity 300ms;\n}\n\n.table-page {\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n}\n\n.table-page-tabs-outer {\n margin-bottom: 8px;\n}\n\n.table-content {\n min-width: 0;\n}\n.table-content :global(.info-page-table) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n\n.table-with-toolbar {\n border: 1px solid #f0f0f0;\n border-radius: var(--radius-default, 2px);\n overflow: hidden;\n}\n.table-with-toolbar.is-sticky {\n overflow: visible;\n}\n.table-with-toolbar.is-mobile-render {\n display: flex;\n flex-direction: column;\n gap: 0;\n border: none;\n border-radius: 0;\n overflow: visible;\n}\n.table-with-toolbar :global(.table-page-toolbar) {\n border-start-start-radius: var(--radius-default, 2px);\n border-start-end-radius: var(--radius-default, 2px);\n}\n.table-with-toolbar :global(.table-page-toolbar-section) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n.table-with-toolbar :global(.info-page-table) {\n border: none;\n border-radius: 0;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-header) {\n border-start-start-radius: 0 !important;\n border-start-end-radius: 0 !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-placeholder > .ant-table-cell) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.table-page-toolbar-section--has-value) + :global(.info-page-table) :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell) {\n border-top: none !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:first-child) {\n border-start-start-radius: 0 !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:last-child) {\n border-start-end-radius: 0 !important;\n}\n\n.table-in-toolbar {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.table-with-toolbar.is-card-mode {\n border-color: transparent;\n}\n.table-with-toolbar.is-card-mode :global(.table-page-toolbar) {\n padding-inline: 0;\n}\n\n.is-card-render {\n padding-top: 12px;\n}\n\n.card-mode-toggle {\n flex-shrink: 0;\n background: var(--bg-color-grey-1, #f5f5f5);\n}\n.card-mode-toggle :global(.ant-segmented-item:not(.ant-segmented-item-selected)) {\n color: var(--font-color-grey, #666);\n}\n.card-mode-toggle :global(.ant-segmented-item-selected) {\n color: var(--primary-color, #1677ff);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n\n.is-mobile-render {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.mobile-load-more {\n width: 100%;\n}\n\n.pagination:global(.ant-pagination) {\n margin-top: 16px;\n display: flex;\n justify-content: flex-end;\n}\n.pagination:global(.ant-pagination).is-mobile-render {\n justify-content: center;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next) {\n margin: 0 !important;\n margin-inline: 0 !important;\n border: none !important;\n box-shadow: none !important;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item a) {\n border: none !important;\n box-shadow: none !important;\n}\n\n.total_text {\n color: var(--primary-color, #1677ff);\n font-weight: 500;\n padding: 0 2px;\n}\n\n.floating-scrollbar {\n position: fixed;\n z-index: 998;\n background: var(--bg-color-white, #ffffff);\n border: solid 1px var(--font-color-grey-4, #eeeeee);\n box-sizing: border-box;\n}\n\n.floating-scrollbar-embedded {\n position: sticky;\n bottom: 0;\n}\n\n.floating-scrollbar-thumb {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background: var(--font-color-grey-2, #cccccc);\n height: 60%;\n border-radius: 5px/50%;\n}\n.floating-scrollbar-thumb:hover, .floating-scrollbar-thumb.is-moving {\n background: var(--font-color-grey, #666666);\n}",".cell-resize-bar {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 60%;\n border-radius: 4px;\n width: 8px;\n font-size: 12px;\n background: var(--primary-color-1);\n color: var(--primary-color-2);\n top: 50%;\n right: 2px;\n cursor: col-resize;\n transform: translateY(-50%);\n visibility: hidden;\n}\n\n.table-changer-setting {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 28px;\n min-height: 28px;\n padding: 4px;\n border-radius: var(--radius-default, 4px);\n color: var(--font-color-grey-1, rgba(0, 0, 0, 0.45));\n transition: background-color 200ms, color 200ms;\n}\n.table-changer-setting:hover, .table-changer-setting.is-active {\n background: var(--primary-color-1);\n color: var(--primary-color);\n}\n\n.table-config-header {\n width: 100%;\n min-width: 0;\n}\n\n.table-config-header-title {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.columns-control-content {\n width: 300px;\n}\n.columns-control-content :global .ant-collapse {\n border: none;\n background: transparent;\n}\n.columns-control-content :global .ant-collapse-item {\n border-bottom: none;\n}\n.columns-control-content :global .ant-collapse-content-box {\n padding: 0 !important;\n}\n.columns-control-content :global .ant-list-item {\n border: none;\n}\n.columns-control-content :global .ant-collapse-header {\n font-weight: bold;\n padding: 8px 16px !important;\n}\n\n.columns-control-content-title {\n font-weight: bold;\n padding: 8px 16px;\n border-bottom: solid 1px var(--font-color-grey-4, #f0f0f0);\n}\n\n.columns-control-content-scroller {\n position: relative;\n max-height: 300px;\n overflow-y: auto;\n}\n\n.columns-control-sortable-list {\n display: block;\n}\n\n.columns-control-content-footer {\n border-top: solid 1px var(--font-color-grey-4, #f0f0f0);\n padding: 12px 16px;\n}\n\n.columns-control-content-input {\n width: 142px;\n}\n\n.columns-control-content-list {\n padding: 0;\n}\n\n.columns-control-content-item {\n display: flex;\n align-items: center;\n padding: 8px 14px !important;\n background: #ffffff;\n transition: box-shadow 500ms;\n box-sizing: border-box;\n}\n.columns-control-content-item :global .ant-checkbox-wrapper {\n flex: 1;\n}\n.columns-control-content-item.is-drag {\n cursor: move !important;\n}\n.columns-control-content-item.is-drag :global .ant-checkbox-wrapper {\n margin-left: 2px;\n}\n.columns-control-content-item:not(.is-drag) :global .ant-checkbox-wrapper {\n margin-left: 16px;\n}\n\n:global .table-page-sortable-drag {\n opacity: 1 !important;\n background: rgba(255, 255, 255, 0.9) !important;\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);\n z-index: 1050;\n display: flex !important;\n align-items: center;\n box-sizing: border-box;\n}\n:global .table-page-sortable-ghost {\n background: var(--primary-color-1) !important;\n border: 1px dashed var(--primary-color) !important;\n opacity: 0.6;\n}\n:global .table-page-sortable-chosen {\n background: var(--bg-color-grey-1, #fafafa);\n}\n\n.columns-control-content-item-icon {\n color: var(--font-color-grey-1, rgba(0, 0, 0, 0.45));\n flex-shrink: 0;\n}\n\n.columns-control-overlay {\n padding: 0 !important;\n}\n.columns-control-overlay > :global(.ant-popover-container) {\n padding: 0 !important;\n}\n.columns-control-overlay :global(.ant-popover-arrow) {\n display: none;\n}\n.columns-control-overlay :global(.ant-popover-inner-content),\n.columns-control-overlay :global(.ant-popover-inner),\n.columns-control-overlay :global(.ant-popover-container),\n.columns-control-overlay :global(.ant-popover-content) {\n padding: 0 !important;\n}\n\n.header-col:hover :global(.table-cell-resize-bar) {\n visibility: visible;\n}\n.header-col:global(.is-moving) :global(.table-cell-resize-bar) {\n visibility: visible;\n}\n\n.header-cell-inner {\n position: relative;\n display: block;\n width: 100%;\n}",".kne-responsive-boundary {\n position: relative;\n}\n\n.kne-responsive-scroll {\n overflow: auto;\n}\n\n:root {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.kne-responsive-boundary {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.table-toolbar-section {\n border-bottom: 1px solid #f0f0f0;\n position: relative;\n z-index: 2;\n}\n.table-toolbar-section.has-value-display .table-toolbar {\n padding-bottom: 0;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display {\n padding-top: 0;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.filter-title),\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.filter-value-display),\n.table-toolbar-section.has-value-display .table-toolbar-value-display > :global(.ant-space) {\n border-bottom: none !important;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.filter-line) {\n border-bottom: none !important;\n}\n\n.table-toolbar {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n}\n\n.table-toolbar-batch {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.table-toolbar-batch-btn {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n}\n.table-toolbar-batch-btn:not(:disabled):hover {\n border: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-batch-btn:disabled {\n border: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n color: var(--font-color-grey-2, #cccccc) !important;\n}\n\n.table-toolbar-batch-clear-btn {\n border: none !important;\n box-shadow: none !important;\n color: var(--color-error, #ff4d4f) !important;\n background: var(--color-error-bg, #fff1f0) !important;\n}\n.table-toolbar-batch-clear-btn:not(:disabled):hover {\n border: none !important;\n color: var(--color-error, #ff4d4f) !important;\n background: var(--color-error-bg-hover, #ffccc7) !important;\n}\n\n.table-toolbar-actions {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: auto;\n min-width: 0;\n}\n\n.table-toolbar-button-group {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n}\n\n.table-toolbar-search {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.table-toolbar-search :global(.ant-input-search) {\n background: var(--bg-color-grey-1, #f5f5f5);\n border-radius: var(--radius-default, 2px);\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused-within),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:focus) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n color: var(--font-color-grey, #666) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn):not(:disabled):hover {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-group-addon) {\n border: none !important;\n background: transparent !important;\n padding: 0;\n}\n\n.table-page-tabs {\n background: transparent;\n padding: 0;\n position: relative;\n z-index: 2;\n}\n.table-page-tabs :global(.ant-tabs) {\n margin-bottom: 0;\n}\n.table-page-tabs :global(.ant-tabs-nav) {\n margin-bottom: 0 !important;\n}\n.table-page-tabs :global(.ant-tabs-nav)::before {\n border-bottom-color: #f0f0f0;\n}\n.table-page-tabs :global(.ant-tabs-tab) {\n padding: 10px 0 !important;\n}\n.table-page-tabs.is-mobile-render {\n padding-inline: 0;\n}\n\n@container kne-responsive (max-width: 768px) {\n .table-toolbar.is-mobile {\n flex-direction: column;\n align-items: stretch;\n gap: 8px;\n }\n .table-toolbar-mobile-actions {\n width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n }\n .table-toolbar-mobile-filter-row {\n width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n }\n .table-toolbar-mobile-filter-row .table-toolbar-filter {\n flex: 1;\n min-width: 0;\n }\n .table-toolbar-mobile-filter-row .table-toolbar-button-group {\n margin-left: auto;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar-search-row {\n padding: 8px 16px 0;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar.is-mobile {\n padding-top: 8px;\n }\n .table-toolbar-section.has-mobile-search.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 8px;\n }\n .table-toolbar-section.has-mobile-search.is-mobile-render.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 0;\n }\n .table-toolbar-section.has-tabs .table-page-tabs {\n padding-inline: 16px;\n }\n .table-toolbar-search-row {\n display: block;\n width: 100%;\n margin-left: 0;\n flex-shrink: 1;\n box-sizing: border-box;\n }\n .table-toolbar-search-row.table-toolbar-search {\n margin-left: 0;\n }\n .table-toolbar-search-row .table-toolbar-search-input,\n .table-toolbar-search-row :global(.ant-input-search),\n .table-toolbar-search-row :global(.ant-input-group-wrapper),\n .table-toolbar-search-row :global(.ant-input-group) {\n width: 100% !important;\n max-width: 100%;\n }\n}\n.table-toolbar-filter {\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n}\n\n.table-toolbar-divider {\n flex-shrink: 0;\n width: 1px;\n align-self: center;\n height: 16px;\n background: #f0f0f0;\n}\n\n.table-toolbar-filter-outer {\n width: 100%;\n min-width: 0;\n}\n\n.table-toolbar-filter-inner {\n width: 100%;\n}\n\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-title) {\n width: 100%;\n padding: 0 !important;\n margin: 0 !important;\n line-height: 24px !important;\n border-bottom: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-title > .ant-space-item:first-child) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-label) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-list) {\n width: 100%;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-line) {\n min-height: 24px;\n gap: 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item-wrap) {\n height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item) {\n height: 24px;\n padding: 0 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item) :global(.ant-space-item) {\n line-height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item-label) {\n line-height: 24px;\n}\n\n.table-toolbar-value-display :global(.filter-value-display),\n.table-toolbar-value-display :global(.filter-title) {\n padding: 0 16px 6px !important;\n margin-top: 0 !important;\n line-height: 22px !important;\n border-bottom: none !important;\n gap: 8px !important;\n}\n.table-toolbar-value-display :global(.filter-value-display .filter-label) {\n line-height: 22px;\n}\n.table-toolbar-value-display :global(.filter-value-display-root .filter-line) {\n min-height: 22px;\n gap: 6px;\n}\n.table-toolbar-value-display :global(.filter-value-tag) {\n margin-inline-end: 0;\n}\n\n.table-toolbar-section.is-mobile-render {\n border-bottom: none;\n}\n.table-toolbar-section.is-mobile-render .table-toolbar,\n.table-toolbar-section.is-mobile-render .table-toolbar-search-row,\n.table-toolbar-section.is-mobile-render .table-page-tabs {\n padding-inline: 0;\n}\n.table-toolbar-section.is-mobile-render.has-mobile-search .table-toolbar-search-row {\n padding-inline: 0;\n}\n\n.table-toolbar-value-display.is-mobile-render {\n padding-inline: 0;\n}\n.table-toolbar-value-display.is-mobile-render :global(.filter-value-display),\n.table-toolbar-value-display.is-mobile-render :global(.filter-title) {\n padding-inline: 0 !important;\n}"]}
|
|
1
|
+
{"version":3,"sources":["style.module.scss","columnConfig.module.scss","tableToolbar.module.scss"],"names":[],"mappings":"AAAA;EACE,oEAAoE;EACpE,sBAAsB;EACtB,kBAAkB;EAClB,yBAAyB;EACzB,yCAAyC;AAC3C;AACA;EACE,kEAAkE;AACpE;AACA;EACE,uEAAuE;AACzE;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,WAAW;EACX,eAAe;AACjB;AACA;;EAEE,2BAA2B;AAC7B;AACA;EACE,uBAAuB;EACvB,uCAAuC;EACvC,qCAAqC;EACrC,qCAAqC;EACrC,mCAAmC;AACrC;AACA;EACE,uBAAuB;EACvB,mCAAmC;AACrC;AACA;EACE,2BAA2B;AAC7B;AACA;EACE,6CAA6C;EAC7C,gEAAgE;EAChE,8DAA8D;AAChE;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,UAAU;EACV,oBAAoB;EACpB,cAAc;EACd,mBAAmB;EACnB,2CAA2C;AAC7C;AACA;EACE,8DAA8D;EAC9D,0CAA0C;AAC5C;AACA;EACE,qBAAqB;AACvB;AACA;EACE,qB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eAAe;EACjB;AACF;AACA;EACE,OAAO;EACP,YAAY;EACZ,aAAa;EACb,mBAAmB;AACrB;;AAEA;EACE,cAAc;EACd,UAAU;EACV,kBAAkB;EAClB,YAAY;EACZ,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,YAAY;AACd;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,WAAW;EACX,qBAAqB;EACrB,oBAAoB;EACpB,4BAA4B;EAC5B,8BAA8B;AAChC;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,QAAQ;AACV;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;EACZ,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;;EAEE,8BAA8B;EAC9B,wBAAwB;EACxB,4BAA4B;EAC5B,8BAA8B;EAC9B,mBAAmB;AACrB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,gBAAgB;EAChB,QAAQ;AACV;AACA;EACE,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;AACrB;AACA;;;EAGE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,iBAAiB;AACnB;AACA;;EAEE,4BAA4B;AAC9B","file":"index.css","sourcesContent":[":global(.loading-container.is-loading) {\n opacity: 0.5;\n pointer-events: none;\n position: relative;\n transition: opacity 300ms;\n}\n\n.table-page {\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-width: 100%;\n}\n\n.table-page-tabs-outer {\n margin-bottom: 8px;\n}\n\n.table-content {\n min-width: 0;\n}\n.table-content :global(.info-page-table) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n\n.table-with-toolbar {\n border: 1px solid #f0f0f0;\n border-radius: var(--radius-default, 2px);\n overflow: hidden;\n}\n.table-with-toolbar.is-sticky {\n overflow: visible;\n}\n.table-with-toolbar.is-mobile-render {\n display: flex;\n flex-direction: column;\n gap: 0;\n border: none;\n border-radius: 0;\n overflow: visible;\n}\n.table-with-toolbar :global(.table-page-toolbar) {\n border-start-start-radius: var(--radius-default, 2px);\n border-start-end-radius: var(--radius-default, 2px);\n}\n.table-with-toolbar :global(.table-page-toolbar-section) {\n scroll-margin-top: var(--scroll-top-inset, var(--sticky-offset, var(--nav-height, 0px)));\n}\n.table-with-toolbar :global(.info-page-table) {\n border: none;\n border-radius: 0;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-header) {\n border-start-start-radius: 0 !important;\n border-start-end-radius: 0 !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table):not(.has-summary) :global(.ant-table-tbody > tr:last-child > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:first-child) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table).has-summary :global(.ant-table-summary > tr > .ant-table-cell:last-child) {\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.info-page-table) :global(.ant-table-placeholder > .ant-table-cell) {\n border-end-start-radius: var(--radius-default, 2px) !important;\n border-end-end-radius: var(--radius-default, 2px) !important;\n}\n.table-with-toolbar :global(.table-page-toolbar-section--has-value) + :global(.info-page-table) :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell) {\n border-top: none !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:first-child) {\n border-start-start-radius: 0 !important;\n}\n.table-with-toolbar :global(.ant-table-thead > tr.info-page-table-header:first-child > .ant-table-cell:last-child) {\n border-start-end-radius: 0 !important;\n}\n\n.table-in-toolbar {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.table-with-toolbar.is-card-mode {\n border-color: transparent;\n}\n.table-with-toolbar.is-card-mode :global(.table-page-toolbar) {\n padding-inline: 0;\n}\n\n.is-card-render {\n padding-top: 12px;\n}\n\n.card-mode-toggle {\n flex-shrink: 0;\n background: var(--bg-color-grey-1, #f5f5f5);\n}\n.card-mode-toggle :global(.ant-segmented-item:not(.ant-segmented-item-selected)) {\n color: var(--font-color-grey, #666);\n}\n.card-mode-toggle :global(.ant-segmented-item-selected) {\n color: var(--primary-color, #1677ff);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);\n}\n\n.is-mobile-render {\n border: none !important;\n border-radius: 0 !important;\n}\n\n.mobile-load-more {\n width: 100%;\n}\n\n.pagination:global(.ant-pagination) {\n margin-top: 16px;\n display: flex;\n justify-content: flex-end;\n}\n.pagination:global(.ant-pagination).is-mobile-render {\n justify-content: center;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next) {\n margin: 0 !important;\n margin-inline: 0 !important;\n border: none !important;\n box-shadow: none !important;\n}\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-prev .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-jump-next .ant-pagination-item-link),\n.pagination:global(.ant-pagination).is-mobile-render :global(.ant-pagination-item a) {\n border: none !important;\n box-shadow: none !important;\n}\n\n.total_text {\n color: var(--primary-color, #1677ff);\n font-weight: 500;\n padding: 0 2px;\n}\n\n.floating-scrollbar {\n position: fixed;\n z-index: 998;\n background: var(--bg-color-white, #ffffff);\n border: solid 1px var(--font-color-grey-4, #eeeeee);\n box-sizing: border-box;\n}\n\n.floating-scrollbar-embedded {\n position: sticky;\n bottom: 0;\n}\n\n.floating-scrollbar-thumb {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background: var(--font-color-grey-2, #cccccc);\n height: 60%;\n border-radius: 5px/50%;\n}\n.floating-scrollbar-thumb:hover, .floating-scrollbar-thumb.is-moving {\n background: var(--font-color-grey, #666666);\n}",".cell-resize-bar {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 60%;\n border-radius: 4px;\n width: 8px;\n font-size: 12px;\n background: var(--primary-color-1);\n color: var(--primary-color-2);\n top: 50%;\n right: 2px;\n cursor: col-resize;\n transform: translateY(-50%);\n visibility: hidden;\n}\n\n.table-changer-setting {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 28px;\n min-height: 28px;\n padding: 4px;\n border-radius: var(--radius-default, 4px);\n color: var(--font-color-grey-1, rgba(0, 0, 0, 0.45));\n transition: background-color 200ms, color 200ms;\n}\n.table-changer-setting:hover, .table-changer-setting.is-active {\n background: var(--primary-color-1);\n color: var(--primary-color);\n}\n\n.table-config-header {\n width: 100%;\n min-width: 0;\n}\n\n.table-config-header-title {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.columns-control-content {\n width: 300px;\n}\n.columns-control-content :global .ant-collapse {\n border: none;\n background: transparent;\n}\n.columns-control-content :global .ant-collapse-item {\n border-bottom: none;\n}\n.columns-control-content :global .ant-collapse-content-box {\n padding: 0 !important;\n}\n.columns-control-content :global .ant-list-item {\n border: none;\n}\n.columns-control-content :global .ant-collapse-header {\n font-weight: bold;\n padding: 8px 16px !important;\n}\n\n.columns-control-content-title {\n font-weight: bold;\n padding: 8px 16px;\n border-bottom: solid 1px var(--font-color-grey-4, #f0f0f0);\n}\n\n.columns-control-content-scroller {\n position: relative;\n max-height: 300px;\n overflow-y: auto;\n}\n\n.columns-control-sortable-list {\n display: block;\n}\n\n.columns-control-content-footer {\n border-top: solid 1px var(--font-color-grey-4, #f0f0f0);\n padding: 12px 16px;\n}\n\n.columns-control-content-input {\n width: 142px;\n}\n\n.columns-control-content-list {\n padding: 0;\n}\n\n.columns-control-content-item {\n display: flex;\n align-items: center;\n padding: 8px 14px !important;\n background: #ffffff;\n transition: box-shadow 500ms;\n box-sizing: border-box;\n}\n.columns-control-content-item :global .ant-checkbox-wrapper {\n flex: 1;\n}\n.columns-control-content-item.is-drag {\n cursor: move !important;\n}\n.columns-control-content-item.is-drag :global .ant-checkbox-wrapper {\n margin-left: 2px;\n}\n.columns-control-content-item:not(.is-drag) :global .ant-checkbox-wrapper {\n margin-left: 16px;\n}\n\n:global .table-page-sortable-drag {\n opacity: 1 !important;\n background: rgba(255, 255, 255, 0.9) !important;\n box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);\n z-index: 1050;\n display: flex !important;\n align-items: center;\n box-sizing: border-box;\n}\n:global .table-page-sortable-ghost {\n background: var(--primary-color-1) !important;\n border: 1px dashed var(--primary-color) !important;\n opacity: 0.6;\n}\n:global .table-page-sortable-chosen {\n background: var(--bg-color-grey-1, #fafafa);\n}\n\n.columns-control-content-item-icon {\n color: var(--font-color-grey-1, rgba(0, 0, 0, 0.45));\n flex-shrink: 0;\n}\n\n.columns-control-overlay {\n padding: 0 !important;\n}\n.columns-control-overlay > :global(.ant-popover-container) {\n padding: 0 !important;\n}\n.columns-control-overlay :global(.ant-popover-arrow) {\n display: none;\n}\n.columns-control-overlay :global(.ant-popover-inner-content),\n.columns-control-overlay :global(.ant-popover-inner),\n.columns-control-overlay :global(.ant-popover-container),\n.columns-control-overlay :global(.ant-popover-content) {\n padding: 0 !important;\n}\n\n.header-col:hover :global(.table-cell-resize-bar) {\n visibility: visible;\n}\n.header-col:global(.is-moving) :global(.table-cell-resize-bar) {\n visibility: visible;\n}\n\n.header-cell-inner {\n position: relative;\n display: block;\n width: 100%;\n}",".kne-responsive-boundary {\n position: relative;\n}\n\n.kne-responsive-scroll {\n overflow: auto;\n}\n\n:root {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.kne-responsive-boundary {\n --kne-viewport-width: 100vw;\n --kne-viewport-height: 100dvh;\n --kne-viewport-inline-size: 100vw;\n --kne-viewport-block-size: 100dvh;\n}\n\n.table-toolbar-section {\n border-bottom: 1px solid #f0f0f0;\n position: relative;\n z-index: 2;\n}\n.table-toolbar-section.has-value-display .table-toolbar {\n padding-bottom: 0;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display {\n padding-top: 0;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.filter-title),\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.filter-value-display),\n.table-toolbar-section.has-value-display .table-toolbar-value-display > :global(.ant-space) {\n border-bottom: none !important;\n}\n.table-toolbar-section.has-value-display .table-toolbar-value-display :global(.filter-line) {\n border-bottom: none !important;\n}\n\n.table-toolbar {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n}\n\n.table-toolbar-batch {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.table-toolbar-batch-btn {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n}\n.table-toolbar-batch-btn:not(:disabled):hover {\n border: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-batch-btn:disabled {\n border: none !important;\n background: var(--bg-color-grey-1, #f5f5f5) !important;\n color: var(--font-color-grey-2, #cccccc) !important;\n}\n\n.table-toolbar-batch-clear-btn {\n border: none !important;\n box-shadow: none !important;\n color: var(--color-error, #ff4d4f) !important;\n background: var(--color-error-bg, #fff1f0) !important;\n}\n.table-toolbar-batch-clear-btn:not(:disabled):hover {\n border: none !important;\n color: var(--color-error, #ff4d4f) !important;\n background: var(--color-error-bg-hover, #ffccc7) !important;\n}\n\n.table-toolbar-actions {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n margin-left: auto;\n min-width: 0;\n}\n\n.table-toolbar-button-group {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n}\n\n.table-toolbar-search {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n.table-toolbar-search :global(.ant-input-search) {\n background: var(--bg-color-grey-1, #f5f5f5);\n border-radius: var(--radius-default, 2px);\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-affix-wrapper-focused-within),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:hover),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input:focus) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button),\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn) {\n border: none !important;\n box-shadow: none !important;\n background: transparent !important;\n color: var(--font-color-grey, #666) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-btn):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-search-button):not(:disabled):hover,\n.table-toolbar-search :global(.ant-input-search) :global(.ant-btn):not(:disabled):hover {\n border: none !important;\n box-shadow: none !important;\n background: var(--bg-color-grey-2, #f0f0f0) !important;\n color: var(--font-color, rgba(0, 0, 0, 0.88)) !important;\n}\n.table-toolbar-search :global(.ant-input-search) :global(.ant-input-group-addon) {\n border: none !important;\n background: transparent !important;\n padding: 0;\n}\n\n.table-page-tabs {\n background: transparent;\n padding: 0;\n position: relative;\n z-index: 2;\n}\n.table-page-tabs :global(.ant-tabs) {\n margin-bottom: 0;\n}\n.table-page-tabs :global(.ant-tabs-nav) {\n margin-bottom: 0 !important;\n}\n.table-page-tabs :global(.ant-tabs-nav)::before {\n border-bottom-color: #f0f0f0;\n}\n.table-page-tabs :global(.ant-tabs-tab) {\n padding: 10px 0 !important;\n}\n.table-page-tabs.is-mobile-render {\n padding-inline: 0;\n}\n\n@container kne-responsive (max-width: 768px) {\n .table-toolbar.is-mobile {\n flex-direction: column;\n align-items: stretch;\n gap: 8px;\n }\n .table-toolbar-mobile-actions {\n width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n }\n .table-toolbar-mobile-filter-row {\n width: 100%;\n min-width: 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n }\n .table-toolbar-mobile-filter-row .table-toolbar-filter {\n flex: 1;\n min-width: 0;\n }\n .table-toolbar-mobile-filter-row .table-toolbar-button-group {\n margin-left: auto;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar-search-row {\n padding: 8px 16px 0;\n }\n .table-toolbar-section.has-mobile-search .table-toolbar.is-mobile {\n padding-top: 8px;\n }\n .table-toolbar-section.has-mobile-search.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 8px;\n }\n .table-toolbar-section.has-mobile-search.is-mobile-render.has-mobile-search-only .table-toolbar-search-row {\n padding-bottom: 0;\n }\n .table-toolbar-section.has-tabs .table-page-tabs {\n padding-inline: 16px;\n }\n .table-toolbar-search-row {\n display: block;\n width: 100%;\n margin-left: 0;\n flex-shrink: 1;\n box-sizing: border-box;\n }\n .table-toolbar-search-row.table-toolbar-search {\n margin-left: 0;\n }\n .table-toolbar-search-row .table-toolbar-search-input,\n .table-toolbar-search-row :global(.ant-input-search),\n .table-toolbar-search-row :global(.ant-input-group-wrapper),\n .table-toolbar-search-row :global(.ant-input-group) {\n width: 100% !important;\n max-width: 100%;\n }\n}\n.table-toolbar-filter {\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n}\n\n.table-toolbar-divider {\n flex-shrink: 0;\n width: 1px;\n align-self: center;\n height: 16px;\n background: #f0f0f0;\n}\n\n.table-toolbar-filter-outer {\n width: 100%;\n min-width: 0;\n}\n\n.table-toolbar-filter-inner {\n width: 100%;\n}\n\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-title) {\n width: 100%;\n padding: 0 !important;\n margin: 0 !important;\n line-height: 24px !important;\n border-bottom: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-title > .ant-space-item:first-child) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-label) {\n display: none !important;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-list) {\n width: 100%;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-line) {\n min-height: 24px;\n gap: 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item-wrap) {\n height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item) {\n height: 24px;\n padding: 0 8px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item) :global(.ant-space-item) {\n line-height: 24px;\n}\n.table-toolbar:not(.is-mobile) .table-toolbar-filter-inner :global(.filter-item-label) {\n line-height: 24px;\n}\n\n.table-toolbar-value-display :global(.filter-value-display),\n.table-toolbar-value-display :global(.filter-title) {\n padding: 0 16px 6px !important;\n margin-top: 0 !important;\n line-height: 22px !important;\n border-bottom: none !important;\n gap: 8px !important;\n}\n.table-toolbar-value-display :global(.filter-value-display .filter-label) {\n line-height: 22px;\n}\n.table-toolbar-value-display :global(.filter-value-display-root .filter-line) {\n min-height: 22px;\n gap: 6px;\n}\n.table-toolbar-value-display :global(.filter-value-tag) {\n margin-inline-end: 0;\n}\n\n.table-toolbar-section.is-mobile-render {\n border-bottom: none;\n}\n.table-toolbar-section.is-mobile-render .table-toolbar,\n.table-toolbar-section.is-mobile-render .table-toolbar-search-row,\n.table-toolbar-section.is-mobile-render .table-page-tabs {\n padding-inline: 0;\n}\n.table-toolbar-section.is-mobile-render.has-mobile-search .table-toolbar-search-row {\n padding-inline: 0;\n}\n\n.table-toolbar-value-display.is-mobile-render {\n padding-inline: 0;\n}\n.table-toolbar-value-display.is-mobile-render :global(.filter-value-display),\n.table-toolbar-value-display.is-mobile-render :global(.filter-title) {\n padding-inline: 0 !important;\n}"]}
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ var cloneDeep = require('lodash/cloneDeep');
|
|
|
24
24
|
var reactIntl = require('@kne/react-intl');
|
|
25
25
|
var filterZhCN = require('@kne/react-filter/dist/locale/zh-CN');
|
|
26
26
|
var filterEnUS = require('@kne/react-filter/dist/locale/en-US');
|
|
27
|
+
var useControlValue = require('@kne/use-control-value');
|
|
27
28
|
var reactDom = require('react-dom');
|
|
28
29
|
require('@kne/button-group/dist/index.css');
|
|
29
30
|
require('@kne/react-filter/dist/index.css');
|
|
@@ -43,6 +44,7 @@ var groupBy__default = /*#__PURE__*/_interopDefaultLegacy(groupBy);
|
|
|
43
44
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
|
44
45
|
var filterZhCN__default = /*#__PURE__*/_interopDefaultLegacy(filterZhCN);
|
|
45
46
|
var filterEnUS__default = /*#__PURE__*/_interopDefaultLegacy(filterEnUS);
|
|
47
|
+
var useControlValue__default = /*#__PURE__*/_interopDefaultLegacy(useControlValue);
|
|
46
48
|
var ButtonGroup__default = /*#__PURE__*/_interopDefaultLegacy(ButtonGroup);
|
|
47
49
|
|
|
48
50
|
function _extends() {
|
|
@@ -1469,16 +1471,15 @@ const Table = p => {
|
|
|
1469
1471
|
setResizeGuideStyle(null);
|
|
1470
1472
|
return;
|
|
1471
1473
|
}
|
|
1474
|
+
const wrapperRect = root.getBoundingClientRect();
|
|
1472
1475
|
const headerRect = headerCell.getBoundingClientRect();
|
|
1473
1476
|
const resizeBar = headerCell.querySelector('.table-cell-resize-bar');
|
|
1474
1477
|
const barRect = resizeBar == null ? void 0 : resizeBar.getBoundingClientRect();
|
|
1475
1478
|
const containerRect = tableContainer.getBoundingClientRect();
|
|
1476
1479
|
setResizeGuideStyle({
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
height: Math.round(containerRect.height),
|
|
1481
|
-
zIndex: 100
|
|
1480
|
+
left: Math.round(((_barRect$right = barRect == null ? void 0 : barRect.right) != null ? _barRect$right : headerRect.right) - wrapperRect.left),
|
|
1481
|
+
top: Math.round(containerRect.top - wrapperRect.top),
|
|
1482
|
+
height: Math.round(containerRect.height)
|
|
1482
1483
|
});
|
|
1483
1484
|
}, [currentMoveColumnIndex]);
|
|
1484
1485
|
react.useLayoutEffect(() => {
|
|
@@ -2711,6 +2712,17 @@ const defaultMergeList = (data, newData) => {
|
|
|
2711
2712
|
pageData: [...((data == null ? void 0 : data.pageData) || []), ...((newData == null ? void 0 : newData.pageData) || [])]
|
|
2712
2713
|
});
|
|
2713
2714
|
};
|
|
2715
|
+
|
|
2716
|
+
/** 与 use-control-value 一致:有 value key 为受控,否则用 defaultValue */
|
|
2717
|
+
const resolveInitialFilterValue = filter => {
|
|
2718
|
+
if (!filter) {
|
|
2719
|
+
return [];
|
|
2720
|
+
}
|
|
2721
|
+
if ('value' in filter) {
|
|
2722
|
+
return filter.value || [];
|
|
2723
|
+
}
|
|
2724
|
+
return filter.defaultValue || [];
|
|
2725
|
+
};
|
|
2714
2726
|
const readPageSize = key => {
|
|
2715
2727
|
try {
|
|
2716
2728
|
const value = localStorage.getItem(key);
|
|
@@ -2860,11 +2872,11 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
2860
2872
|
const tableContentRef = react.useRef(null);
|
|
2861
2873
|
const pendingScrollRef = react.useRef(false);
|
|
2862
2874
|
const handlerDataFormat = useRefCallback__default["default"](dataFormat);
|
|
2863
|
-
const
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2875
|
+
const _useControlValue = useControlValue__default["default"](Object.assign({
|
|
2876
|
+
defaultValue: []
|
|
2877
|
+
}, filter)),
|
|
2878
|
+
filterValue = _useControlValue[0],
|
|
2879
|
+
setFilterValue = _useControlValue[1];
|
|
2868
2880
|
const mapFilterValue = (filter == null ? void 0 : filter.mapFilterValue) || reactFilter.getFilterValue;
|
|
2869
2881
|
const getFilterParams = useRefCallback__default["default"](value => {
|
|
2870
2882
|
return mapFilterValue(value || []);
|
|
@@ -2914,10 +2926,7 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
2914
2926
|
});
|
|
2915
2927
|
});
|
|
2916
2928
|
const handleFilterChange = useRefCallback__default["default"](value => {
|
|
2917
|
-
|
|
2918
|
-
setInternalFilterValue(value);
|
|
2919
|
-
}
|
|
2920
|
-
filter == null || filter.onChange == null || filter.onChange(value);
|
|
2929
|
+
setFilterValue(value);
|
|
2921
2930
|
reload({
|
|
2922
2931
|
[pagination.paramsType]: buildRequestParamsWithFilter(value, {
|
|
2923
2932
|
[pagination.currentName]: 1
|
|
@@ -2939,7 +2948,7 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
2939
2948
|
}
|
|
2940
2949
|
const nextSize = Number(size);
|
|
2941
2950
|
const currentPage = get__default["default"](requestParams, [pagination.paramsType, pagination.currentName], 1);
|
|
2942
|
-
const currentSize = Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize ||
|
|
2951
|
+
const currentSize = Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize || 20;
|
|
2943
2952
|
if (nextSize !== currentSize) {
|
|
2944
2953
|
pagination.onShowSizeChange && pagination.onShowSizeChange(page, nextSize);
|
|
2945
2954
|
}
|
|
@@ -2957,7 +2966,7 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
2957
2966
|
const useCardLoadMore = isCardModeActive && pagination.open && !pagination.forcePagination;
|
|
2958
2967
|
const useLoadMoreMode = useMobileLoadMore || useCardLoadMore;
|
|
2959
2968
|
const currentPage = get__default["default"](requestParams, [pagination.paramsType, pagination.currentName], 1);
|
|
2960
|
-
const currentPageSize = Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize ||
|
|
2969
|
+
const currentPageSize = Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize || 20;
|
|
2961
2970
|
const loadMoreNoMore = !formatData.total || currentPage * currentPageSize >= formatData.total;
|
|
2962
2971
|
const handleLoadMore = useRefCallback__default["default"](function () {
|
|
2963
2972
|
try {
|
|
@@ -2993,7 +3002,7 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
2993
3002
|
showTotal: typeof pagination.showTotal === 'function' ? pagination.showTotal : defaultShowTotal
|
|
2994
3003
|
} : {}, {
|
|
2995
3004
|
current: get__default["default"](requestParams, [pagination.paramsType, pagination.currentName], 1),
|
|
2996
|
-
pageSize: Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize ||
|
|
3005
|
+
pageSize: Number(get__default["default"](requestParams, [pagination.paramsType, pagination.pageSizeName], pagination.pageSize)) || pagination.pageSize || 20,
|
|
2997
3006
|
onChange: handlePaginationChange,
|
|
2998
3007
|
size: pagination.size,
|
|
2999
3008
|
hideOnSinglePage: pagination.hideOnSinglePage,
|
|
@@ -3100,9 +3109,7 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
3100
3109
|
ref: tableContentRef,
|
|
3101
3110
|
enabled: horizontalScroller && renderType === 'Table' && !isCardModeActive,
|
|
3102
3111
|
getPortalContainer: getScrollContainer,
|
|
3103
|
-
className:
|
|
3104
|
-
'is-loading': !isComplete && !data
|
|
3105
|
-
}),
|
|
3112
|
+
className: style$1['table-content'],
|
|
3106
3113
|
children: [showOuterTab ? /*#__PURE__*/jsxRuntime.jsx(TablePageTabs, {
|
|
3107
3114
|
filterValue: filterValue,
|
|
3108
3115
|
onFilterChange: handleFilterChange,
|
|
@@ -3135,7 +3142,10 @@ const TablePageInnerContent = withLocale(_ref => {
|
|
|
3135
3142
|
}) : tableElement]
|
|
3136
3143
|
});
|
|
3137
3144
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3138
|
-
className: style$1['table-page'],
|
|
3145
|
+
className: classnames__default["default"](style$1['table-page'], 'loading-container', {
|
|
3146
|
+
// reload 会保留旧 data,仅将 isComplete 置为 false;用蒙层提示切换中,避免卸载表格
|
|
3147
|
+
'is-loading': !isComplete
|
|
3148
|
+
}),
|
|
3139
3149
|
style: scrollTopInsetStyle,
|
|
3140
3150
|
children: useLoadMoreMode ? /*#__PURE__*/jsxRuntime.jsx(ScrollLoader__default["default"], _extends({
|
|
3141
3151
|
className: style$1['mobile-load-more'],
|
|
@@ -3165,30 +3175,35 @@ const TablePage = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
|
|
|
3165
3175
|
pagination = Object.assign({}, {
|
|
3166
3176
|
showSizeChanger: true,
|
|
3167
3177
|
showQuickJumper: true,
|
|
3168
|
-
hideOnSinglePage:
|
|
3178
|
+
hideOnSinglePage: true,
|
|
3169
3179
|
open: true,
|
|
3170
3180
|
paramsType: 'data',
|
|
3171
3181
|
requestType: 'reload',
|
|
3172
3182
|
currentName: 'currentPage',
|
|
3173
3183
|
pageSizeName: 'perPage',
|
|
3174
|
-
pageSize:
|
|
3184
|
+
pageSize: 20
|
|
3175
3185
|
}, pagination);
|
|
3176
3186
|
const pageSizeKey = (props.name || 'common').toUpperCase() + "_TABLE_PAGE_SIZE";
|
|
3177
3187
|
const cachePageSize = pagination.cachePageSize !== false;
|
|
3178
|
-
const
|
|
3188
|
+
const _useState2 = react.useState(() => {
|
|
3179
3189
|
var _ref3;
|
|
3180
3190
|
return (_ref3 = cachePageSize ? readPageSize(pageSizeKey) : null) != null ? _ref3 : pagination.pageSize;
|
|
3181
3191
|
}),
|
|
3182
|
-
pageSize =
|
|
3183
|
-
setPageSize =
|
|
3192
|
+
pageSize = _useState2[0],
|
|
3193
|
+
setPageSize = _useState2[1];
|
|
3184
3194
|
const params = props[pagination.paramsType];
|
|
3185
3195
|
const filterDefaultParams = react.useMemo(() => {
|
|
3186
|
-
|
|
3187
|
-
if (!
|
|
3196
|
+
const filter = props.filter;
|
|
3197
|
+
if (!filter) {
|
|
3198
|
+
return {};
|
|
3199
|
+
}
|
|
3200
|
+
const initialValue = resolveInitialFilterValue(filter);
|
|
3201
|
+
const mapFilterValue = filter.mapFilterValue || reactFilter.getFilterValue;
|
|
3202
|
+
// 有 mapFilterValue 时即使 initialValue 为空也要跑(注入 namespace 等)
|
|
3203
|
+
if (!initialValue.length && !filter.mapFilterValue) {
|
|
3188
3204
|
return {};
|
|
3189
3205
|
}
|
|
3190
|
-
|
|
3191
|
-
return mapFilterValue(props.filter.defaultValue);
|
|
3206
|
+
return mapFilterValue(initialValue);
|
|
3192
3207
|
}, [props.filter]);
|
|
3193
3208
|
const fetchParams = react.useMemo(() => {
|
|
3194
3209
|
return {
|