overview-components 1.0.56 → 1.0.57

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 (52) hide show
  1. package/dist/components/lit-attachments-tab.d.ts.map +1 -1
  2. package/dist/components/lit-attachments-tab.js +127 -116
  3. package/dist/components/lit-attachments-tab.js.map +1 -1
  4. package/dist/components/lit-case-variables-tab.d.ts +6 -0
  5. package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
  6. package/dist/components/lit-case-variables-tab.js +194 -96
  7. package/dist/components/lit-case-variables-tab.js.map +1 -1
  8. package/dist/components/lit-data-grid-tanstack.d.ts +16 -91
  9. package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
  10. package/dist/components/lit-data-grid-tanstack.js +127 -2
  11. package/dist/components/lit-data-grid-tanstack.js.map +1 -1
  12. package/dist/components/lit-filter-modal.d.ts.map +1 -1
  13. package/dist/components/lit-filter-modal.js +3 -2
  14. package/dist/components/lit-filter-modal.js.map +1 -1
  15. package/dist/components/react-wrappers/progress-bar.d.ts +1 -1
  16. package/dist/components/react-wrappers/progress-bar.d.ts.map +1 -1
  17. package/dist/components/react-wrappers/progress-bar.js +1 -1
  18. package/dist/components/react-wrappers/progress-bar.js.map +1 -1
  19. package/dist/schemas/index.d.ts +6 -1
  20. package/dist/schemas/index.d.ts.map +1 -1
  21. package/dist/schemas/index.js +6 -1
  22. package/dist/schemas/index.js.map +1 -1
  23. package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts +1 -1
  24. package/dist/schemas/lit-case-variables-tab-cell.schema.js +1 -1
  25. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -1
  26. package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts +1 -1
  27. package/dist/schemas/lit-case-variables-tab.schema.d.ts +1 -1
  28. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.d.ts +90 -0
  29. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.d.ts.map +1 -0
  30. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +6 -0
  31. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +1 -0
  32. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.d.ts +20 -0
  33. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.d.ts.map +1 -0
  34. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +6 -0
  35. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +1 -0
  36. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.d.ts +17 -0
  37. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.d.ts.map +1 -0
  38. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +11 -0
  39. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +1 -0
  40. package/dist/schemas/lit-data-grid-tanstack-column.schema.d.ts +87 -0
  41. package/dist/schemas/lit-data-grid-tanstack-column.schema.d.ts.map +1 -0
  42. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +55 -0
  43. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +1 -0
  44. package/dist/schemas/lit-data-grid-tanstack.schema.d.ts +265 -0
  45. package/dist/schemas/lit-data-grid-tanstack.schema.d.ts.map +1 -0
  46. package/dist/schemas/lit-data-grid-tanstack.schema.js +100 -0
  47. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +1 -0
  48. package/dist/shared/lit-progress-bar.d.ts +17 -0
  49. package/dist/shared/lit-progress-bar.d.ts.map +1 -0
  50. package/dist/shared/lit-progress-bar.js +81 -0
  51. package/dist/shared/lit-progress-bar.js.map +1 -0
  52. package/package.json +3 -1
