overview-components 1.0.90 → 1.0.92

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 (56) hide show
  1. package/package.json +1 -1
  2. package/dist/assets/generated/locales/de.js +0 -73
  3. package/dist/assets/generated/locales/en.js +0 -73
  4. package/dist/assets/generated/locales/fr.js +0 -73
  5. package/dist/assets/generated/locales/hr.js +0 -73
  6. package/dist/assets/generated/locales/it.js +0 -73
  7. package/dist/assets/generated/locales/pl.js +0 -73
  8. package/dist/assets/generated/locales/ro.js +0 -73
  9. package/dist/assets/generated/locales/sk.js +0 -73
  10. package/dist/assets/generated/locales/sr.js +0 -73
  11. package/dist/components/lit-attachments-tab.js +0 -515
  12. package/dist/components/lit-badge.js +0 -97
  13. package/dist/components/lit-case-variables-tab.js +0 -723
  14. package/dist/components/lit-chart.js +0 -392
  15. package/dist/components/lit-data-grid-tanstack.js +0 -1728
  16. package/dist/components/lit-filter-modal.js +0 -308
  17. package/dist/components/lit-multiselect-item.js +0 -526
  18. package/dist/components/lit-section-tab.js +0 -129
  19. package/dist/components/lit-tabs-overview.js +0 -300
  20. package/dist/components/react-wrappers/attachments-tab.js +0 -14
  21. package/dist/components/react-wrappers/badge.js +0 -14
  22. package/dist/components/react-wrappers/button.js +0 -14
  23. package/dist/components/react-wrappers/case-variables-tab.js +0 -14
  24. package/dist/components/react-wrappers/chart.js +0 -14
  25. package/dist/components/react-wrappers/data-grid-tanstack.js +0 -14
  26. package/dist/components/react-wrappers/filter-modal.js +0 -14
  27. package/dist/components/react-wrappers/progress-bar.js +0 -14
  28. package/dist/components/react-wrappers/section-tab.js +0 -14
  29. package/dist/components/react-wrappers/tabs-overview.js +0 -14
  30. package/dist/index.js +0 -42
  31. package/dist/libs/xlsx.mini.min.js +0 -10
  32. package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -42
  33. package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
  34. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
  35. package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
  36. package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
  37. package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
  38. package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -249
  39. package/dist/node_modules/lit-html/async-directive.js +0 -69
  40. package/dist/node_modules/lit-html/directive-helpers.js +0 -45
  41. package/dist/node_modules/lit-html/directive.js +0 -27
  42. package/dist/node_modules/lit-html/directives/ref.js +0 -42
  43. package/dist/node_modules/lit-html/directives/repeat.js +0 -61
  44. package/dist/node_modules/lit-html/directives/style-map.js +0 -36
  45. package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
  46. package/dist/node_modules/lit-html/lit-html.js +0 -242
  47. package/dist/shared/lit-button.js +0 -139
  48. package/dist/shared/lit-progress-bar.js +0 -80
  49. package/dist/shared/simple-tooltip.js +0 -172
  50. package/dist/shared/styles/button-shared-styles.js +0 -202
  51. package/dist/utils/currency.js +0 -13
  52. package/dist/utils/custom-filters.js +0 -49
  53. package/dist/utils/date.js +0 -14
  54. package/dist/utils/getOperatorByType.js +0 -51
  55. package/dist/utils/localization.js +0 -30
  56. package/dist/vite.svg +0 -1
