@nocobase/client 0.19.0-alpha.4 → 0.19.0-alpha.6

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.
@@ -43,9 +43,6 @@ export declare const useCustomizeUpdateActionProps: () => {
43
43
  export declare const useCustomizeBulkUpdateActionProps: () => {
44
44
  onClick(): Promise<void>;
45
45
  };
46
- export declare const useCustomizeBulkEditActionProps: () => {
47
- onClick(): Promise<void>;
48
- };
49
46
  export declare const useCustomizeRequestActionProps: () => {
50
47
  onClick(): Promise<void>;
51
48
  };
@@ -2,10 +2,8 @@ export * from './BlockProvider';
2
2
  export * from './BlockSchemaComponentProvider';
3
3
  export * from './FilterFormBlockProvider';
4
4
  export * from './FormBlockProvider';
5
- export * from './SharedFilterProvider';
5
+ export * from './FormFieldProvider';
6
6
  export * from './TableBlockProvider';
7
7
  export * from './TableFieldProvider';
8
8
  export * from './TableSelectorProvider';
9
- export * from './FormFieldProvider';
10
- export * from './SharedFilterProvider';
11
9
  export * from './hooks';
@@ -1,6 +1,12 @@
1
1
  import React from 'react';
2
- import { SharedFilter } from '../block-provider/SharedFilterProvider';
3
2
  import { CollectionFieldOptions, useCollection } from '../collection-manager';
3
+ declare enum FILTER_OPERATOR {
4
+ AND = "$and",
5
+ OR = "$or"
6
+ }
7
+ export type FilterParam = {
8
+ [K in FILTER_OPERATOR]?: any;
9
+ };
4
10
  export interface ForeignKeyField {
5
11
  /** 外键字段所在的数据表的名称 */
6
12
  collectionName: string;
@@ -28,7 +34,7 @@ export interface DataBlock {
28
34
  /** 数据区块表中所有的外键字段 */
29
35
  foreignKeyFields?: ForeignKeyField[];
30
36
  /** 数据区块已经存在的过滤条件(通过 `设置数据范围` 或者其它能设置筛选条件的功能) */
31
- defaultFilter?: SharedFilter;
37
+ defaultFilter?: FilterParam;
32
38
  /** 数据区块用于请求数据的接口 */
33
39
  service?: any;
34
40
  /** 数据区块所的 DOM 容器 */
@@ -48,7 +54,7 @@ export declare const FilterBlockProvider: React.FC;
48
54
  export declare const FilterBlockRecord: ({ children, params, }: {
49
55
  children: React.ReactNode;
50
56
  params?: {
51
- filter: SharedFilter;
57
+ filter: FilterParam;
52
58
  };
53
59
  }) => React.JSX.Element;
54
60
  /**
@@ -8,6 +8,7 @@ export declare enum FilterBlockType {
8
8
  TREE = 2,
9
9
  COLLAPSE = 3
10
10
  }
11
+ export declare const mergeFilter: (filters: any[], op?: string) => any;
11
12
  export declare const getSupportFieldsByAssociation: (inheritCollectionsChain: string[], block: DataBlock) => CollectionFieldOptions[];
12
13
  export declare const getSupportFieldsByForeignKey: (filterBlockCollection: ReturnType<typeof useCollection>, block: DataBlock) => import("./FilterProvider").ForeignKeyField[];
13
14
  /**
package/es/index.css CHANGED
@@ -1,3 +1,33 @@
1
+ /* width */
2
+ ::-webkit-scrollbar {
3
+ width: 8px;
4
+ height: 8px;
5
+ }
6
+ /* Track */
7
+ ::-webkit-scrollbar-track {
8
+ background: var(--colorBgScrollTrack);
9
+ }
10
+ /* Handle */
11
+ ::-webkit-scrollbar-thumb {
12
+ background: var(--colorBgScrollBar);
13
+ border-radius: 4px;
14
+ }
15
+ /* Handle on hover */
16
+ ::-webkit-scrollbar-thumb:hover {
17
+ background: var(--colorBgScrollBarHover);
18
+ }
19
+ ::-webkit-scrollbar-thumb:active {
20
+ background: var(--colorBgScrollBarActive);
21
+ }
22
+ .rc-virtual-list-scrollbar-thumb {
23
+ background: var(--colorBgScrollBar) !important;
24
+ }
25
+ .rc-virtual-list-scrollbar-thumb:hover {
26
+ background: var(--colorBgScrollBarHover) !important;
27
+ }
28
+ .rc-virtual-list-scrollbar-thumb:active {
29
+ background: var(--colorBgScrollBarActive) !important;
30
+ }
1
31
  .ant-btn.ant-btn-danger {
2
32
  text-shadow: none;
3
33
  box-shadow: none;
package/es/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import 'dayjs/plugin/quarterOfYear';
7
7
  import 'dayjs/plugin/utc';
8
8
  import 'dayjs/plugin/weekday';
9
9
  import 'antd/dist/reset.css';
10
+ import './global.less';
10
11
  export * from '@emotion/css';
11
12
  export * from './acl';
12
13
  export * from './antd-config-provider';