@ahoo-wang/fetcher-viewer 2.9.1 → 2.9.2
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/dist/filter/IdConditionFilter.d.ts.map +1 -1
- package/dist/filter/friendlyCondition.d.ts +3 -0
- package/dist/filter/friendlyCondition.d.ts.map +1 -0
- package/dist/filter/types.d.ts +18 -3
- package/dist/filter/types.d.ts.map +1 -1
- package/dist/index.es.js +116 -754
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -30
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdConditionFilter.d.ts","sourceRoot":"","sources":["../../src/filter/IdConditionFilter.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"IdConditionFilter.d.ts","sourceRoot":"","sources":["../../src/filter/IdConditionFilter.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAwB,MAAM,SAAS,CAAC;AASrE,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,oBAAoB,2CA0D5D;yBA1De,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friendlyCondition.d.ts","sourceRoot":"","sources":["../../src/filter/friendlyCondition.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEnE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,UAWpG"}
|
package/dist/filter/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AttributesCapable, NamedCapable } from '@ahoo-wang/fetcher';
|
|
2
2
|
import { Condition, Operator, OperatorLocale } from '@ahoo-wang/fetcher-wow';
|
|
3
|
+
import { SelectProps } from 'antd/es/select';
|
|
3
4
|
/**
|
|
4
5
|
* @see {@link Schema}
|
|
5
6
|
*/
|
|
@@ -11,11 +12,25 @@ export interface ConditionField extends NamedCapable {
|
|
|
11
12
|
export interface ConditionFilterCallbacks {
|
|
12
13
|
getCondition(): Condition | undefined;
|
|
13
14
|
}
|
|
14
|
-
export interface
|
|
15
|
-
|
|
15
|
+
export interface LabelProps extends NamedCapable {
|
|
16
|
+
}
|
|
17
|
+
export interface OperatorProps extends SelectProps<Operator> {
|
|
16
18
|
locale?: OperatorLocale;
|
|
19
|
+
}
|
|
20
|
+
export interface ValueProps {
|
|
21
|
+
defaultValue?: any;
|
|
17
22
|
placeholder?: string;
|
|
18
|
-
|
|
23
|
+
}
|
|
24
|
+
export interface ConditionFilterValue {
|
|
25
|
+
condition: Condition;
|
|
26
|
+
friendly: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ConditionFilterProps extends AttributesCapable {
|
|
29
|
+
field: ConditionField;
|
|
30
|
+
label: LabelProps;
|
|
31
|
+
operator: OperatorProps;
|
|
32
|
+
value: ValueProps;
|
|
33
|
+
onChange?: (value?: ConditionFilterValue) => void;
|
|
19
34
|
}
|
|
20
35
|
export type ConditionFilterComponent = React.FC<ConditionFilterProps>;
|
|
21
36
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/filter/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/filter/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,S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