@clickview/reports 0.0.0-dev-us.0
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/.eslintrc.json +3 -0
- package/README.md +1 -0
- package/dist/bundles.json +4 -0
- package/dist/css/1.chunk.css +20 -0
- package/dist/css/reports-app-4c89610987.css +43 -0
- package/dist/css/reports-app-da2a3bbe6c.css +41 -0
- package/dist/css/reports-app.css +9193 -0
- package/dist/en.json +1 -0
- package/dist/scripts/0-reports.chunk.js +43 -0
- package/dist/scripts/0.reports-app.js +11 -0
- package/dist/scripts/1-0b79a86a96-reports.chunk.js +1 -0
- package/dist/scripts/1-a35919116e-reports.chunk.js +1 -0
- package/dist/scripts/1-reports.chunk.js +43 -0
- package/dist/scripts/1.reports-app.js +1 -0
- package/dist/scripts/2-213667469f-reports.chunk.js +1 -0
- package/dist/scripts/2-reports.chunk.js +11 -0
- package/dist/scripts/2.reports-app.js +1 -0
- package/dist/scripts/3-61463ebc69-reports.chunk.js +1 -0
- package/dist/scripts/reports-app-7e36c3c58c.min.js +378 -0
- package/dist/scripts/reports-app-ac826d0858.min.js +378 -0
- package/dist/scripts/reports-app.js +8133 -0
- package/package.json +45 -0
- package/tooling/externals.js +24 -0
- package/typings/libs/react-table-config.d.ts +127 -0
- package/typings/utils/globals.d.ts +1 -0
- package/typings/utils/imports.d.ts +14 -0
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clickview/reports",
|
|
3
|
+
"version": "0.0.0-dev-us.0",
|
|
4
|
+
"description": "ClickView Reports",
|
|
5
|
+
"main": "dist/reports-app.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "set NODE_ENV=development&& webpack -w --config ./tooling/webpack.config.js",
|
|
8
|
+
"build": "set NODE_ENV=production&& webpack --config ./tooling/webpack.config.js",
|
|
9
|
+
"dev-build": "set NODE_ENV=development&& webpack --config ./tooling/webpack.config.js"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://gitlab.cvinternal.net/front-end/clickview"
|
|
14
|
+
},
|
|
15
|
+
"cv": {
|
|
16
|
+
"publishable": true,
|
|
17
|
+
"rebuildable": true
|
|
18
|
+
},
|
|
19
|
+
"author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@babel/core": "7.11.6",
|
|
23
|
+
"@clickview/eslint-config": "1.0.0",
|
|
24
|
+
"@clickview/tooling": "0.0.20",
|
|
25
|
+
"@types/react-dates": "21.8.1",
|
|
26
|
+
"@types/react-table": "7.0.29",
|
|
27
|
+
"redux-devtools-extension": "2.13.8"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@clickview/styles": "1.0.13",
|
|
31
|
+
"react-dates": "21.8.0",
|
|
32
|
+
"react-table": "7.6.3"
|
|
33
|
+
},
|
|
34
|
+
"babel": {
|
|
35
|
+
"presets": [
|
|
36
|
+
[
|
|
37
|
+
"@babel/preset-env",
|
|
38
|
+
{
|
|
39
|
+
"corejs": 3,
|
|
40
|
+
"useBuiltIns": "entry"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const externalModules = {
|
|
2
|
+
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
exports.mapExternalModules = (context, request, callback) => {
|
|
6
|
+
for (var key in externalModules) {
|
|
7
|
+
if (!externalModules.hasOwnProperty(key))
|
|
8
|
+
continue;
|
|
9
|
+
|
|
10
|
+
let arr = externalModules[key];
|
|
11
|
+
|
|
12
|
+
if (!Array.isArray(arr))
|
|
13
|
+
arr = [arr];
|
|
14
|
+
|
|
15
|
+
for (var i = 0; i < arr.length; i++) {
|
|
16
|
+
if (arr[i].test(request)) {
|
|
17
|
+
return callback(null, key);
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
callback();
|
|
24
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In order to add typings for various react-table plugins, the below should be selectively
|
|
3
|
+
* uncommented based on what we are using.
|
|
4
|
+
*
|
|
5
|
+
* Refer: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-table
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// import {
|
|
9
|
+
// UseColumnOrderInstanceProps,
|
|
10
|
+
// UseColumnOrderState,
|
|
11
|
+
// UseExpandedHooks,
|
|
12
|
+
// UseExpandedInstanceProps,
|
|
13
|
+
// UseExpandedOptions,
|
|
14
|
+
// UseExpandedRowProps,
|
|
15
|
+
// UseExpandedState,
|
|
16
|
+
// UseFiltersColumnOptions,
|
|
17
|
+
// UseFiltersColumnProps,
|
|
18
|
+
// UseFiltersInstanceProps,
|
|
19
|
+
// UseFiltersOptions,
|
|
20
|
+
// UseFiltersState,
|
|
21
|
+
// UseGlobalFiltersColumnOptions,
|
|
22
|
+
// UseGlobalFiltersInstanceProps,
|
|
23
|
+
// UseGlobalFiltersOptions,
|
|
24
|
+
// UseGlobalFiltersState,
|
|
25
|
+
// UseGroupByCellProps,
|
|
26
|
+
// UseGroupByColumnOptions,
|
|
27
|
+
// UseGroupByColumnProps,
|
|
28
|
+
// UseGroupByHooks,
|
|
29
|
+
// UseGroupByInstanceProps,
|
|
30
|
+
// UseGroupByOptions,
|
|
31
|
+
// UseGroupByRowProps,
|
|
32
|
+
// UseGroupByState,
|
|
33
|
+
// UsePaginationInstanceProps,
|
|
34
|
+
// UsePaginationOptions,
|
|
35
|
+
// UsePaginationState,
|
|
36
|
+
// UseResizeColumnsColumnOptions,
|
|
37
|
+
// UseResizeColumnsColumnProps,
|
|
38
|
+
// UseResizeColumnsOptions,
|
|
39
|
+
// UseResizeColumnsState,
|
|
40
|
+
// UseRowSelectHooks,
|
|
41
|
+
// UseRowSelectInstanceProps,
|
|
42
|
+
// UseRowSelectOptions,
|
|
43
|
+
// UseRowSelectRowProps,
|
|
44
|
+
// UseRowSelectState,
|
|
45
|
+
// UseRowStateCellProps,
|
|
46
|
+
// UseRowStateInstanceProps,
|
|
47
|
+
// UseRowStateOptions,
|
|
48
|
+
// UseRowStateRowProps,
|
|
49
|
+
// UseRowStateState,
|
|
50
|
+
// UseSortByColumnOptions,
|
|
51
|
+
// UseSortByColumnProps,
|
|
52
|
+
// UseSortByHooks,
|
|
53
|
+
// UseSortByInstanceProps,
|
|
54
|
+
// UseSortByOptions,
|
|
55
|
+
// UseSortByState
|
|
56
|
+
// } from 'react-table';
|
|
57
|
+
|
|
58
|
+
// declare module 'react-table' {
|
|
59
|
+
// // take this file as-is, or comment out the sections that don't apply to your plugin configuration
|
|
60
|
+
|
|
61
|
+
// export interface TableOptions<D extends Record<string, unknown>>
|
|
62
|
+
// extends UseExpandedOptions<D>,
|
|
63
|
+
// UseFiltersOptions<D>,
|
|
64
|
+
// UseGlobalFiltersOptions<D>,
|
|
65
|
+
// UseGroupByOptions<D>,
|
|
66
|
+
// UsePaginationOptions<D>,
|
|
67
|
+
// UseResizeColumnsOptions<D>,
|
|
68
|
+
// UseRowSelectOptions<D>,
|
|
69
|
+
// UseRowStateOptions<D>,
|
|
70
|
+
// UseSortByOptions<D>,
|
|
71
|
+
// // note that having Record here allows you to add anything to the options, this matches the spirit of the
|
|
72
|
+
// // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
|
|
73
|
+
// // feature set, this is a safe default.
|
|
74
|
+
// Record<string, any> {}
|
|
75
|
+
|
|
76
|
+
// export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
|
|
77
|
+
// extends UseExpandedHooks<D>,
|
|
78
|
+
// UseGroupByHooks<D>,
|
|
79
|
+
// UseRowSelectHooks<D>,
|
|
80
|
+
// UseSortByHooks<D> {}
|
|
81
|
+
|
|
82
|
+
// export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
83
|
+
// extends UseColumnOrderInstanceProps<D>,
|
|
84
|
+
// UseExpandedInstanceProps<D>,
|
|
85
|
+
// UseFiltersInstanceProps<D>,
|
|
86
|
+
// UseGlobalFiltersInstanceProps<D>,
|
|
87
|
+
// UseGroupByInstanceProps<D>,
|
|
88
|
+
// UsePaginationInstanceProps<D>,
|
|
89
|
+
// UseRowSelectInstanceProps<D>,
|
|
90
|
+
// UseRowStateInstanceProps<D>,
|
|
91
|
+
// UseSortByInstanceProps<D> {}
|
|
92
|
+
|
|
93
|
+
// export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
|
|
94
|
+
// extends UseColumnOrderState<D>,
|
|
95
|
+
// UseExpandedState<D>,
|
|
96
|
+
// UseFiltersState<D>,
|
|
97
|
+
// UseGlobalFiltersState<D>,
|
|
98
|
+
// UseGroupByState<D>,
|
|
99
|
+
// UsePaginationState<D>,
|
|
100
|
+
// UseResizeColumnsState<D>,
|
|
101
|
+
// UseRowSelectState<D>,
|
|
102
|
+
// UseRowStateState<D>,
|
|
103
|
+
// UseSortByState<D> {}
|
|
104
|
+
|
|
105
|
+
// export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
|
|
106
|
+
// extends UseFiltersColumnOptions<D>,
|
|
107
|
+
// UseGlobalFiltersColumnOptions<D>,
|
|
108
|
+
// UseGroupByColumnOptions<D>,
|
|
109
|
+
// UseResizeColumnsColumnOptions<D>,
|
|
110
|
+
// UseSortByColumnOptions<D> {}
|
|
111
|
+
|
|
112
|
+
// export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
|
|
113
|
+
// extends UseFiltersColumnProps<D>,
|
|
114
|
+
// UseGroupByColumnProps<D>,
|
|
115
|
+
// UseResizeColumnsColumnProps<D>,
|
|
116
|
+
// UseSortByColumnProps<D> {}
|
|
117
|
+
|
|
118
|
+
// export interface Cell<D extends Record<string, unknown> = Record<string, unknown>, V = any>
|
|
119
|
+
// extends UseGroupByCellProps<D>,
|
|
120
|
+
// UseRowStateCellProps<D> {}
|
|
121
|
+
|
|
122
|
+
// export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
|
|
123
|
+
// extends UseExpandedRowProps<D>,
|
|
124
|
+
// UseGroupByRowProps<D>,
|
|
125
|
+
// UseRowSelectRowProps<D>,
|
|
126
|
+
// UseRowStateRowProps<D> {}
|
|
127
|
+
// }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare var __ENVIRONMENT__: 'development' | 'production';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define our templates as a module so that we can use
|
|
3
|
+
* import statements just the same as we do for other
|
|
4
|
+
* ts/js code.
|
|
5
|
+
*/
|
|
6
|
+
declare module '*.handlebars';
|
|
7
|
+
declare module '*.hbs';
|
|
8
|
+
declare module '*.scss';
|
|
9
|
+
declare module '*.svg';
|
|
10
|
+
|
|
11
|
+
declare module '*.json' {
|
|
12
|
+
export const value: any;
|
|
13
|
+
export default value;
|
|
14
|
+
}
|