@dartech/arsenal-ui 0.3.2 → 0.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -1,14 +1,25 @@
1
+ import { PaginateData } from './common';
1
2
  import { PropertiesArrayType } from './definition';
3
+ type PaginateParams = {
4
+ page: string;
5
+ size: string;
6
+ [key: string]: string;
7
+ };
2
8
  export interface FilterField {
3
9
  name: string;
4
10
  label: string;
5
- type: 'text' | 'select' | 'autocomplete' | 'date' | 'number' | 'date_time';
11
+ type: 'text' | 'select' | 'autocomplete' | 'date' | 'number' | 'date_time' | 'query_autocomplete';
6
12
  value?: unknown;
7
13
  multiple?: boolean;
8
14
  options?: {
9
15
  value: string;
10
16
  label: string;
11
17
  }[];
18
+ searchBy?: string;
19
+ sortBy?: string;
20
+ labelKey?: string;
21
+ valueKey?: string;
22
+ queryFunction?: (params: PaginateParams) => Promise<PaginateData<unknown>>;
12
23
  }
13
24
  export interface Option {
14
25
  value: string;
@@ -34,3 +45,4 @@ export type CustomPropertyFieldProps = {
34
45
  export type PropertyFillType = 'expression' | 'widget' | 'null' | 'string' | 'json_valid' | 'json_notvalid';
35
46
  export type StatusVariant = 'default' | 'success' | 'error' | 'warning';
36
47
  export type ValidateFunc = (value: string) => boolean | string;
48
+ export {};