@ahoo-wang/fetcher-viewer 2.9.0 → 2.9.1
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/components/TagInput.d.ts +18 -0
- package/dist/components/TagInput.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/filter/ConditionFilter.d.ts +7 -0
- package/dist/filter/ConditionFilter.d.ts.map +1 -0
- package/dist/filter/FallbackConditionFilter.d.ts +8 -0
- package/dist/filter/FallbackConditionFilter.d.ts.map +1 -0
- package/dist/filter/IdConditionFilter.d.ts +7 -0
- package/dist/filter/IdConditionFilter.d.ts.map +1 -0
- package/dist/filter/conditionFilterRegistry.d.ts.map +1 -1
- package/dist/filter/index.d.ts +4 -1
- package/dist/filter/index.d.ts.map +1 -1
- package/dist/filter/locale/index.d.ts +2 -0
- package/dist/filter/locale/index.d.ts.map +1 -0
- package/dist/filter/locale/operator.zh_CN.d.ts +3 -0
- package/dist/filter/locale/operator.zh_CN.d.ts.map +1 -0
- package/dist/filter/types.d.ts +3 -4
- package/dist/filter/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +796 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +30 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +15 -15
- package/dist/filter/conditionFilter.d.ts +0 -6
- package/dist/filter/conditionFilter.d.ts.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the TagInput component.
|
|
4
|
+
* Extends SelectProps from Antd, excluding 'mode', 'open', and 'suffixIcon' as they are fixed.
|
|
5
|
+
*/
|
|
6
|
+
export interface TagInputProps extends Omit<SelectProps, 'mode' | 'open' | 'suffixIcon'> {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A tag input component based on Antd's Select in tags mode.
|
|
10
|
+
* Allows users to input multiple tags separated by specified token separators.
|
|
11
|
+
* @param props - The props for the TagInput component.
|
|
12
|
+
* @returns The rendered TagInput component.
|
|
13
|
+
*/
|
|
14
|
+
export declare function TagInput(props: TagInputProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace TagInput {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=TagInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../src/components/TagInput.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAU,WAAW,EAAE,MAAM,MAAM,CAAC;AAE3C;;;GAGG;AACH,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CAAG;AAQ9D;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAgB5C;yBAhBe,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAaA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ConditionFilterProps } from './types';
|
|
3
|
+
export interface TypedConditionFilterProps extends ConditionFilterProps {
|
|
4
|
+
type: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ConditionFilter: React.MemoExoticComponent<(props: TypedConditionFilterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
//# sourceMappingURL=ConditionFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionFilter.d.ts","sourceRoot":"","sources":["../../src/filter/ConditionFilter.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI/C,MAAM,WAAW,yBACf,SAAQ,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,eAAe,oCAClB,yBAAyB,6CAOlC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface FallbackConditionFilterProps {
|
|
2
|
+
type: string;
|
|
3
|
+
}
|
|
4
|
+
export declare function FallbackConditionFilter(props: FallbackConditionFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare namespace FallbackConditionFilter {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=FallbackConditionFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FallbackConditionFilter.d.ts","sourceRoot":"","sources":["../../src/filter/FallbackConditionFilter.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CAE1E;yBAFe,uBAAuB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConditionFilterProps } from './types';
|
|
2
|
+
export declare const ID_CONDITION_FILTER = "id";
|
|
3
|
+
export declare function IdConditionFilter(props: ConditionFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace IdConditionFilter {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=IdConditionFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdConditionFilter.d.ts","sourceRoot":"","sources":["../../src/filter/IdConditionFilter.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAQ/C,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,oBAAoB,2CAmB5D;yBAnBe,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditionFilterRegistry.d.ts","sourceRoot":"","sources":["../../src/filter/conditionFilterRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conditionFilterRegistry.d.ts","sourceRoot":"","sources":["../../src/filter/conditionFilterRegistry.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEnD,qBAAa,uBAAuB;IAElC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsF;IAE9G,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB;IAIvD,UAAU,CAAC,IAAI,EAAE,MAAM;IAIvB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS;CAIxD;AAED,eAAO,MAAM,uBAAuB,yBAAgC,CAAC"}
|
package/dist/filter/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ConditionFilter';
|
|
2
2
|
export * from './conditionFilterRegistry';
|
|
3
|
+
export * from './IdConditionFilter';
|
|
3
4
|
export * from './types';
|
|
5
|
+
export * from './FallbackConditionFilter';
|
|
6
|
+
export * from './locale';
|
|
4
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filter/index.ts"],"names":[],"mappings":"AAaA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filter/index.ts"],"names":[],"mappings":"AAaA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/filter/locale/index.ts"],"names":[],"mappings":"AAaA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator.zh_CN.d.ts","sourceRoot":"","sources":["../../../src/filter/locale/operator.zh_CN.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,eAAO,MAAM,cAAc,EAAE,cA0C5B,CAAC"}
|
package/dist/filter/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AttributesCapable, NamedCapable } from '@ahoo-wang/fetcher';
|
|
2
|
-
import { Condition, Operator } from '@ahoo-wang/fetcher-wow';
|
|
3
|
-
import { Ref } from 'react';
|
|
2
|
+
import { Condition, Operator, OperatorLocale } from '@ahoo-wang/fetcher-wow';
|
|
4
3
|
/**
|
|
5
4
|
* @see {@link Schema}
|
|
6
5
|
*/
|
|
@@ -10,13 +9,13 @@ export interface ConditionField extends NamedCapable {
|
|
|
10
9
|
format?: string;
|
|
11
10
|
}
|
|
12
11
|
export interface ConditionFilterCallbacks {
|
|
13
|
-
getCondition(): Condition;
|
|
12
|
+
getCondition(): Condition | undefined;
|
|
14
13
|
}
|
|
15
14
|
export interface ConditionFilterProps extends AttributesCapable {
|
|
16
15
|
field: ConditionField;
|
|
16
|
+
locale?: OperatorLocale;
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
operator: Operator;
|
|
19
|
-
ref: Ref<ConditionFilterCallbacks>;
|
|
20
19
|
}
|
|
21
20
|
export type ConditionFilterComponent = React.FC<ConditionFilterProps>;
|
|
22
21
|
//# 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,
|
|
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;AAE7E;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,IAAI,SAAS,GAAG,SAAS,CAAC;CACvC;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA"}
|