@quicdata/analytics 0.0.3 → 0.0.5

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.
Files changed (71) hide show
  1. package/analytics.css +69 -0
  2. package/core/auth.d.ts +19 -0
  3. package/core/auth.d.ts.map +1 -0
  4. package/core/auth.js +34 -0
  5. package/core/fetch-data.d.ts +115 -0
  6. package/core/fetch-data.d.ts.map +1 -0
  7. package/core/fetch-data.js +210 -0
  8. package/core/index.d.ts +8 -1
  9. package/core/index.d.ts.map +1 -1
  10. package/core/index.js +4 -3
  11. package/core/types.d.ts +250 -0
  12. package/core/types.d.ts.map +1 -0
  13. package/core/types.js +1 -0
  14. package/core/viewport-observer.d.ts +26 -0
  15. package/core/viewport-observer.d.ts.map +1 -0
  16. package/core/viewport-observer.js +38 -0
  17. package/core/widget-transform-runner.d.ts +22 -0
  18. package/core/widget-transform-runner.d.ts.map +1 -0
  19. package/core/widget-transform-runner.js +102 -0
  20. package/dashboard/dashboard-container.d.ts +100 -0
  21. package/dashboard/dashboard-container.d.ts.map +1 -0
  22. package/dashboard/dashboard-container.js +315 -0
  23. package/dashboard/index.d.ts +4 -0
  24. package/dashboard/index.d.ts.map +1 -0
  25. package/dashboard/index.js +2 -0
  26. package/designer/analytics-designer.d.ts +40 -0
  27. package/designer/analytics-designer.d.ts.map +1 -0
  28. package/designer/analytics-designer.js +267 -0
  29. package/designer/index.d.ts +5 -0
  30. package/designer/index.d.ts.map +1 -0
  31. package/designer/index.js +3 -0
  32. package/filters/filter-bar.d.ts +34 -0
  33. package/filters/filter-bar.d.ts.map +1 -0
  34. package/filters/filter-bar.js +233 -0
  35. package/filters/filter-button.d.ts +22 -0
  36. package/filters/filter-button.d.ts.map +1 -0
  37. package/filters/filter-button.js +86 -0
  38. package/filters/index.d.ts +7 -0
  39. package/filters/index.d.ts.map +1 -0
  40. package/filters/index.js +6 -0
  41. package/filters/widget-toolbar.d.ts +24 -0
  42. package/filters/widget-toolbar.d.ts.map +1 -0
  43. package/filters/widget-toolbar.js +219 -0
  44. package/index.d.ts +9 -1
  45. package/index.js +6 -1
  46. package/package.json +34 -9
  47. package/widgets/analytics-report.d.ts +49 -0
  48. package/widgets/analytics-report.d.ts.map +1 -0
  49. package/widgets/analytics-report.js +306 -0
  50. package/widgets/analytics-widget.d.ts +39 -0
  51. package/widgets/analytics-widget.d.ts.map +1 -0
  52. package/widgets/analytics-widget.js +230 -0
  53. package/widgets/bar-chart.d.ts +13 -0
  54. package/widgets/bar-chart.d.ts.map +1 -0
  55. package/widgets/bar-chart.js +77 -0
  56. package/widgets/base-chart.d.ts +92 -0
  57. package/widgets/base-chart.d.ts.map +1 -0
  58. package/widgets/base-chart.js +524 -0
  59. package/widgets/index.d.ts +13 -1
  60. package/widgets/index.d.ts.map +1 -1
  61. package/widgets/index.js +14 -3
  62. package/widgets/line-chart.d.ts +13 -0
  63. package/widgets/line-chart.d.ts.map +1 -0
  64. package/widgets/line-chart.js +71 -0
  65. package/widgets/pie-chart.d.ts +13 -0
  66. package/widgets/pie-chart.d.ts.map +1 -0
  67. package/widgets/pie-chart.js +55 -0
  68. package/widgets/table.d.ts +96 -0
  69. package/widgets/table.d.ts.map +1 -0
  70. package/widgets/table.js +721 -0
  71. package/index.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@quicdata/analytics",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "types": "index.d.ts",
