@open-pioneer/result-list 0.1.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/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { ResultList } from './ResultList.js';
2
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "type": "module",
3
+ "name": "@open-pioneer/result-list",
4
+ "version": "0.1.0",
5
+ "description": "This package provides a UI component to display features and their attributes.",
6
+ "keywords": [
7
+ "open-pioneer-trails"
8
+ ],
9
+ "homepage": "https://github.com/open-pioneer",
10
+ "license": "Apache-2.0",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/open-pioneer/trails-openlayers-base-packages",
14
+ "directory": "src/packages/result-list"
15
+ },
16
+ "peerDependencies": {
17
+ "@open-pioneer/chakra-integration": "^1.1.1",
18
+ "@open-pioneer/runtime": "^2.1.2",
19
+ "@open-pioneer/core": "^1.2.1",
20
+ "ol": "^9.0.0",
21
+ "react": "^18.2.0",
22
+ "classnames": "^2.3.2",
23
+ "@chakra-ui/icons": "^2.1.1",
24
+ "@tanstack/react-table": "^8.11.6",
25
+ "@open-pioneer/map": "^0.4.0",
26
+ "@open-pioneer/react-utils": "^0.2.2"
27
+ },
28
+ "exports": {
29
+ "./package.json": "./package.json",
30
+ ".": {
31
+ "import": "./index.js",
32
+ "types": "./index.d.ts"
33
+ },
34
+ "./result-list.css": "./result-list.css"
35
+ },
36
+ "openPioneerFramework": {
37
+ "styles": "./result-list.css",
38
+ "services": [],
39
+ "i18n": {
40
+ "languages": [
41
+ "en",
42
+ "de"
43
+ ]
44
+ },
45
+ "ui": {
46
+ "references": []
47
+ },
48
+ "properties": [],
49
+ "packageFormatVersion": "1.0.0"
50
+ }
51
+ }
@@ -0,0 +1,60 @@
1
+ .result-list-no-data-message {
2
+ text-align: center;
3
+ margin-top: 50px;
4
+ font-weight: bold;
5
+ font-size: larger;
6
+ }
7
+
8
+ .result-list-table th,
9
+ .result-list-table td {
10
+ overflow-wrap: break-word;
11
+ }
12
+
13
+ .result-list-table.result-list-table--is-resizing * {
14
+ cursor: col-resize;
15
+ }
16
+
17
+ .result-list-table thead {
18
+ position: sticky;
19
+ top: 0;
20
+ z-index: 1;
21
+ background: var(--chakra-colors-background_body);
22
+ }
23
+
24
+ .result-list-table th {
25
+ position: relative;
26
+ border-right-width: thin;
27
+ }
28
+
29
+ .result-list-table tbody tr:hover {
30
+ background: var(--chakra-colors-background_light);
31
+ }
32
+
33
+ .result-list-table .result-list-resizer {
34
+ position: absolute;
35
+ top: 0;
36
+ height: 100%;
37
+ right: 0;
38
+ width: 8px;
39
+ background: var(--chakra-colors-trails-100);
40
+ transform: scale(0.25, 1);
41
+ cursor: col-resize;
42
+ user-select: none;
43
+ touch-action: none;
44
+ padding-left: 0px;
45
+ }
46
+
47
+ .result-list-table th:last-child .result-list-resizer {
48
+ width: 8px;
49
+ transform: translateX(50%) scale(0.25, 1);
50
+ }
51
+
52
+ .result-list-table th .result-list-resizer.result-list-resizer--is-resizing {
53
+ background: var(--chakra-colors-trails-500);
54
+ transform: scale(1);
55
+ }
56
+
57
+ .result-list-table th .result-list-resizer:hover {
58
+ transform: scale(1);
59
+ }
60
+ /*# sourceMappingURL=result-list.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["result-list.scss"],"names":[],"mappings":"AAAA;EACI,kBAAA;EACA,gBAAA;EACA,iBAAA;EACA,iBAAA;AACJ;;AAGI;;EAEI,yBAAA;AAAR;;AAGI;EACI,kBAAA;AADR;;AAII;EACI,gBAAA;EACA,MAAA;EACA,UAAA;EACA,gDAAA;AAFR;;AAKI;EACI,kBAAA;EACA,wBAAA;AAHR;;AAMI;EACI,iDAAA;AAJR;;AAQI;EACI,kBAAA;EACA,MAAA;EACA,YAAA;EACA,QAAA;EACA,UAAA;EACA,2CAAA;EACA,yBAAA;EACA,kBAAA;EACA,iBAAA;EACA,kBAAA;EACA,iBAAA;AANR;;AAUI;EACI,UAAA;EACA,yCAAA;AARR;;AAaQ;EACI,2CAAA;EACA,mBAAA;AAXZ;;AAcQ;EACI,mBAAA;AAZZ","file":"result-list.css","sourcesContent":[".result-list-no-data-message {\n text-align: center;\n margin-top: 50px;\n font-weight: bold;\n font-size: larger;\n}\n\n.result-list-table {\n th,\n td {\n overflow-wrap: break-word;\n }\n\n &.result-list-table--is-resizing * {\n cursor: col-resize;\n }\n\n thead {\n position: sticky;\n top: 0;\n z-index: 1;\n background: var(--chakra-colors-background_body);\n }\n\n th {\n position: relative;\n border-right-width: thin;\n }\n\n tbody tr:hover {\n background: var(--chakra-colors-background_light);\n }\n\n // Resizer\n .result-list-resizer {\n position: absolute;\n top: 0;\n height: 100%;\n right: 0;\n width: 8px;\n background: var(--chakra-colors-trails-100);\n transform: scale(0.25, 1);\n cursor: col-resize;\n user-select: none;\n touch-action: none;\n padding-left: 0px;\n }\n\n // Render last one differently (right-aligned)\n th:last-child .result-list-resizer {\n width: 8px;\n transform: translateX(50%) scale(0.25, 1);\n }\n\n // Additional th so that these rules are most specific\n th .result-list-resizer {\n &.result-list-resizer--is-resizing {\n background: var(--chakra-colors-trails-500);\n transform: scale(1);\n }\n\n &:hover {\n transform: scale(1);\n }\n }\n}\n"]}