@@ -1,723 +0,0 @@
1
- import { LitElement as x, html as o, css as $ } from "lit";
2
- import { unsafeHTML as f } from "../node_modules/lit-html/directives/unsafe-html.js";
3
- import { styleMap as u } from "../node_modules/lit-html/directives/style-map.js";
4
- import { customElement as w } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
5
- import { property as g } from "../node_modules/@lit/reactive-element/decorators/property.js";
6
- import { state as b } from "../node_modules/@lit/reactive-element/decorators/state.js";
7
- import C from "sortablejs";
8
- import { repeat as S } from "../node_modules/lit-html/directives/repeat.js";
9
- import { tooltip as k } from "../shared/simple-tooltip.js";
10
- import { formatDate as L } from "../utils/date.js";
11
- import { formatCurrency as z } from "../utils/currency.js";
12
- import { setLocale as _ } from "../utils/localization.js";
13
- import { msg as v } from "@lit/localize";
14
- import { isEqual as I } from "lodash";
15
- var B = Object.defineProperty, O = Object.getOwnPropertyDescriptor, d = (t, r, e, i) => {
16
- for (var s = i > 1 ? void 0 : i ? O(r, e) : r, a = t.length - 1, p; a >= 0; a--)
17
- (p = t[a]) && (s = (i ? p(r, e, s) : p(s)) || s);
18
- return i && s && B(r, e, s), s;
19
- };
20
- let n = class extends x {
21
- constructor() {
22
- super(...arguments), this.rows = [], this.data = {}, this.hideTabWhen = !1, this.userLang = "cs", this.dateFormat = null, this.isLoading = !1, this.enableSettings = !1, this.gridVariables = !1, this.onSettingsChanged = (t) => {
23
- }, this.currentBreakpoint = this.getBreakpoint(), this.isOpen = !1, this.filterText = "", this.isMobile = window.innerWidth <= 600, this._resizeListener = this.handleResize.bind(this), this.sortableInstances = [], this.sortableGroupId = `group-${Math.random().toString(36).substring(2, 9)}`, this.backgroundColorOptions = [
24
- {
25
- backgroundColor: "transparent",
26
- border: "1px solid white"
27
- },
28
- {
29
- backgroundColor: "var(--color-success-light)",
30
- border: "1px solid var(--color-success-dark)"
31
- },
32
- {
33
- backgroundColor: "var(--color-error-light)",
34
- border: "1px solid var(--color-error-dark)"
35
- },
36
- {
37
- backgroundColor: "var(--color-warning-light)",
38
- border: "1px solid var(--color-warning-dark)"
39
- },
40
- {
41
- backgroundColor: "var(--color-info-light)",
42
- border: "1px solid var(--color-info-dark)"
43
- },
44
- {
45
- backgroundColor: "var(--color-primary-light)",
46
- border: "1px solid var(--color-primary-dark)"
47
- }
48
- ], this.language = "cs", this.BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"], this.handleSettingsChanged = (t) => {
49
- var r;
50
- (r = this.onSettingsChanged) == null || r.call(this, t);
51
- }, this.getHeaderActions = (t) => {
52
- var e, i;
53
- const r = ((e = t.size) == null ? void 0 : e.lg) ?? 1;
54
- return o`<div class="header-buttons">
55
- ${this.enableSettings ? o`
56
- <perf-tooltip placement="top">
57
- <lit-icon slot="trigger" icon="cog" size="1rem"></lit-icon>
58
- <div slot="tooltip">
59
- <div class="settings-buttons" style="justify-content: space-between">
60
- ${this.gridVariables ? o`<div></div>` : o`
61
- <div>
62
- ${[1, 2, 3, 4].map(
63
- (s) => o`
64
- <span
65
- @click=${() => this.setCellSize(
66
- s,
67
- t
68
- )}
69
- class="size-button ${r === s ? "size-button--active" : ""}"
70
- >
71
- ${s}
72
- </span>
73
- `
74
- )}
75
- </div>
76
- `}
77
-
78
- <lit-icon
79
- icon="trash"
80
- size="1rem"
81
- style="cursor: pointer"
82
- @click=${() => this.removeCellFromRows(t.field)}
83
- ></lit-icon>
84
- </div>
85
- <div class="color-label">${v("Barva pozadí")}:</div>
86
- <div class="settings-buttons">
87
- ${this.backgroundColorOptions.map(
88
- (s) => o`
89
- <div>
90
- <div
91
- @click=${() => this.setCellStyle(
92
- {
93
- backgroundColor: s.backgroundColor,
94
- borderRadius: "8px",
95
- border: s.border
96
- },
97
- t
98
- )}
99
- class="cell-background"
100
- style="background-color: ${s.backgroundColor}; border: ${s.border}"
101
- ></div>
102
- <div
103
- class="${this.isActiveBackground(
104
- t,
105
- s.backgroundColor
106
- ) ? "cell-background--active" : ""}"
107
- ></div>
108
- </div>
109
- `
110
- )}
111
- </div>
112
- <div class="color-label">${v("Tučné písmo")}:</div>
113
- <div class="settings-buttons">
114
- <span
115
- class="bold-toggle ${((i = t == null ? void 0 : t.valueStyle) == null ? void 0 : i.fontWeight) === "bold" ? "bold-toggle--active" : ""}"
116
- @click=${() => this.setFontWeight(t)}
117
- >
118
- B
119
- </span>
120
- </div>
121
- </div>
122
- </perf-tooltip>
123
-
124
- <div class="drag-handle">
125
- <lit-icon icon="hamburger" size="1rem"></lit-icon>
126
- </div>
127
- ` : null}
128
- </div>`;
129
- }, this.getHeaderLabel = (t) => o` <div
130
- style="${t != null && t.headerStyle ? u(t == null ? void 0 : t.headerStyle) : ""}"
131
- class="process-data-heading"
132
- >
133
- ${(t == null ? void 0 : t[`headerName_${this.userLang}`]) || (t == null ? void 0 : t.headerName) || ""}
134
- ${t.tooltip ? o`
135
- <lit-icon
136
- ${k(
137
- (t == null ? void 0 : t[`tooltip_${this.userLang}`]) ?? (t == null ? void 0 : t.tooltip),
138
- "right",
139
- 100
140
- )}
141
- size="12px"
142
- icon="informative"
143
- ></lit-icon>
144
- ` : ""}
145
- </div>`, this.getHeader = (t) => o` <div class="header-cell">
146
- ${this.getHeaderLabel(t)} ${this.getHeaderActions(t)}
147
- </div>`, this.getCellButton = (t) => o`
148
- <div style="display: flex; justify-content: space-between">
149
- <lit-button
150
- style="flex-grow: 1; margin-right: 0.5rem"
151
- .fullWidth="${t.buttonFullWidth}"
152
- variant="${t.buttonVariant || "contained"}"
153
- label="${t == null ? void 0 : t.headerName}"
154
- @click=${t == null ? void 0 : t.buttonFn}
155
- ></lit-button>
156
- ${this.getHeaderActions(t)}
157
- </div>
158
- `, this.getCellLink = (t) => o`<div>${this.getHeader(t)}</div>
159
- <a class="link" href=${t != null && t.value ? t.value : ""} target="_blank"
160
- >${t != null && t.value ? t.value : ""}
161
- </a> `, this.getCellValue = (t) => {
162
- const r = (t == null ? void 0 : t[`value_${this.userLang}`]) || (t == null ? void 0 : t.value) || "", e = typeof r == "string" ? r : String(r ?? "");
163
- return o`<div>${this.getHeader(t)}</div>
164
- <div
165
- style="${t != null && t.valueStyle ? u(t == null ? void 0 : t.valueStyle) : ""}"
166
- class="process-data-value"
167
- >
168
- ${f(e)}
169
- </div> `;
170
- }, this.getCellDate = (t) => o`<div>${this.getHeader(t)}</div>
171
- <div
172
- style="${t != null && t.valueStyle ? u(t == null ? void 0 : t.valueStyle) : ""}"
173
- class="process-data-value"
174
- >
175
- ${t != null && t.value ? L(
176
- t.value,
177
- this.userLang || "cs",
178
- !!this.dateFormat,
179
- this.dateFormat
180
- ) : ""}
181
- </div> `, this.getCellCurrency = (t) => o`<div>${this.getHeader(t)}</div>
182
- <div
183
- style="${t != null && t.valueStyle ? u(t == null ? void 0 : t.valueStyle) : ""}"
184
- class="process-data-value"
185
- >
186
- ${t != null && t.value ? z(t.value, this.userLang || "cs") : ""}
187
- </div> `, this.getCellProgress = (t) => o`<div>${this.getHeader(t)}</div>
188
- <div
189
- style="${t != null && t.valueStyle ? u(t == null ? void 0 : t.valueStyle) : ""}"
190
- class="process-data-value"
191
- >
192
- <lit-progress-bar .progress="${t == null ? void 0 : t.value}"></lit-progress-bar>
193
- </div> `, this.getInlineCellValue = (t) => {
194
- const r = (t == null ? void 0 : t[`value_${this.userLang}`]) || (t == null ? void 0 : t.value) || "", e = typeof r == "string" ? r : String(r ?? "");
195
- return o`
196
- <div style="display: flex;align-items: center; justify-content: end; gap: 0.5rem">
197
- <div>${this.getHeaderLabel(t)}</div>
198
- <div
199
- style="${t != null && t.valueStyle ? u(t == null ? void 0 : t.valueStyle) : ""}"
200
- class="process-data-value"
201
- >
202
- ${f(e)}
203
- </div>
204
- <div>${this.getHeaderActions(t)}</div>
205
- </div>
206
- `;
207
- };
208
- }
209
- getBreakpoint() {
210
- const t = window.innerWidth;
211
- return t >= 1920 ? "xl" : t >= 1280 ? "lg" : t >= 960 ? "md" : t >= 600 ? "sm" : "xs";
212
- }
213
- // Function to handle resize events
214
- handleResize() {
215
- const t = this.getBreakpoint();
216
- t !== this.currentBreakpoint && (this.currentBreakpoint = t), this.isMobile = window.innerWidth <= 600;
217
- }
218
- connectedCallback() {
219
- var t, r;
220
- if (super.connectedCallback(), this.setLanguage(), window.addEventListener("resize", this._resizeListener), this.isMobile = window.innerWidth <= 600, !this.dateFormat) {
221
- const e = localStorage.getItem("userSettings"), i = e ? (r = (t = JSON.parse(e)) == null ? void 0 : t.state) == null ? void 0 : r.dateFormat : void 0;
222
- this.dateFormat = i;
223
- }
224
- }
225
- disconnectedCallback() {
226
- this.destroySortables(), window.removeEventListener("resize", this._resizeListener), super.disconnectedCallback();
227
- }
228
- firstUpdated() {
229
- this.enableSettings && this.initSortable();
230
- }
231
- setFontWeight(t) {
232
- var e;
233
- const r = ((e = t.valueStyle) == null ? void 0 : e.fontWeight) === "bold";
234
- t.valueStyle = {
235
- ...t.valueStyle || {},
236
- fontWeight: r ? "500" : "bold"
237
- }, this.rows = [...this.rows], this.handleSettingsChanged(this.rows);
238
- }
239
- setCellStyle(t, r) {
240
- r.cellStyle = t, this.rows = [...this.rows], this.handleSettingsChanged(this.rows);
241
- }
242
- destroySortables() {
243
- this.sortableInstances.forEach((t) => {
244
- t.destroy();
245
- }), this.sortableInstances = [];
246
- }
247
- initSortable() {
248
- this.updateComplete.then(() => {
249
- var r;
250
- const t = (r = this.shadowRoot) == null ? void 0 : r.querySelectorAll(".grid-container");
251
- t != null && t.length && t.forEach((e) => {
252
- let i = [];
253
- const s = C.create(e, {
254
- group: this.tabId || this.sortableGroupId,
255
- animation: 150,
256
- handle: ".drag-handle",
257
- ghostClass: "sortable-ghost",
258
- chosenClass: "sortable-chosen",
259
- dragClass: "sortable-drag",
260
- sort: !0,
261
- onStart: (a) => {
262
- i = Array.from(a.from.childNodes);
263
- },
264
- onEnd: (a) => {
265
- var c;
266
- a.from.innerHTML = "", i.forEach((y) => a.from.appendChild(y));
267
- const { oldIndex: p, newIndex: h } = a;
268
- if (p == null || h == null || p === h) return;
269
- const m = [...this.rows], [l] = m.splice(p, 1);
270
- m.splice(h, 0, l), this.rows = m, (c = this.handleSettingsChanged) == null || c.call(this, m);
271
- }
272
- });
273
- this.sortableInstances.push(s);
274
- });
275
- });
276
- }
277
- setLanguage() {
278
- const t = this.userLang || localStorage.getItem("userLang");
279
- t && _(t);
280
- }
281
- isActiveBackground(t, r) {
282
- var i;
283
- const e = (i = t == null ? void 0 : t.cellStyle) == null ? void 0 : i.backgroundColor;
284
- return !e && r === "transparent" ? !0 : e === r;
285
- }
286
- setCellSize(t, r) {
287
- r.size || (r.size = {}), r.size.lg = t, this.rows = [...this.rows], this.handleSettingsChanged(this.rows);
288
- }
289
- removeCellFromRows(t) {
290
- this.destroySortables();
291
- const r = this.rows.filter((e) => e.field !== t);
292
- this.rows = [], this.updateComplete.then(() => {
293
- this.rows = [...r], this.initSortable(), this.handleSettingsChanged(this.rows);
294
- });
295
- }
296
- closePopover() {
297
- this.isOpen = !1;
298
- }
299
- toggleCustomPopover() {
300
- this.isOpen = !this.isOpen;
301
- }
302
- get existingFields() {
303
- return this.rows.flat().map((t) => t.field);
304
- }
305
- toggleRowCell(t) {
306
- var e;
307
- if (this.rows.some((i) => i.field === t))
308
- this.removeCellFromRows(t);
309
- else {
310
- const i = (e = this.data) == null ? void 0 : e[t];
311
- if (!i) return;
312
- const s = this.userLang || "cs", a = i[`tvar_name_${s}`] || i.tvar_name_cs || i.tvar_name, p = i[`tvar_tooltip_${s}`] || i.tvar_tooltip_cs || i.tvar_tooltip;
313
- let h;
314
- switch (i.ivar_type) {
315
- case "D":
316
- h = "date";
317
- break;
318
- case "progress":
319
- h = "progress";
320
- break;
321
- default:
322
- h = "string";
323
- }
324
- const m = {
325
- field: t,
326
- type: h,
327
- headerName: a,
328
- value: i.ivar_value,
329
- size: { xs: 4, sm: 2, md: 1, lg: 1, xl: 1 },
330
- tooltip: p
331
- }, l = [...this.rows];
332
- l.push(m), this.rows = l, this.handleSettingsChanged(l);
333
- }
334
- }
335
- render() {
336
- if (this.hideTabWhen) return null;
337
- const t = this.userLang || "cs", r = Object.keys(this.data || {}).filter((e) => {
338
- const i = this.data[e], s = (i == null ? void 0 : i[`tvar_name_${t}`]) || e;
339
- return e.toLowerCase().includes(this.filterText) || s.toLowerCase().includes(this.filterText);
340
- });
341
- return o`
342
- ${this.isLoading ? o`<lit-loader></lit-loader>` : o`
343
- <div class="grid-container ${this.gridVariables ? "one-column" : ""}">
344
- ${S(
345
- this.rows,
346
- (e, i) => e.field,
347
- (e) => {
348
- const i = this.BREAKPOINTS.indexOf(this.currentBreakpoint), a = `cell--span${this.BREAKPOINTS.slice(0, i + 1).reverse().map((p) => {
349
- var h;
350
- return (h = e.size) == null ? void 0 : h[p];
351
- }).find((p) => p !== void 0) ?? 2} cell ${this.gridVariables ? "one-column" : ""}`;
352
- return o`
353
- <div
354
- class="${a}"
355
- style="${u(
356
- e.cellStyle || {}
357
- )}"
358
- data-field="${e.field}"
359
- >
360
- ${this.gridVariables ? this.getInlineCellValue(e) : (e == null ? void 0 : e.type) === "button" ? this.getCellButton(e) : e.type === "link" ? this.getCellLink(e) : e.type === "progress" ? this.getCellProgress(e) : e.type === "currency" ? this.getCellCurrency(e) : e.type === "date" ? this.getCellDate(e) : this.getCellValue(e)}
361
- </div>
362
- `;
363
- }
364
- )}
365
- </div>
366
- ${this.enableSettings ? o`
367
- <div style="text-align: right; margin-top: 1rem;">
368
- <lit-button
369
- variant="${"dashed"}"
370
- label="${v("Přiřadit proměnnou")}"
371
- icon="add"
372
- .fullWidth=${this.isMobile}
373
- @click="${this.toggleCustomPopover}"
374
- class="add-variable-button"
375
- ></lit-button>
376
-
377
- <simple-popper
378
- .showing=${this.isOpen}
379
- .placement=${"top-end"}
380
- .manualOpening=${!0}
381
- .maxWidthAsTarget=${!1}
382
- .onClose=${() => this.closePopover()}
383
- >
384
- <div
385
- class="popper-input"
386
- style="position: sticky; top: 0; z-index: 1;"
387
- >
388
- <lit-input
389
- .value=${this.filterText}
390
- .onInput=${(e) => {
391
- var i;
392
- this.filterText = ((i = e == null ? void 0 : e.toLowerCase) == null ? void 0 : i.call(e)) || "";
393
- }}
394
- .onClear=${() => {
395
- this.filterText = "";
396
- }}
397
- placeholder="${v("Zadejte název proměnné")}"
398
- .size=${"small"}
399
- ></lit-input>
400
- </div>
401
- <lit-menu tabindex="0">
402
- ${Object.keys(this.data || {}).filter((e) => {
403
- const i = this.data[e], s = this.userLang || "cs", a = (i == null ? void 0 : i[`tvar_name_${s}`]) || e;
404
- return e.toLowerCase().includes(this.filterText) || a.toLowerCase().includes(this.filterText);
405
- }).sort((e, i) => {
406
- const s = e.startsWith("_"), a = i.startsWith("_");
407
- return s && !a ? 1 : !s && a ? -1 : e.localeCompare(i);
408
- }).map(
409
- (e) => {
410
- var i, s;
411
- return o`
412
- <lit-menu-item
413
- .onClick=${() => this.toggleRowCell(e)}
414
- .isActive=${this.existingFields.includes(
415
- e
416
- )}
417
- >
418
- <span class="menu-item--multiple">
419
- <lit-checkbox
420
- class="cursor"
421
- .checked=${this.existingFields.includes(
422
- e
423
- )}
424
- ></lit-checkbox>
425
- ${((s = (i = this.data) == null ? void 0 : i[e]) == null ? void 0 : s[`tvar_name_${this.userLang}`]) || e}
426
- </span>
427
- </lit-menu-item>
428
- `;
429
- }
430
- )}
431
- </lit-menu>
432
-
433
- ${I(r.length, 0) ? o`
434
- <div
435
- style="display: flex;flex-direction: column; align-items: center"
436
- >
437
- <div
438
- style="max-height: 7.125rem; max-width: 7.125rem"
439
- >
440
- <not-found></not-found>
441
- </div>
442
- ${v("Nenalezeno")}
443
- </div>
444
- ` : null}
445
- </simple-popper>
446
- </div>
447
- ` : ""}
448
- `}
449
- `;
450
- }
451
- };
452
- n.styles = [
453
- // styles,
454
- $`
455
- :host {
456
- font-family: 'Inter', sans-serif;
457
- }
458
-
459
- .header-cell {
460
- min-height: 1.25rem;
461
- display: flex;
462
- justify-content: space-between;
463
- align-items: center;
464
- }
465
-
466
- .drag-handle {
467
- cursor: grab;
468
- opacity: 0.6;
469
- transition: opacity 0.2s;
470
- }
471
-
472
- .drag-handle:hover {
473
- opacity: 1;
474
- }
475
-
476
- .grid-container {
477
- display: grid;
478
- justify-content: start;
479
- align-items: start;
480
- gap: 0.5rem;
481
- border: 1px dashed transparent;
482
- border-radius: var(--border-radius-small, 8px);
483
- transition: border-color 0.2s;
484
- }
485
-
486
- .grid-container.sortable-drag-over {
487
- border-color: var(--color-primary-main, #76b703);
488
- }
489
-
490
- .process-data-heading {
491
- font-size: 0.75rem;
492
- color: var(--text-secondary, #5d6371);
493
- font-weight: 400 !important;
494
- display: flex;
495
- gap: 5px;
496
- align-items: center;
497
- }
498
-
499
- .process-data-value {
500
- min-height: 1.25rem;
501
- font-size: 0.8125rem;
502
- color: var(--text-primary, #111827);
503
- margin: 0;
504
- padding-top: 0.3125rem;
505
- font-weight: 500;
506
- }
507
-
508
- .status {
509
- color: var(--color-primary-main, #76b703);
510
- }
511
-
512
- .link {
513
- font-size: 0.8125rem;
514
- text-decoration: none;
515
- color: var(--text-primary, #111827);
516
- border-bottom: 0.0625rem solid var(--color-primary-main, #76b703);
517
- }
518
-
519
- .cell {
520
- padding: 0.375rem;
521
- border-radius: var(--border-radius-small, 8px);
522
- border: 1px solid transparent;
523
- transition: all 0.2s;
524
- min-height: 2.625rem;
525
- }
526
-
527
- .cell.one-column {
528
- min-height: 0 !important;
529
- }
530
-
531
- .cell.sortable-ghost {
532
- opacity: 0.5;
533
- border-color: var(--color-primary-main, #76b703);
534
- }
535
-
536
- .cell.sortable-chosen {
537
- transform: scale(1.02);
538
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
539
- }
540
-
541
- .link:hover {
542
- color: var(--color-primary-main, #76b703);
543
- }
544
-
545
- .settings-buttons {
546
- display: flex;
547
- align-items: center;
548
- }
549
-
550
- .header-buttons {
551
- display: flex;
552
- gap: 0.5rem;
553
- }
554
-
555
- .size-button {
556
- margin-right: 0.5rem;
557
- cursor: pointer;
558
- }
559
-
560
- .size-button--active {
561
- text-decoration: underline;
562
- font-weight: bold;
563
- }
564
-
565
- .popper-input {
566
- margin-bottom: 0.5rem;
567
- background-color: var(--background-paper, #fff);
568
- z-index: 1;
569
- }
570
-
571
- .cell-background {
572
- width: 14px;
573
- height: 14px;
574
- border-radius: 4px;
575
- border: 1px solid #ccc;
576
- cursor: pointer;
577
- margin-right: 0.5rem;
578
- }
579
-
580
- .bold-toggle {
581
- cursor: pointer;
582
- }
583
-
584
- .bold-toggle--active {
585
- text-decoration: underline;
586
- font-weight: bold;
587
- }
588
-
589
- .color-label {
590
- margin: 0.5rem 0 0.25rem 0;
591
- }
592
-
593
- .cell-background--active {
594
- border-bottom: 1px solid white;
595
- margin-top: 1px;
596
- margin-right: 0.5rem;
597
- }
598
-
599
- .grid-container.one-column {
600
- grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
601
- justify-content: end;
602
- }
603
-
604
- .grid-container.one-column .cell {
605
- grid-column: 4 / 5;
606
- }
607
-
608
- @media (max-width: 960px) {
609
- .grid-container.one-column .cell {
610
- grid-column: 3 / 5;
611
- }
612
- }
613
-
614
- @media (max-width: 600px) {
615
- .grid-container.one-column .cell {
616
- grid-column: 1 / -1;
617
- }
618
- }
619
-
620
- .add-variable-button {
621
- display: inline-block;
622
- }
623
-
624
- @media (max-width: 600px) {
625
- .add-variable-button {
626
- display: block;
627
- width: 100%;
628
- }
629
- }
630
-
631
- .cell--span1 {
632
- grid-column: span 1 / span 1;
633
- }
634
- .cell--span2 {
635
- grid-column: span 2 / span 2;
636
- }
637
- .cell--span3 {
638
- grid-column: span 3 / span 3;
639
- }
640
- .cell--span4 {
641
- grid-column: span 4 / span 4;
642
- }
643
-
644
- /* Responzívne nastavenie počtu stĺpcov */
645
- @media (min-width: 0px) {
646
- .grid-container {
647
- grid-template-columns: repeat(4, minmax(0, 1fr)); /* xs */
648
- }
649
- }
650
-
651
- @media (min-width: var(--breakpoint-sm, 600px)) {
652
- .grid-container {
653
- grid-template-columns: repeat(4, minmax(0, 1fr)); /* sm */
654
- }
655
- }
656
-
657
- @media (min-width: var(--breakpoint-md, 960px)) {
658
- .grid-container {
659
- grid-template-columns: repeat(4, minmax(0, 1fr)); /* md */
660
- }
661
- }
662
-
663
- @media (min-width: var(--breakpoint-lg, 1280px)) {
664
- .grid-container {
665
- grid-template-columns: repeat(4, minmax(0, 1fr)); /* lg */
666
- }
667
- }
668
-
669
- @media (min-width: var(--breakpoint-xl, 1536px)) {
670
- .grid-container {
671
- grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
672
- }
673
- }
674
- `
675
- ];
676
- d([
677
- g({ type: Array })
678
- ], n.prototype, "rows", 2);
679
- d([
680
- g({ type: Object })
681
- ], n.prototype, "data", 2);
682
- d([
683
- g({ type: Boolean })
684
- ], n.prototype, "hideTabWhen", 2);
685
- d([
686
- g({ type: String })
687
- ], n.prototype, "userLang", 2);
688
- d([
689
- g({ type: String })
690
- ], n.prototype, "dateFormat", 2);
691
- d([
692
- g({ type: Boolean })
693
- ], n.prototype, "isLoading", 2);
694
- d([
695
- g({ type: Boolean })
696
- ], n.prototype, "enableSettings", 2);
697
- d([
698
- g({ type: String })
699
- ], n.prototype, "tabId", 2);
700
- d([
701
- g({ type: Boolean })
702
- ], n.prototype, "gridVariables", 2);
703
- d([
704
- g({ type: Function })
705
- ], n.prototype, "onSettingsChanged", 2);
706
- d([
707
- b()
708
- ], n.prototype, "currentBreakpoint", 2);
709
- d([
710
- b()
711
- ], n.prototype, "isOpen", 2);
712
- d([
713
- b()
714
- ], n.prototype, "filterText", 2);
715
- d([
716
- b()
717
- ], n.prototype, "isMobile", 2);
718
- n = d([
719
- w("lit-case-variables-tab")
720
- ], n);
721
- export {
722
- n as LitCaseVariablesTab
723
- };