dcp-design-react 1.11.10 → 1.11.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -325,6 +325,74 @@ declare const _default: {
325
325
  settingTitle: string;
326
326
  };
327
327
  };
328
+ pivotGrid: {
329
+ saved: {
330
+ text: string;
331
+ add: string;
332
+ title: string;
333
+ };
334
+ export: {
335
+ text: string;
336
+ group: string;
337
+ list: string;
338
+ };
339
+ count: {
340
+ statistic: string;
341
+ records: string;
342
+ unique: string;
343
+ empty: string;
344
+ notEmpty: string;
345
+ sum: string;
346
+ max: string;
347
+ min: string;
348
+ avg: string;
349
+ };
350
+ field: {
351
+ text: string;
352
+ title: string;
353
+ };
354
+ fillColor: {
355
+ text: string;
356
+ add: string;
357
+ title: string;
358
+ cell: string;
359
+ row: string;
360
+ };
361
+ filter: {
362
+ text: string;
363
+ title: string;
364
+ matchAll: string;
365
+ matchAny: string;
366
+ };
367
+ group: {
368
+ text: string;
369
+ title: string;
370
+ foldAll: string;
371
+ unfoldAll: string;
372
+ empty: string;
373
+ ascend: string;
374
+ descend: string;
375
+ };
376
+ lineHeight: {
377
+ text: string;
378
+ size: string[];
379
+ };
380
+ search: {
381
+ text: string;
382
+ title: string;
383
+ };
384
+ sorter: {
385
+ text: string;
386
+ title: string;
387
+ ascend: string;
388
+ descend: string;
389
+ };
390
+ viewMode: {
391
+ table: string;
392
+ gantt: string;
393
+ card: string;
394
+ };
395
+ };
328
396
  };
329
397
  };
330
398
  export default _default;
@@ -330,6 +330,74 @@ export default {
330
330
  text: 'Pivot Grid',
331
331
  settingTitle: 'Pivot Grid Dashboard'
332
332
  }
333
+ },
334
+ pivotGrid: {
335
+ saved: {
336
+ text: 'Config',
337
+ add: 'Add configuration',
338
+ title: 'Saved configuration list'
339
+ },
340
+ export: {
341
+ text: 'Export',
342
+ group: 'Export group',
343
+ list: 'Export list'
344
+ },
345
+ count: {
346
+ statistic: 'Statistics',
347
+ records: 'count',
348
+ unique: 'unique',
349
+ empty: 'empty',
350
+ notEmpty: 'not empty',
351
+ sum: 'sum value',
352
+ max: 'max value',
353
+ min: 'min value',
354
+ avg: 'avg value'
355
+ },
356
+ field: {
357
+ text: 'Field manage',
358
+ title: 'Field customization settings'
359
+ },
360
+ fillColor: {
361
+ text: 'Fill color',
362
+ add: 'Add condition',
363
+ title: 'Set fill color conditions',
364
+ cell: 'Cell',
365
+ row: 'Row'
366
+ },
367
+ filter: {
368
+ text: 'Filter',
369
+ title: 'Set filter conditions',
370
+ matchAll: 'Meet all conditions',
371
+ matchAny: 'Meet any conditions'
372
+ },
373
+ group: {
374
+ text: 'Group',
375
+ title: 'Set group conditions',
376
+ foldAll: 'Fold all',
377
+ unfoldAll: 'unfold all',
378
+ empty: '(Empty content)',
379
+ ascend: 'Order ascend',
380
+ descend: 'Order descend'
381
+ },
382
+ lineHeight: {
383
+ text: 'Line height',
384
+ size: ['Common size', 'Middle size', 'Large size']
385
+ },
386
+ search: {
387
+ text: 'Search',
388
+ title: 'Set search conditions'
389
+ },
390
+ sorter: {
391
+ text: 'Sorter',
392
+ title: 'Set sorter conditions',
393
+ ascend: 'Field ascend',
394
+ descend: 'Field descend'
395
+ },
396
+ viewMode: {
397
+ table: 'Table view',
398
+ gantt: 'Gantt view',
399
+ card: 'Card view'
400
+ }
333
401
  }
