@operato/data-grist 0.3.21 → 0.3.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/src/index.ts CHANGED
@@ -10,3 +10,7 @@ export * from './handlers'
10
10
  export * from './formatters'
11
11
  export * from './gutters'
12
12
  export * from './filters'
13
+ export * from './sorters/sorters-control'
14
+ export * from './record-view'
15
+
16
+ export * from './styles/common-grist-styles'
@@ -0,0 +1,98 @@
1
+ import { css } from 'lit'
2
+
3
+ export const CommonGristStyles = css`
4
+ ox-grist {
5
+ flex: 1;
6
+ overflow-y: auto;
7
+
8
+ --grid-record-emphasized-background-color: red;
9
+ --grid-record-emphasized-color: yellow;
10
+ }
11
+
12
+ [slot='headroom'] {
13
+ display: flex;
14
+ flex-direction: row;
15
+ align-items: center;
16
+ padding: var(--padding-default) var(--padding-wide);
17
+ border-top: 2px solid rgba(0, 0, 0, 0.2);
18
+ background-color: var(--theme-white-color);
19
+ box-shadow: var(--box-shadow);
20
+
21
+ --mdc-icon-size: 24px;
22
+ }
23
+
24
+ #sorters {
25
+ margin-left: auto;
26
+ position: relative;
27
+ }
28
+
29
+ #sorters > * {
30
+ padding: var(--padding-narrow);
31
+ margin-right: var(--margin-default);
32
+ }
33
+
34
+ #modes > * {
35
+ padding: var(--padding-narrow);
36
+ opacity: 0.5;
37
+ color: var(--primary-text-color);
38
+ cursor: pointer;
39
+ }
40
+
41
+ #modes > mwc-icon[active] {
42
+ border-radius: 9px;
43
+ background-color: rgba(var(--primary-color-rgb), 0.05);
44
+ opacity: 1;
45
+ color: var(--secondary-text-color);
46
+ cursor: default;
47
+ }
48
+
49
+ #modes > mwc-icon:hover {
50
+ opacity: 1;
51
+ color: var(--secondary-text-color);
52
+ }
53
+
54
+ #add {
55
+ width: 50px;
56
+ text-align: right;
57
+ }
58
+
59
+ #add button {
60
+ background-color: var(--status-success-color);
61
+ border: 0;
62
+ border-radius: 50%;
63
+ padding: 5px;
64
+ width: 36px;
65
+ height: 36px;
66
+ cursor: pointer;
67
+ }
68
+
69
+ #add button:hover {
70
+ background-color: var(--focus-background-color);
71
+ box-shadow: var(--box-shadow);
72
+ }
73
+
74
+ #add button mwc-icon {
75
+ font-size: 2em;
76
+ color: var(--theme-white-color);
77
+ }
78
+
79
+ #filters {
80
+ display: flex;
81
+ justify-content: center;
82
+ align-items: center;
83
+ }
84
+
85
+ #filters * {
86
+ margin-right: var(--margin-default);
87
+ }
88
+
89
+ @media only screen and (max-width: 460px) {
90
+ #filters {
91
+ flex-direction: column;
92
+ }
93
+
94
+ #modes {
95
+ display: none;
96
+ }
97
+ }
98
+ `