@openremote/or-data-viewer 1.6.0-snapshot.20250512145140 → 1.6.0-snapshot.20250512155842

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.
@@ -0,0 +1,287 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "OrDataViewerRenderCompleteEvent",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "NAME",
17
+ "type": {
18
+ "text": "string"
19
+ },
20
+ "privacy": "public",
21
+ "static": true,
22
+ "readonly": true,
23
+ "default": "\"or-data-viewer-render-complete-event\""
24
+ }
25
+ ],
26
+ "superclass": {
27
+ "name": "CustomEvent",
28
+ "module": "src/index.ts"
29
+ }
30
+ },
31
+ {
32
+ "kind": "class",
33
+ "description": "",
34
+ "name": "OrDataViewerConfigInvalidEvent",
35
+ "members": [
36
+ {
37
+ "kind": "field",
38
+ "name": "NAME",
39
+ "type": {
40
+ "text": "string"
41
+ },
42
+ "privacy": "public",
43
+ "static": true,
44
+ "readonly": true,
45
+ "default": "\"or-data-viewer-config-invalid-event\""
46
+ }
47
+ ],
48
+ "superclass": {
49
+ "name": "CustomEvent",
50
+ "module": "src/index.ts"
51
+ }
52
+ },
53
+ {
54
+ "kind": "class",
55
+ "description": "",
56
+ "name": "OrDataViewer",
57
+ "members": [
58
+ {
59
+ "kind": "field",
60
+ "name": "styles",
61
+ "static": true,
62
+ "readonly": true
63
+ },
64
+ {
65
+ "kind": "field",
66
+ "name": "DEFAULT_PANEL_TYPE",
67
+ "type": {
68
+ "text": "PanelType"
69
+ },
70
+ "privacy": "public",
71
+ "static": true,
72
+ "default": "\"chart\""
73
+ },
74
+ {
75
+ "kind": "field",
76
+ "name": "DEFAULT_CONFIG",
77
+ "type": {
78
+ "text": "DataViewerConfig"
79
+ },
80
+ "privacy": "public",
81
+ "static": true,
82
+ "default": "{ viewerStyles: { }, panels: { chart: { type: \"chart\", hideOnMobile: true, panelStyles: { gridColumn: \"1 / -1\" } }, kpi1: { type: \"kpi\", hideOnMobile: false }, kpi2: { type: \"kpi\", hideOnMobile: false }, kpi3: { type: \"kpi\", hideOnMobile: false }, kpi4: { type: \"kpi\", hideOnMobile: false }, kpi5: { type: \"kpi\", hideOnMobile: false }, kpi6: { type: \"kpi\", hideOnMobile: false }, kpi7: { type: \"kpi\", hideOnMobile: false }, kpi8: { type: \"kpi\", hideOnMobile: false }, chart2: { type: \"chart\", hideOnMobile: true, panelStyles: { gridColumn: \"1 / -1\" } }, chart3: { type: \"chart\", hideOnMobile: true, panelStyles: { gridColumn: \"1 / -1\" } } } }"
83
+ },
84
+ {
85
+ "kind": "method",
86
+ "name": "generateGrid",
87
+ "privacy": "public",
88
+ "static": true,
89
+ "parameters": [
90
+ {
91
+ "name": "shadowRoot",
92
+ "type": {
93
+ "text": "ShadowRoot | null"
94
+ }
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "kind": "field",
100
+ "name": "config",
101
+ "type": {
102
+ "text": "DataViewerConfig | undefined"
103
+ },
104
+ "privacy": "public"
105
+ },
106
+ {
107
+ "kind": "field",
108
+ "name": "_assets",
109
+ "type": {
110
+ "text": "Asset[] | undefined"
111
+ },
112
+ "privacy": "protected"
113
+ },
114
+ {
115
+ "kind": "field",
116
+ "name": "_loading",
117
+ "type": {
118
+ "text": "boolean"
119
+ },
120
+ "privacy": "protected",
121
+ "default": "false"
122
+ },
123
+ {
124
+ "kind": "field",
125
+ "name": "realm",
126
+ "type": {
127
+ "text": "string | undefined"
128
+ },
129
+ "privacy": "public"
130
+ },
131
+ {
132
+ "kind": "field",
133
+ "name": "_resizeHandler",
134
+ "privacy": "protected"
135
+ },
136
+ {
137
+ "kind": "method",
138
+ "name": "refresh",
139
+ "privacy": "public"
140
+ },
141
+ {
142
+ "kind": "method",
143
+ "name": "getPanel",
144
+ "privacy": "public",
145
+ "return": {
146
+ "type": {
147
+ "text": "TemplateResult"
148
+ }
149
+ },
150
+ "parameters": [
151
+ {
152
+ "name": "name",
153
+ "type": {
154
+ "text": "string"
155
+ }
156
+ },
157
+ {
158
+ "name": "panelConfig",
159
+ "type": {
160
+ "text": "PanelConfig"
161
+ }
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "kind": "method",
167
+ "name": "getPanelContent",
168
+ "privacy": "public",
169
+ "return": {
170
+ "type": {
171
+ "text": "TemplateResult | undefined"
172
+ }
173
+ },
174
+ "parameters": [
175
+ {
176
+ "name": "panelName",
177
+ "type": {
178
+ "text": "string"
179
+ }
180
+ },
181
+ {
182
+ "name": "panelConfig",
183
+ "type": {
184
+ "text": "PanelConfig"
185
+ }
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "kind": "method",
191
+ "name": "render",
192
+ "privacy": "protected"
193
+ },
194
+ {
195
+ "kind": "method",
196
+ "name": "renderConfig",
197
+ "privacy": "protected",
198
+ "return": {
199
+ "type": {
200
+ "text": "TemplateResult[]"
201
+ }
202
+ }
203
+ },
204
+ {
205
+ "kind": "method",
206
+ "name": "updated",
207
+ "privacy": "protected",
208
+ "parameters": [
209
+ {
210
+ "name": "_changedProperties",
211
+ "type": {
212
+ "text": "PropertyValues"
213
+ }
214
+ }
215
+ ]
216
+ }
217
+ ],
218
+ "events": [
219
+ {
220
+ "type": {
221
+ "text": "OrDataViewerConfigInvalidEvent"
222
+ }
223
+ }
224
+ ],
225
+ "mixins": [
226
+ {
227
+ "name": "translate(i18next)",
228
+ "module": "src/index.ts"
229
+ }
230
+ ],
231
+ "superclass": {
232
+ "name": "LitElement",
233
+ "package": "lit"
234
+ },
235
+ "customElement": true
236
+ }
237
+ ],
238
+ "exports": [
239
+ {
240
+ "kind": "js",
241
+ "name": "OrDataViewerRenderCompleteEvent",
242
+ "declaration": {
243
+ "name": "OrDataViewerRenderCompleteEvent",
244
+ "module": "src/index.ts"
245
+ }
246
+ },
247
+ {
248
+ "kind": "js",
249
+ "name": "OrDataViewerConfigInvalidEvent",
250
+ "declaration": {
251
+ "name": "OrDataViewerConfigInvalidEvent",
252
+ "module": "src/index.ts"
253
+ }
254
+ },
255
+ {
256
+ "kind": "js",
257
+ "name": "OrDataViewer",
258
+ "declaration": {
259
+ "name": "OrDataViewer",
260
+ "module": "src/index.ts"
261
+ }
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "kind": "javascript-module",
267
+ "path": "src/style.ts",
268
+ "declarations": [
269
+ {
270
+ "kind": "variable",
271
+ "name": "style",
272
+ "default": "css` :host { --internal-or-asset-viewer-background-color: var(--or-asset-viewer-background-color, var(--or-app-color2, ${unsafeCSS(DefaultColor2)})); --internal-or-asset-viewer-panel-margin: var(--or-asset-viewer-panel-margin, 20px); --internal-or-asset-viewer-panel-padding: var(--or-asset-viewer-panel-padding, 24px); --internal-or-asset-viewer-text-color: var(--or-asset-viewer-text-color, var(--or-app-color3, ${unsafeCSS(DefaultColor3)})); --internal-or-asset-viewer-title-text-color: var(--or-asset-viewer-title-text-color, var(--or-app-color3, ${unsafeCSS(DefaultColor3)})); --internal-or-asset-viewer-panel-color: var(--or-asset-viewer-panel-color, var(--or-app-color1, ${unsafeCSS(DefaultColor1)})); --internal-or-asset-viewer-line-color: var(--or-asset-viewer-line-color, var(--or-app-color5, ${unsafeCSS(DefaultColor5)})); height: 100%; width: 100%; background-color: var(--internal-or-asset-viewer-background-color); } *[hidden] { display: none; } #container { width: 100%; box-sizing: border-box; display: grid; margin: auto; padding: 20px 20px; grid-gap: 10px; grid-template-columns: repeat(auto-fill, minmax(calc(25% - 8px), 1fr)); grid-auto-rows: 5px; -webkit-animation: fadein 0.3s; /* Safari, Chrome and Opera > 12.1 */ -moz-animation: fadein 0.3s; /* Firefox < 16 */ -ms-animation: fadein 0.3s; /* Internet Explorer */ -o-animation: fadein 0.3s; /* Opera < 12.1 */ animation: fadein 0.3s; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Firefox < 16 */ @-moz-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Safari, Chrome and Opera > 12.1 */ @-webkit-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Internet Explorer */ @-ms-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } /* Opera < 12.1 */ @-o-keyframes fadein { from { opacity: 0; } to { opacity: 1; } } .panel { background-color: var(--internal-or-asset-viewer-panel-color); border: 1px solid #e5e5e5; border-radius: 5px; max-width: 100%; } .panel-content-wrapper { padding: var(--internal-or-asset-viewer-panel-padding); } .panel-content { display: flex; flex-wrap: wrap; } .panel-title { text-transform: uppercase; font-weight: bolder; line-height: 1em; color: var(--internal-or-asset-viewer-title-text-color); margin-bottom: 25px; flex: 0 0 auto; } .field { margin: 10px 0; width: 100%; flex: 0 0 auto; min-height: 50px; } .field > * { width: 100%; box-sizing: border-box; } .msg { display: flex; justify-content: center; align-items: center; text-align: center; height: 100%; } .back-navigation { display: none; cursor: pointer; } @media screen and (max-width: 1024px) { #container { grid-template-columns: repeat(auto-fill, minmax(calc(50% - 8px), 1fr)); } } @media screen and (max-width: 769px) { .back-navigation { display: block; } .mobileHidden { display: none; } #container { grid-auto-rows: auto; } .panel { border-radius: 0; border-right: none; border-left: none; } #chart-panel { grid-row-start: 1; } #container { grid-template-columns: 100% !important; padding: 20px 0; } } `"
273
+ }
274
+ ],
275
+ "exports": [
276
+ {
277
+ "kind": "js",
278
+ "name": "style",
279
+ "declaration": {
280
+ "name": "style",
281
+ "module": "src/style.ts"
282
+ }
283
+ }
284
+ ]
285
+ }
286
+ ]
287
+ }