334
402
  }
335
403
  };
@@ -325,6 +325,74 @@ declare const _default: {
325
325
  settingTitle: string;
326
326
  };
327
327
  };
328
+ pivotGrid: {
329
+ saved: {
330
+ text: string;
331
+ add: string;
332
+ title: string;
333
+ };
334
+ export: {
335
+ text: string;
336
+ group: string;
337
+ list: string;
338
+ };
339
+ count: {
340
+ statistic: string;
341
+ records: string;
342
+ unique: string;
343
+ empty: string;
344
+ notEmpty: string;
345
+ sum: string;
346
+ max: string;
347
+ min: string;
348
+ avg: string;
349
+ };
350
+ field: {
351
+ text: string;
352
+ title: string;
353
+ };
354
+ fillColor: {
355
+ text: string;
356
+ add: string;
357
+ title: string;
358
+ cell: string;
359
+ row: string;
360
+ };
361
+ filter: {
362
+ text: string;
363
+ title: string;
364
+ matchAll: string;
365
+ matchAny: string;
366
+ };
367
+ group: {
368
+ text: string;
369
+ title: string;
370
+ foldAll: string;
371
+ unfoldAll: string;
372
+ empty: string;
373
+ ascend: string;
374
+ descend: string;
375
+ };
376
+ lineHeight: {
377
+ text: string;
378
+ size: string[];
379
+ };
380
+ search: {
381
+ text: string;
382
+ title: string;
383
+ };
384
+ sorter: {
385
+ text: string;
386
+ title: string;
387
+ ascend: string;
388
+ descend: string;
389
+ };
390
+ viewMode: {
391
+ table: string;
392
+ gantt: string;
393
+ card: string;
394
+ };
395
+ };
328
396
  };
329
397
  };
330
398
  export default _default;
@@ -327,8 +327,76 @@ export default {
327
327
  queryNext: '查找下一个'
328
328
  },
329
329
  pivotGrid: {
330
- text: '透视表',
331
- settingTitle: '透视表看板'
330
+ text: '多维表',
331
+ settingTitle: '多维表看板'
332
+ }
333
+ },
334
+ pivotGrid: {
335
+ saved: {
336
+ text: '配置',
337
+ add: '添加配置项',
338
+ title: '已保存的配置信息'
339
+ },
340
+ export: {
341
+ text: '导出',
342
+ group: '导出分组',
343
+ list: '导出列表'
344
+ },
345
+ count: {
346
+ statistic: '统计',
347
+ records: '记录数',
348
+ unique: '唯一值',
349
+ empty: '空值',
350
+ notEmpty: '非空值',
351
+ sum: '合计值',
352
+ max: '最大值',
353
+ min: '最小值',
354
+ avg: '平均值'
355
+ },
356
+ field: {
357
+ text: '字段管理',
358
+ title: '字段自定义设置'
359
+ },
360
+ fillColor: {
361
+ text: '填色',
362
+ add: '添加条件',
363
+ title: '设置填色条件',
364
+ cell: '单元格',
365
+ row: '整行'
366
+ },
367
+ filter: {
368
+ text: '筛选',
369
+ title: '设置筛选条件',
370
+ matchAll: '满足所有条件',
371
+ matchAny: '满足任一条件'
372
+ },
373
+ group: {
374
+ text: '分组',
375
+ title: '设置分组条件',
376
+ foldAll: '折叠所有',
377
+ unfoldAll: '展开所有',
378
+ empty: '(内容为空)',
379
+ ascend: '选项顺序',
380
+ descend: '选项倒序'
381
+ },
382
+ lineHeight: {
383
+ text: '行高',
384
+ size: ['常规', '中等', '高']
385
+ },
386
+ search: {
387
+ text: '查找',
388
+ title: '设置查找条件'
389
+ },
390
+ sorter: {
391
+ text: '排序',
392
+ title: '设置排序条件',
393
+ ascend: '字段升序',
394
+ descend: '字段降序'
395
+ },
396
+ viewMode: {
397
+ table: '表格视图',
398
+ gantt: '甘特视图',
399
+ card: '看板视图'
332
400
  }
333
401
  }