8
+ "style": "analytics.css",
8
9
  "exports": {
9
10
  "./package.json": "./package.json",
11
+ "./analytics.css": "./analytics.css",
10
12
  ".": {
11
13
  "types": "./index.d.ts",
12
14
  "import": "./index.js",
@@ -22,12 +24,33 @@
22
24
  "import": "./widgets/index.js",
23
25
  "default": "./widgets/index.js"
24
26
  },
25
- "./core/index": "./src/core/index.js",
26
- "./widgets/index": "./src/widgets/index.js"
27
+ "./dashboard": {
28
+ "types": "./dashboard/index.d.ts",
29
+ "import": "./dashboard/index.js",
30
+ "default": "./dashboard/index.js"
31
+ },
32
+ "./designer": {
33
+ "types": "./designer/index.d.ts",
34
+ "import": "./designer/index.js",
35
+ "default": "./designer/index.js"
36
+ }
27
37
  },
28
38
  "dependencies": {
39
+ "echarts": "^5.5.0",
40
+ "gridstack": "^12.0.0",
41
+ "lit": "^3.3.0",
29
42
  "tslib": "^2.3.0"
30
43
  },
44
+ "files": [
45
+ "*.js",
46
+ "*.d.ts",
47
+ "*.css",
48
+ "core",
49
+ "widgets",
50
+ "dashboard",
51
+ "designer",
52
+ "filters"
53
+ ],
31
54
  "nx": {
32
55
  "targets": {
33
56
  "build": {
@@ -35,13 +58,15 @@
35
58
  "options": {
36
59
  "main": "libs/analytics/src/index.ts",
37
60
  "outputPath": "dist/libs/analytics",
38
- "additionalEntryPoints": [
39
- "libs/analytics/src/core/index.ts",
40
- "libs/analytics/src/widgets/index.ts"
41
- ],
42
61
  "tsConfig": "libs/analytics/tsconfig.lib.json",
43
- "generateExportsField": true,
44
- "rootDir": "libs/analytics/src"
62
+ "rootDir": "libs/analytics/src",
63
+ "assets": [
64
+ {
65
+ "input": "libs/analytics/src",
66
+ "glob": "analytics.css",
67
+ "output": "."
68
+ }
69
+ ]
45
70
  }
46
71
  }
47
72
  }
@@ -0,0 +1,49 @@
1
+ import { LitElement, nothing } from 'lit';
2
+ import '../filters/filter-bar.js';
3
+ import './table.js';
4
+ /**
5
+ * Analytics report component: show report by report definition id.
6
+ * Similar to analytics-widget: has filters, print, and export (PDF/Excel) buttons.
7
+ * Renders report data inline with analytics-table (same as table widget); filter bar above; toolbar with Print, Download PDF, Download Excel.
8
+ */
9
+ export declare class AnalyticsReport extends LitElement {
10
+ static styles: import("lit").CSSResult;
11
+ /** Report definition id (used with apiUrl to load definition and preview). */
12
+ reportId: string;
13
+ /** API base URL (e.g. /api/analytics). */
14
+ apiUrl: string;
15
+ /** Optional title override. When set (non-empty), overrides report name from definition. Use attribute "custom-title" to avoid native title. */
16
+ customTitle: string;
17
+ /** @deprecated Use custom-title. Optional title override. */
18
+ title: string;
19
+ /** Initial filter params (e.g. { year: '2025', haulier_id: '1' }). */
20
+ dataParams: Record<string, string | number | boolean>;
21
+ private _name;
22
+ private _filters;
23
+ private _params;
24
+ private _previewUrlBase;
25
+ private _pdfUrlBase;
26
+ private _excelUrlBase;
27
+ private _loading;
28
+ private _error;
29
+ constructor();
30
+ connectedCallback(): void;
31
+ disconnectedCallback(): void;
32
+ updated(changed: Map<string, unknown>): void;
33
+ private _loadReport;
34
+ /** Build initial params: dataParams first, then filter default_value for any param not set. Runs from beginning so first data request uses defaults. */
35
+ private _paramsFromFiltersAndDataParams;
36
+ private _onFilterChange;
37
+ private get _dataUrl();
38
+ private get _previewUrl();
39
+ private get _pdfUrl();
40
+ private get _excelUrl();
41
+ private _print;
42
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
43
+ }
44
+ declare global {
45
+ interface HTMLElementTagNameMap {
46
+ 'analytics-report': AnalyticsReport;
47
+ }
48
+ }
49
+ //# sourceMappingURL=analytics-report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-report.d.ts","sourceRoot":"","sources":["../../../../libs/analytics/src/widgets/analytics-report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,OAAO,EAAE,MAAM,KAAK,CAAC;AAYrD,OAAO,0BAA0B,CAAC;AAClC,OAAO,YAAY,CAAC;AAEpB;;;;GAIG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAyFpB;IAEF,8EAA8E;IAClB,QAAQ,EAAE,MAAM,CAAC;IAE7E,0CAA0C;IACgB,MAAM,EAAE,MAAM,CAAC;IAEzE,gJAAgJ;IACjF,WAAW,EAAE,MAAM,CAAC;IAEnF,6DAA6D;IACzB,KAAK,EAAE,MAAM,CAAC;IAElD,sEAAsE;IAClC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAE1F,QAAyB,KAAK,CAAS;IACvC,QAAyB,QAAQ,CAAqB;IACtD,QAAyB,OAAO,CAA4C;IAC5E,QAAyB,eAAe,CAAS;IACjD,QAAyB,WAAW,CAAS;IAC7C,QAAyB,aAAa,CAAS;IAC/C,QAAyB,QAAQ,CAAU;IAC3C,QAAyB,MAAM,CAAgB;;IAmBtC,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;YAevC,WAAW;IAwBzB,wJAAwJ;IACxJ,OAAO,CAAC,+BAA+B;IAWvC,OAAO,CAAC,eAAe;IAMvB,OAAO,KAAK,QAAQ,GAGnB;IAED,OAAO,KAAK,WAAW,GAItB;IAED,OAAO,KAAK,OAAO,GAIlB;IAED,OAAO,KAAK,SAAS,GAIpB;IAED,OAAO,CAAC,MAAM;IAIL,MAAM;CAiDhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,eAAe,CAAC;KACrC;CACF"}
@@ -0,0 +1,306 @@
1
+ import { __decorate } from "tslib";
2
+ import { LitElement, html, css, nothing } from 'lit';
3
+ import { customElement, property, state } from 'lit/decorators.js';
4
+ import { fetchReportDefinition, buildReportDataUrl, buildReportPreviewUrl, buildReportPdfUrl, buildReportExcelUrl, appendParamsToUrl, } from '../core/fetch-data.js';
5
+ import { EVENT_FILTER_CHANGE } from '../filters/filter-bar.js';
6
+ import '../filters/filter-bar.js';
7
+ import './table.js';
8
+ /**
9
+ * Analytics report component: show report by report definition id.
10
+ * Similar to analytics-widget: has filters, print, and export (PDF/Excel) buttons.
11
+ * Renders report data inline with analytics-table (same as table widget); filter bar above; toolbar with Print, Download PDF, Download Excel.
12
+ */
13
+ let AnalyticsReport = class AnalyticsReport extends LitElement {
14
+ static { this.styles = css `
15
+ :host {
16
+ display: block;
17
+ width: 100%;
18
+ height: 100%;
19
+ min-height: 200px;
20
+ }
21
+ .report-root {
22
+ display: flex;
23
+ flex-direction: column;
24
+ width: 100%;
25
+ height: 100%;
26
+ min-height: 200px;
27
+ }
28
+ .report-header {
29
+ flex-shrink: 0;
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: space-between;
33
+ gap: 1rem;
34
+ padding: 0.5rem 1rem;
35
+ border-bottom: 1px solid var(--analytics-report-border, #e2e8f0);
36
+ background: var(--analytics-report-header-bg, #f8fafc);
37
+ }
38
+ .report-title {
39
+ font-size: 1rem;
40
+ font-weight: 600;
41
+ color: var(--analytics-report-title-color, #1e293b);
42
+ margin: 0;
43
+ }
44
+ .report-actions {
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 0.5rem;
48
+ }
49
+ .report-actions button,
50
+ .report-actions a {
51
+ padding: 0.375rem 0.75rem;
52
+ font-size: 0.875rem;
53
+ border-radius: 6px;
54
+ border: 1px solid var(--analytics-report-btn-border, #cbd5e1);
55
+ background: var(--analytics-report-btn-bg, #fff);
56
+ color: var(--analytics-report-btn-color, #334155);
57
+ cursor: pointer;
58
+ text-decoration: none;
59
+ }
60
+ .report-actions button:hover,
61
+ .report-actions a:hover {
62
+ background: var(--analytics-report-btn-hover-bg, #f1f5f9);
63
+ color: var(--analytics-report-btn-hover-color, #0f172a);
64
+ }
65
+ .report-filters {
66
+ flex-shrink: 0;
67
+ border-bottom: 1px solid var(--analytics-report-border, #e2e8f0);
68
+ }
69
+ .report-table-wrap {
70
+ flex: 1;
71
+ min-height: 0;
72
+ display: flex;
73
+ flex-direction: column;
74
+ background: #fff;
75
+ }
76
+ .report-table-wrap analytics-table {
77
+ flex: 1;
78
+ min-height: 0;
79
+ }
80
+ .loading,
81
+ .error {
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ min-height: 200px;
86
+ padding: 1rem;
87
+ color: #64748b;
88
+ }
89
+ .error {
90
+ color: #b91c1c;
91
+ }
92
+ .loading-spinner {
93
+ width: 2rem;
94
+ height: 2rem;
95
+ border: 2px solid #e2e8f0;
96
+ border-top-color: #3b82f6;
97
+ border-radius: 50%;
98
+ animation: analytics-report-spin 0.7s linear infinite;
99
+ }
100
+ @keyframes analytics-report-spin {
101
+ to { transform: rotate(360deg); }
102
+ }
103
+ `; }
104
+ constructor() {
105
+ super();
106
+ this.reportId = '';
107
+ this.apiUrl = '';
108
+ this.customTitle = '';
109
+ this.title = '';
110
+ this.dataParams = {};
111
+ this._name = '';
112
+ this._filters = [];
113
+ this._params = { ...(this.dataParams ?? {}) };
114
+ this._previewUrlBase = '';
115
+ this._pdfUrlBase = '';
116
+ this._excelUrlBase = '';
117
+ this._loading = false;
118
+ this._error = null;
119
+ }
120
+ connectedCallback() {
121
+ super.connectedCallback();
122
+ this.addEventListener(EVENT_FILTER_CHANGE, this._onFilterChange);
123
+ }
124
+ disconnectedCallback() {
125
+ super.disconnectedCallback();
126
+ this.removeEventListener(EVENT_FILTER_CHANGE, this._onFilterChange);
127
+ }
128
+ updated(changed) {
129
+ if (!this.apiUrl || !this.reportId || this._loading)
130
+ return;
131
+ if (changed.has('reportId') || changed.has('apiUrl')) {
132
+ this._name = '';
133
+ this._filters = [];
134
+ this._previewUrlBase = '';
135
+ this._pdfUrlBase = '';
136
+ this._excelUrlBase = '';
137
+ this._params = { ...(this.dataParams ?? {}) };
138
+ this._loadReport();
139
+ }
140
+ else if (this._name === '' && !this._error) {
141
+ this._loadReport();
142
+ }
143
+ }
144
+ async _loadReport() {
145
+ if (!this.apiUrl || !this.reportId || this._loading)
146
+ return;
147
+ this._loading = true;
148
+ this._error = null;
149
+ try {
150
+ const def = await fetchReportDefinition(this.apiUrl, this.reportId);
151
+ this._name = def.name ?? '';
152
+ this._filters = def.filters ?? [];
153
+ this._params = this._paramsFromFiltersAndDataParams(this._filters);
154
+ this._previewUrlBase = def.preview_url ?? '';
155
+ this._pdfUrlBase = def.download_pdf_url ?? '';
156
+ this._excelUrlBase = def.download_excel_url ?? '';
157
+ }
158
+ catch (e) {
159
+ this._error = e instanceof Error ? e.message : String(e);
160
+ this._name = '';
161
+ this._filters = [];
162
+ this._previewUrlBase = '';
163
+ this._pdfUrlBase = '';
164
+ this._excelUrlBase = '';
165
+ }
166
+ finally {
167
+ this._loading = false;
168
+ }
169
+ }
170
+ /** Build initial params: dataParams first, then filter default_value for any param not set. Runs from beginning so first data request uses defaults. */
171
+ _paramsFromFiltersAndDataParams(filters) {
172
+ const out = { ...(this.dataParams ?? {}) };
173
+ for (const f of filters) {
174
+ if (f.param_name && (f.param_name in out))
175
+ continue;
176
+ if (f.default_value !== undefined && f.default_value !== null) {
177
+ out[f.param_name] = f.default_value;
178
+ }
179
+ }
180
+ return out;
181
+ }
182
+ _onFilterChange(e) {
183
+ if (e.detail?.params) {
184
+ this._params = { ...e.detail.params };
185
+ }
186
+ }
187
+ get _dataUrl() {
188
+ if (!this.apiUrl || !this.reportId)
189
+ return '';
190
+ return buildReportDataUrl(this.apiUrl, this.reportId);
191
+ }
192
+ get _previewUrl() {
193
+ if (this._previewUrlBase)
194
+ return appendParamsToUrl(this._previewUrlBase, this._params);
195
+ if (!this.apiUrl || !this.reportId)
196
+ return '';
197
+ return buildReportPreviewUrl(this.apiUrl, this.reportId, this._params);
198
+ }
199
+ get _pdfUrl() {
200
+ if (this._pdfUrlBase)
201
+ return appendParamsToUrl(this._pdfUrlBase, this._params);
202
+ if (!this.apiUrl || !this.reportId)
203
+ return '#';
204
+ return buildReportPdfUrl(this.apiUrl, this.reportId, this._params);
205
+ }
206
+ get _excelUrl() {
207
+ if (this._excelUrlBase)
208
+ return appendParamsToUrl(this._excelUrlBase, this._params);
209
+ if (!this.apiUrl || !this.reportId)
210
+ return '#';
211
+ return buildReportExcelUrl(this.apiUrl, this.reportId, this._params);
212
+ }
213
+ _print() {
214
+ window.open(this._previewUrl, '_blank', 'noopener')?.print();
215
+ }
216
+ render() {
217
+ if (this._loading) {
218
+ return html `
219
+ <div class="loading" aria-busy="true" aria-live="polite">
220
+ <div class="loading-spinner" aria-hidden="true"></div>
221
+ </div>
222
+ `;
223
+ }
224
+ if (this._error) {
225
+ return html `<div class="error" role="alert">${this._error}</div>`;
226
+ }
227
+ if (!this.reportId || !this.apiUrl) {
228
+ return nothing;
229
+ }
230
+ const custom = (this.customTitle ?? '').trim();
231
+ const displayTitle = custom !== '' ? custom : (this._name || 'Report');
232
+ return html `
233
+ <div class="report-root">
234
+ <div class="report-header">
235
+ <h1 class="report-title">${displayTitle}</h1>
236
+ <div class="report-actions">
237
+ <button type="button" @click=${this._print}>Print</button>
238
+ <a href=${this._pdfUrl} target="_blank" rel="noopener" download>Download PDF</a>
239
+ <a href=${this._excelUrl} target="_blank" rel="noopener" download>Download Excel</a>
240
+ </div>
241
+ </div>
242
+ ${this._filters.length > 0
243
+ ? html `
244
+ <div class="report-filters">
245
+ <analytics-filter-bar
246
+ .filters=${this._filters}
247
+ .values=${this._params}
248
+ .showClose=${false}
249
+ ></analytics-filter-bar>
250
+ </div>
251
+ `
252
+ : ''}
253
+ <div class="report-table-wrap">
254
+ <analytics-table
255
+ data-url=${this._dataUrl}
256
+ .dataParams=${this._params}
257
+ .title=${''}
258
+ ></analytics-table>
259
+ </div>
260
+ </div>
261
+ `;
262
+ }
263
+ };
264
+ __decorate([
265
+ property({ type: String, attribute: 'report-id' })
266
+ ], AnalyticsReport.prototype, "reportId", void 0);
267
+ __decorate([
268
+ property({ type: String, attribute: 'api-url' })
269
+ ], AnalyticsReport.prototype, "apiUrl", void 0);
270
+ __decorate([
271
+ property({ type: String, attribute: 'custom-title' })
272
+ ], AnalyticsReport.prototype, "customTitle", void 0);
273
+ __decorate([
274
+ property({ type: String })
275
+ ], AnalyticsReport.prototype, "title", void 0);
276
+ __decorate([
277
+ property({ type: Object })
278
+ ], AnalyticsReport.prototype, "dataParams", void 0);
279
+ __decorate([
280
+ state()
281
+ ], AnalyticsReport.prototype, "_name", void 0);
282
+ __decorate([
283
+ state()
284
+ ], AnalyticsReport.prototype, "_filters", void 0);
285
+ __decorate([
286
+ state()
287
+ ], AnalyticsReport.prototype, "_params", void 0);
288
+ __decorate([
289
+ state()
290
+ ], AnalyticsReport.prototype, "_previewUrlBase", void 0);
291
+ __decorate([
292
+ state()
293
+ ], AnalyticsReport.prototype, "_pdfUrlBase", void 0);
294
+ __decorate([
295
+ state()
296
+ ], AnalyticsReport.prototype, "_excelUrlBase", void 0);
297
+ __decorate([
298
+ state()
299
+ ], AnalyticsReport.prototype, "_loading", void 0);
300
+ __decorate([
301
+ state()
302
+ ], AnalyticsReport.prototype, "_error", void 0);
303
+ AnalyticsReport = __decorate([
304
+ customElement('analytics-report')
305
+ ], AnalyticsReport);
306
+ export { AnalyticsReport };
@@ -0,0 +1,39 @@
1
+ import { LitElement, nothing } from 'lit';
2
+ import type { DashboardContainer } from '../dashboard/dashboard-container.js';
3
+ import './bar-chart.js';
4
+ import './line-chart.js';
5
+ import './pie-chart.js';
6
+ import './table.js';
7
+ /**
8
+ * Generic analytics widget: pass widgetId + apiUrl (and optional config);
9
+ * fetches the widget definition and renders the appropriate chart/table internally.
10
+ * Use this so developers don't need to know the chart type.
11
+ */
12
+ export declare class AnalyticsWidget extends LitElement {
13
+ static styles: import("lit").CSSResult;
14
+ /** Widget id (used with apiUrl to load definition and data). */
15
+ widgetId: string;
16
+ /** API base URL (e.g. /api/analytics). Used with widgetId to fetch definition and data. */
17
+ apiUrl: string;
18
+ /** Optional title override. When unset, the inner widget uses the title from the definition. */
19
+ title: string;
20
+ /** Query params for data requests (e.g. date_from, date_to). */
21
+ dataParams: Record<string, string | number | boolean>;
22
+ /** When set, the inner widget receives dashboard filter/refresh events. */
23
+ dashboard: DashboardContainer | null;
24
+ /** When true, the inner widget only fetches when it enters the viewport. */
25
+ lazy: boolean;
26
+ /** CSS margin for viewport prefetch when lazy is true (e.g. '200px'). */
27
+ prefetchMargin: string;
28
+ private _chartType;
29
+ private _definition;
30
+ private _loading;
31
+ private _error;
32
+ constructor();
33
+ updated(changed: Map<string, unknown>): void;
34
+ private _loadDefinition;
35
+ private get _innerTag();
36
+ private _renderInnerWidget;
37
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
38
+ }
39
+ //# sourceMappingURL=analytics-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-widget.d.ts","sourceRoot":"","sources":["../../../../libs/analytics/src/widgets/analytics-widget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,OAAO,EAAE,MAAM,KAAK,CAAC;AAIrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,gBAAgB,CAAC;AACxB,OAAO,iBAAiB,CAAC;AACzB,OAAO,gBAAgB,CAAC;AACxB,OAAO,YAAY,CAAC;AAapB;;;;GAIG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAmCpB;IAEF,gEAAgE;IACJ,QAAQ,EAAE,MAAM,CAAC;IAE7E,2FAA2F;IACjC,MAAM,EAAE,MAAM,CAAC;IAEzE,gGAAgG;IAC5D,KAAK,EAAE,MAAM,CAAC;IAElD,gEAAgE;IAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAE1F,2EAA2E;IACvC,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEzE,4EAA4E;IACvC,IAAI,EAAE,OAAO,CAAC;IAEnD,yEAAyE;IACP,cAAc,EAAE,MAAM,CAAC;IAEzF,QAAyB,UAAU,CAAuB;IAC1D,QAAyB,WAAW,CAAgC;IACpE,QAAyB,QAAQ,CAAU;IAC3C,QAAyB,MAAM,CAAgB;;IAiBtC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;YAWvC,eAAe;IAqB7B,OAAO,KAAK,SAAS,GAGpB;IAED,OAAO,CAAC,kBAAkB;IA8DjB,MAAM;CAgBhB"}