@@ -0,0 +1,265 @@
1
+ export declare const litDataGridTanstackSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly key: {
5
+ readonly type: "string";
6
+ };
7
+ readonly row: {
8
+ readonly type: "array";
9
+ };
10
+ readonly columns: {
11
+ readonly type: "array";
12
+ readonly types: {
13
+ readonly type: "object";
14
+ readonly properties: {
15
+ readonly field: {
16
+ readonly type: "string";
17
+ };
18
+ readonly type: {
19
+ readonly type: "string";
20
+ readonly enum: readonly ["string", "number", "date", "range", "select", "multiselect", "dateTime", "actions", "dateTimeRange", "dateRange", "numberRange", "currency"];
21
+ };
22
+ readonly headerName: {
23
+ readonly type: "string";
24
+ };
25
+ readonly columnAggregation: {
26
+ readonly type: "string";
27
+ readonly enum: readonly ["sum", "median", "min", "max"];
28
+ };
29
+ readonly enableGrouping: {
30
+ readonly type: "boolean";
31
+ };
32
+ readonly enableFilter: {
33
+ readonly type: "boolean";
34
+ };
35
+ readonly enableSorting: {
36
+ readonly type: "boolean";
37
+ };
38
+ readonly size: {
39
+ readonly type: "number";
40
+ };
41
+ readonly minSize: {
42
+ readonly type: "number";
43
+ };
44
+ readonly maxSize: {
45
+ readonly type: "number";
46
+ };
47
+ readonly sortDescFirst: {
48
+ readonly type: "boolean";
49
+ };
50
+ readonly enableResizing: {
51
+ readonly type: "boolean";
52
+ };
53
+ readonly enablePinning: {
54
+ readonly type: "boolean";
55
+ };
56
+ readonly valueOptions: {
57
+ readonly type: "array";
58
+ readonly items: {
59
+ readonly type: "object";
60
+ readonly properties: {
61
+ readonly value: {
62
+ readonly anyOf: readonly [{
63
+ readonly type: "string";
64
+ }, {
65
+ readonly type: "number";
66
+ }];
67
+ };
68
+ readonly label: {
69
+ readonly type: "string";
70
+ };
71
+ };
72
+ readonly required: readonly ["value", "label"];
73
+ };
74
+ };
75
+ readonly filterOperators: {
76
+ readonly type: "array";
77
+ readonly types: {
78
+ readonly type: "object";
79
+ readonly properties: {
80
+ readonly label: {
81
+ readonly type: "string";
82
+ };
83
+ readonly value: {
84
+ readonly type: "string";
85
+ };
86
+ readonly customFilter: {
87
+ readonly type: "string";
88
+ };
89
+ };
90
+ readonly required: readonly ["label", "value"];
91
+ readonly additionalProperties: false;
92
+ };
93
+ };
94
+ };
95
+ readonly required: readonly ["field"];
96
+ readonly additionalProperties: true;
97
+ };
98
+ };
99
+ readonly columnDefaultSize: {
100
+ readonly type: "number";
101
+ };
102
+ readonly columnDefaultMinSize: {
103
+ readonly type: "number";
104
+ };
105
+ readonly columnDefaultMaxSize: {
106
+ readonly type: "number";
107
+ };
108
+ readonly columnGroupedColor: {
109
+ readonly type: "string";
110
+ };
111
+ readonly rowAggregationColor: {
112
+ readonly type: "string";
113
+ };
114
+ readonly enableRowVirtualization: {
115
+ readonly type: "boolean";
116
+ };
117
+ readonly enableColumnVirtualization: {
118
+ readonly type: "boolean";
119
+ };
120
+ readonly enableColumnPinning: {
121
+ readonly type: "boolean";
122
+ };
123
+ readonly exportData: {
124
+ readonly type: "boolean";
125
+ };
126
+ readonly id: {
127
+ readonly type: "string";
128
+ };
129
+ readonly initialGroups: {
130
+ readonly type: "array";
131
+ readonly items: {
132
+ readonly type: "string";
133
+ };
134
+ };
135
+ readonly initialSorting: {
136
+ readonly type: "array";
137
+ };
138
+ readonly initialColumnVisibility: {
139
+ readonly type: "object";
140
+ readonly additionalProperties: {
141
+ readonly type: "boolean";
142
+ };
143
+ };
144
+ readonly initialFiltering: {
145
+ readonly type: "array";
146
+ readonly items: {
147
+ readonly type: "object";
148
+ readonly properties: {
149
+ readonly id: {
150
+ readonly type: "string";
151
+ };
152
+ readonly value: {};
153
+ };
154
+ readonly required: readonly ["id", "value"];
155
+ readonly additionalProperties: false;
156
+ };
157
+ };
158
+ readonly initialRowExpanded: {
159
+ readonly anyOf: readonly [{
160
+ readonly type: "boolean";
161
+ readonly enum: readonly [true];
162
+ }, {
163
+ readonly type: "object";
164
+ readonly additionalProperties: {
165
+ readonly type: "boolean";
166
+ };
167
+ }];
168
+ };
169
+ readonly leftPinnedColumns: {
170
+ readonly type: "array";
171
+ readonly items: {
172
+ readonly type: "string";
173
+ };
174
+ };
175
+ readonly rightPinnedColumns: {
176
+ readonly type: "array";
177
+ readonly items: {
178
+ readonly type: "string";
179
+ };
180
+ };
181
+ readonly enableFiltering: {
182
+ readonly type: "boolean";
183
+ };
184
+ readonly enableSorting: {
185
+ readonly type: "boolean";
186
+ };
187
+ readonly enableGrouping: {
188
+ readonly type: "boolean";
189
+ };
190
+ readonly userLang: {
191
+ readonly type: "string";
192
+ };
193
+ readonly dateFormat: {
194
+ readonly type: readonly ["string", "null"];
195
+ readonly enum: readonly [null, "dd.MM.yyyy", "d.M.yyyy", "dd/MM/yyyy", "MM/dd/yyyy", "yyyy-MM-dd"];
196
+ };
197
+ readonly actionButtonsInMenu: {
198
+ readonly type: "boolean";
199
+ };
200
+ readonly isLoading: {
201
+ readonly type: "boolean";
202
+ };
203
+ readonly enableRowSelection: {
204
+ readonly type: "boolean";
205
+ };
206
+ readonly server: {
207
+ readonly type: "boolean";
208
+ };
209
+ readonly scrollEndThreshold: {
210
+ readonly type: "number";
211
+ };
212
+ readonly rowDensity: {
213
+ readonly type: "string";
214
+ readonly enum: readonly ["compact", "standard", "comfort"];
215
+ };
216
+ readonly enableMultiRowSelection: {
217
+ readonly type: "boolean";
218
+ };
219
+ readonly columnSizing: {
220
+ readonly type: "object";
221
+ readonly additionalProperties: {
222
+ readonly type: "number";
223
+ };
224
+ };
225
+ readonly localizeDate: {
226
+ readonly type: "boolean";
227
+ };
228
+ readonly minFilterCharacters: {
229
+ readonly type: "number";
230
+ };
231
+ readonly rowsSelected: {
232
+ readonly type: "object";
233
+ readonly additionalProperties: {
234
+ readonly type: "boolean";
235
+ };
236
+ };
237
+ readonly hideFooter: {
238
+ readonly type: "boolean";
239
+ };
240
+ readonly enableColumnOrdering: {
241
+ readonly type: "boolean";
242
+ };
243
+ readonly totalNumberRows: {
244
+ readonly type: "number";
245
+ };
246
+ readonly columnVisibility: {
247
+ readonly type: "object";
248
+ readonly additionalProperties: {
249
+ readonly type: "boolean";
250
+ };
251
+ };
252
+ readonly focusedRowIndex: {
253
+ readonly type: readonly ["number", "null"];
254
+ };
255
+ readonly autoFocus: {
256
+ readonly type: "boolean";
257
+ };
258
+ readonly enableSettings: {
259
+ readonly type: "boolean";
260
+ };
261
+ };
262
+ readonly required: readonly ["columns"];
263
+ readonly additionalProperties: false;
264
+ };
265
+ //# sourceMappingURL=lit-data-grid-tanstack.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-data-grid-tanstack.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-data-grid-tanstack.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiG5B,CAAC"}
@@ -0,0 +1,100 @@
1
+ import { litDataGridTanstackColumnArraySchema } from './lit-data-grid-tanstack-column-array.schema';
2
+ export const litDataGridTanstackSchema = {
3
+ type: 'object',
4
+ properties: {
5
+ key: { type: 'string' },
6
+ row: { type: 'array' },
7
+ columns: litDataGridTanstackColumnArraySchema,
8
+ columnDefaultSize: { type: 'number' },
9
+ columnDefaultMinSize: { type: 'number' },
10
+ columnDefaultMaxSize: { type: 'number' },
11
+ columnGroupedColor: { type: 'string' },
12
+ rowAggregationColor: { type: 'string' },
13
+ enableRowVirtualization: { type: 'boolean' },
14
+ enableColumnVirtualization: { type: 'boolean' },
15
+ enableColumnPinning: { type: 'boolean' },
16
+ exportData: { type: 'boolean' },
17
+ id: { type: 'string' },
18
+ initialGroups: {
19
+ type: 'array',
20
+ items: { type: 'string' },
21
+ },
22
+ initialSorting: { type: 'array' },
23
+ initialColumnVisibility: {
24
+ type: 'object',
25
+ additionalProperties: { type: 'boolean' },
26
+ },
27
+ initialFiltering: {
28
+ type: 'array',
29
+ items: {
30
+ type: 'object',
31
+ properties: {
32
+ id: { type: 'string' },
33
+ value: {},
34
+ },
35
+ required: ['id', 'value'],
36
+ additionalProperties: false,
37
+ },
38
+ },
39
+ initialRowExpanded: {
40
+ anyOf: [
41
+ { type: 'boolean', enum: [true] },
42
+ {
43
+ type: 'object',
44
+ additionalProperties: { type: 'boolean' },
45
+ },
46
+ ],
47
+ },
48
+ leftPinnedColumns: {
49
+ type: 'array',
50
+ items: { type: 'string' },
51
+ },
52
+ rightPinnedColumns: {
53
+ type: 'array',
54
+ items: { type: 'string' },
55
+ },
56
+ enableFiltering: { type: 'boolean' },
57
+ enableSorting: { type: 'boolean' },
58
+ enableGrouping: { type: 'boolean' },
59
+ userLang: { type: 'string' },
60
+ dateFormat: {
61
+ type: ['string', 'null'],
62
+ enum: [null, 'dd.MM.yyyy', 'd.M.yyyy', 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd'],
63
+ },
64
+ actionButtonsInMenu: { type: 'boolean' },
65
+ isLoading: { type: 'boolean' },
66
+ enableRowSelection: { type: 'boolean' },
67
+ server: { type: 'boolean' },
68
+ scrollEndThreshold: { type: 'number' },
69
+ rowDensity: {
70
+ type: 'string',
71
+ enum: ['compact', 'standard', 'comfort'],
72
+ },
73
+ enableMultiRowSelection: { type: 'boolean' },
74
+ columnSizing: {
75
+ type: 'object',
76
+ additionalProperties: { type: 'number' },
77
+ },
78
+ localizeDate: { type: 'boolean' },
79
+ minFilterCharacters: { type: 'number' },
80
+ rowsSelected: {
81
+ type: 'object',
82
+ additionalProperties: { type: 'boolean' },
83
+ },
84
+ hideFooter: { type: 'boolean' },
85
+ enableColumnOrdering: { type: 'boolean' },
86
+ totalNumberRows: { type: 'number' },
87
+ columnVisibility: {
88
+ type: 'object',
89
+ additionalProperties: { type: 'boolean' },
90
+ },
91
+ focusedRowIndex: {
92
+ type: ['number', 'null'],
93
+ },
94
+ autoFocus: { type: 'boolean' },
95
+ enableSettings: { type: 'boolean' },
96
+ },
97
+ required: ['columns'],
98
+ additionalProperties: false,
99
+ };
100
+ //# sourceMappingURL=lit-data-grid-tanstack.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-data-grid-tanstack.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-data-grid-tanstack.schema.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,17 @@
1
+ import { LitElement } from 'lit';
2
+ export type LitProgressBarProp = {
3
+ label?: string;
4
+ progress?: number;
5
+ };
6
+ export declare class LitProgressBar extends LitElement {
7
+ label?: string;
8
+ progress: number;
9
+ static styles: import("lit").CSSResult[];
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'lit-progress-bar': LitProgressBar;
15
+ }
16
+ }
17
+ //# sourceMappingURL=lit-progress-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-progress-bar.d.ts","sourceRoot":"","sources":["../../src/shared/lit-progress-bar.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBACa,cAAe,SAAQ,UAAU;IACd,KAAK,CAAC,EAAE,MAAM,CAAM;IACpB,QAAQ,EAAE,MAAM,CAAK;IAEjD,MAAM,CAAC,MAAM,4BAwCX;IACF,MAAM;CAeT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,kBAAkB,EAAE,cAAc,CAAC;KACtC;CACJ"}
@@ -0,0 +1,81 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { customElement, property } from 'lit/decorators.js';
8
+ import { css, html, LitElement } from 'lit';
9
+ let LitProgressBar = class LitProgressBar extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.label = '';
13
+ this.progress = 0;
14
+ }
15
+ render() {
16
+ const clampedProgress = Math.min(100, Math.max(0, this.progress));
17
+ return html `
18
+ <div class="container">
19
+ <div class="label">${this.label}</div>
20
+ <div class="progress-bar-container">
21
+ <div class="percentage">${clampedProgress}%</div>
22
+ <div class="progress-bar">
23
+ <div class="progress-fill" style="width: ${clampedProgress}%"></div>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ `;
28
+ }
29
+ };
30
+ LitProgressBar.styles = [
31
+ css `
32
+ .container {
33
+ gap: 4px;
34
+ }
35
+
36
+ .label {
37
+ font-weight: 500;
38
+ font-size: 14px;
39
+ color: var(--text-secondary, #5d6371);
40
+ gap: 10px;
41
+ line-height: 24px;
42
+ }
43
+
44
+ .progress-bar-container {
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 4px;
48
+ }
49
+
50
+ .progress-bar {
51
+ display: flex;
52
+ width: 100%;
53
+ height: 12px;
54
+ border-radius: 8px;
55
+ background-color: var(--color-primary-light, #f0fadf);
56
+ overflow: hidden;
57
+ }
58
+
59
+ .progress-fill {
60
+ height: 100%;
61
+ background-color: var(--color-primary-main, #76b703);
62
+ transition: width 0.05s ease-in-out;
63
+ }
64
+
65
+ .percentage {
66
+ font-weight: 500;
67
+ font-size: 14px;
68
+ }
69
+ `,
70
+ ];
71
+ __decorate([
72
+ property({ type: String })
73
+ ], LitProgressBar.prototype, "label", void 0);
74
+ __decorate([
75
+ property({ type: Number })
76
+ ], LitProgressBar.prototype, "progress", void 0);
77
+ LitProgressBar = __decorate([
78
+ customElement('lit-progress-bar')
79
+ ], LitProgressBar);
80
+ export { LitProgressBar };
81
+ //# sourceMappingURL=lit-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-progress-bar.js","sourceRoot":"","sources":["../../src/shared/lit-progress-bar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQrC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QACyB,UAAK,GAAY,EAAE,CAAC;QACpB,aAAQ,GAAW,CAAC,CAAC;IA0DrD,CAAC;IAfG,MAAM;QACF,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAElE,OAAO,IAAI,CAAA;;qCAEkB,IAAI,CAAC,KAAK;;8CAED,eAAe;;mEAEM,eAAe;;;;SAIzE,CAAC;IACN,CAAC;;AAvDM,qBAAM,GAAG;IACZ,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAsCF;CACJ,AAxCY,CAwCX;AA3C0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAsB;AAFxC,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA4D1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overview-components",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "A reusable design Lit components for case overview section.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -33,6 +33,7 @@
33
33
  "ajv": "^8.17.1",
34
34
  "chart.js": "4.4.7",
35
35
  "dotenv": "16.4.7",
36
+ "file-saver": "^2.0.5",
36
37
  "json-schema-to-ts": "^3.1.1",
37
38
  "lit": "3.2.0",
38
39
  "lodash": "4.17.21",
@@ -55,6 +56,7 @@
55
56
  "@storybook/theming": "8.6.14",
56
57
  "@storybook/web-components": "8.6.14",
57
58
  "@storybook/web-components-vite": "8.6.14",
59
+ "@types/file-saver": "^2.0.7",
58
60
  "@types/lodash": "^4.17.13",
59
61
  "@types/luxon": "^3.4.2",
60
62
  "@types/node": "^22.10.7",