@apia/query 4.0.27
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/index.d.ts +48 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { TableController } from '@apia/table2-controller';
|
|
2
|
+
import { TApiaFilterOption } from '@apia/util';
|
|
3
|
+
|
|
4
|
+
type TQueryEnvironment = {
|
|
5
|
+
window: Window;
|
|
6
|
+
};
|
|
7
|
+
type TQueryColumn = {
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
resizable: string;
|
|
11
|
+
sortable: string;
|
|
12
|
+
sortState?: 'Asc' | 'Desc';
|
|
13
|
+
width: string;
|
|
14
|
+
};
|
|
15
|
+
type TFilter = {
|
|
16
|
+
avoidLabel?: boolean;
|
|
17
|
+
column?: string;
|
|
18
|
+
errorMessage?: string;
|
|
19
|
+
id: string;
|
|
20
|
+
filterToId?: string;
|
|
21
|
+
filterToValue?: string;
|
|
22
|
+
hideToFilter?: true;
|
|
23
|
+
isAdditional?: boolean;
|
|
24
|
+
isHidden?: boolean;
|
|
25
|
+
options?: TApiaFilterOption[];
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
multiplier?: number;
|
|
28
|
+
readonly?: boolean;
|
|
29
|
+
required?: boolean;
|
|
30
|
+
runAutomatically?: boolean;
|
|
31
|
+
title?: string;
|
|
32
|
+
tooltip?: string;
|
|
33
|
+
isRange?: boolean;
|
|
34
|
+
group?: string;
|
|
35
|
+
type?: 'date' | 'D' | 'S' | 'number' | 'N' | 'apiaNumber' | 'triple' | 'dateHour';
|
|
36
|
+
value: any;
|
|
37
|
+
valueTo?: any;
|
|
38
|
+
isSize?: boolean;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
declare class ListController {
|
|
42
|
+
protected env: TQueryEnvironment;
|
|
43
|
+
readonly table: TableController;
|
|
44
|
+
constructor(env: TQueryEnvironment);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { ListController, type TFilter, type TQueryColumn, type TQueryEnvironment };
|
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TableController } from '@apia/table2-controller';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => {
|
|
6
|
+
__defNormalProp(obj, key + "" , value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
class ListController {
|
|
10
|
+
constructor(env) {
|
|
11
|
+
this.env = env;
|
|
12
|
+
__publicField(this, "table");
|
|
13
|
+
this.table = new TableController();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { ListController };
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/ListController.ts"],"sourcesContent":["import { TableController } from '@apia/table2-controller';\nimport { TQueryEnvironment } from './types';\n\nexport class ListController {\n public readonly table: TableController;\n\n constructor(protected env: TQueryEnvironment) {\n this.table = new TableController();\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAGO,MAAM,cAAA,CAAe;AAAA,EAG1B,YAAsB,GAAA,EAAwB;AAAxB,IAAA,IAAA,CAAA,GAAA,GAAA,GAAA;AAFtB,IAAA,aAAA,CAAA,IAAA,EAAgB,OAAA,CAAA;AAGd,IAAA,IAAA,CAAK,KAAA,GAAQ,IAAI,eAAA,EAAgB;AAAA;AAErC;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apia/query",
|
|
3
|
+
"version": "4.0.27",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"author": "Alexis Leite <alexisleite@live.com>",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"typings": "dist/index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"libDev": "rollup --config ../../config/rollup.common.mjs --environment MODE:development,ENTRY:index.ts",
|
|
12
|
+
"libBuild": "rollup --config ../../config/rollup.common.mjs --environment MODE:production,ENTRY:index.ts",
|
|
13
|
+
"libWatch": "rollup --watch --config ../../config/rollup.common.mjs --environment MODE:development,ENTRY:index.ts,WATCH:true",
|
|
14
|
+
"libWatchForExecution": "rollup --watch --config ../../config/rollup.common.mjs --environment MODE:development,ENTRY:index.ts,WATCH:true,DEV_SERVER_MODULE:execution",
|
|
15
|
+
"libWatchForDashboards": "rollup --watch --config ../../config/rollup.common.mjs --environment MODE:development,ENTRY:index.ts,WATCH:true,DEV_SERVER_MODULE:dashboards"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/react": "^18.2.43",
|
|
19
|
+
"@types/react-dom": "^18.2.17",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
21
|
+
"axios": "^1.3.5",
|
|
22
|
+
"typescript": "5.4.2"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^18.2.0",
|
|
26
|
+
"react-dom": "^18.2.0"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public",
|
|
30
|
+
"registry": "https://registry.npmjs.org/"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@apia/table2-controller": "^4.0.27",
|
|
34
|
+
"@apia/util": "^4.0.27"
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "605f1ac826c47102ca7617f42a791fe7e3ef2444"
|
|
37
|
+
}
|