334
402
  }
@@ -2,6 +2,18 @@
2
2
  import type { IColumn, IRecord, IRowKey, ISuperFilter } from '../../../table/src/table/types';
3
3
  import type { ComponentSize } from '../../../_utils/types';
4
4
  import type { GroupItem, SorterItem } from './Context';
5
+ export type RowSelectType = {
6
+ defaultSelectedRowKeys?: IRowKey[];
7
+ selectedRowKeys?: IRowKey[];
8
+ checkStrictly?: boolean;
9
+ onChange?: (rowKeys: IRowKey[], selectedRows: IRecord[]) => void;
10
+ onSelect?: (selected: boolean, record: IRecord) => void;
11
+ };
12
+ export type TreeExpandType = {
13
+ defaultExpandAllRows?: boolean;
14
+ onChange?: (rowKeys: IRowKey[]) => void;
15
+ onExpand?: (expanded: boolean, record: IRecord) => void;
16
+ };
5
17
  export type PivotGridRef = {};
6
18
  export type PivotGridProps = {
7
19
  fromTable?: boolean;
@@ -14,11 +26,13 @@ export type PivotGridProps = {
14
26
  maxHeight?: number;
15
27
  className?: string;
16
28
  style?: React.CSSProperties;
17
- onChange?: (group: GroupItem[], filter: ISuperFilter[], sorter: SorterItem[], extra: {
18
- currentDataSource: IRecord[];
19
- }) => void;
29
+ rowSelection?: RowSelectType;
30
+ treeExpandable?: TreeExpandType;
31
+ initialGroup?: GroupItem[];
32
+ onDataChange?: (records: IRecord[]) => void;
20
33
  onColumnsChange?: (columns: IColumn[]) => void;
21
34
  onGroupChange?: (group: GroupItem[]) => void;
22
35
  onFilterChange?: (filter: ISuperFilter[]) => void;
23
36
  onSorterChange?: (sorter: SorterItem[]) => void;
37
+ onRowClick?: (row: IRecord, column: IColumn, event: React.MouseEvent<HTMLDivElement>) => void;
24
38
  };
@@ -31499,7 +31499,7 @@ body {
31499
31499
  * @Author: 焦质晔
31500
31500
  * @Date: 2024-12-02 09:06:20
31501
31501
  * @Last Modified by: 焦质晔
31502
- * @Last Modified time: 2024-12-26 19:26:20
31502
+ * @Last Modified time: 2024-12-27 10:56:00
31503
31503
  */
31504
31504
  .qm-color-picker {
31505
31505
  position: absolute;
@@ -31574,14 +31574,16 @@ body {
31574
31574
  border-radius: 4px;
31575
31575
  }
31576
31576
  .qm-color-picker-slider-alpha {
31577
- background: url('./alpha.svg');
31577
+ background: repeating-conic-gradient(#ddd 0% 25%, #fff 25% 50%);
31578
+ background-size: 10px 10px;
31578
31579
  }
31579
31580
  .qm-color-picker-color-block {
31580
31581
  position: relative;
31581
31582
  width: 24px;
31582
31583
  height: 24px;
31583
31584
  overflow: hidden;
31584
- background-image: url('./alpha.svg');
31585
+ background: repeating-conic-gradient(#ddd 0% 25%, #fff 25% 50%);
31586
+ background-size: 10px 10px;
31585
31587
  border-radius: 4px;
31586
31588
  }
31587
31589
  .qm-color-picker-color-block-inner {