overview-components 1.0.92 → 1.0.95

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 (117) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/___vite-browser-external.js +6 -0
  3. package/dist/_virtual/__vite-browser-external.js +4 -0
  4. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  5. package/dist/_virtual/_commonjsHelpers.js +28 -0
  6. package/dist/_virtual/index.js +4 -0
  7. package/dist/_virtual/lodash.js +4 -0
  8. package/dist/_virtual/pdf.js +4 -0
  9. package/dist/_virtual/react.production.js +4 -0
  10. package/dist/assets/generated/locales/de.js +73 -0
  11. package/dist/assets/generated/locales/en.js +73 -0
  12. package/dist/assets/generated/locales/fr.js +73 -0
  13. package/dist/assets/generated/locales/hr.js +73 -0
  14. package/dist/assets/generated/locales/it.js +73 -0
  15. package/dist/assets/generated/locales/pl.js +73 -0
  16. package/dist/assets/generated/locales/ro.js +73 -0
  17. package/dist/assets/generated/locales/sk.js +73 -0
  18. package/dist/assets/generated/locales/sr.js +73 -0
  19. package/dist/components/lit-attachments-tab.js +519 -0
  20. package/dist/components/lit-badge.js +100 -0
  21. package/dist/components/lit-case-variables-tab.js +727 -0
  22. package/dist/components/lit-chart.js +395 -0
  23. package/dist/components/lit-data-grid-tanstack.js +1733 -0
  24. package/dist/components/lit-filter-modal.js +312 -0
  25. package/dist/components/lit-multiselect-item.js +530 -0
  26. package/dist/components/lit-section-tab.js +133 -0
  27. package/dist/components/lit-tabs-overview.js +304 -0
  28. package/dist/components/react-wrappers/attachments-tab.js +14 -0
  29. package/dist/components/react-wrappers/badge.js +14 -0
  30. package/dist/components/react-wrappers/button.js +14 -0
  31. package/dist/components/react-wrappers/case-variables-tab.js +14 -0
  32. package/dist/components/react-wrappers/chart.js +14 -0
  33. package/dist/components/react-wrappers/data-grid-tanstack.js +14 -0
  34. package/dist/components/react-wrappers/filter-modal.js +14 -0
  35. package/dist/components/react-wrappers/progress-bar.js +14 -0
  36. package/dist/components/react-wrappers/section-tab.js +14 -0
  37. package/dist/components/react-wrappers/tabs-overview.js +14 -0
  38. package/dist/index.js +42 -0
  39. package/dist/libs/xlsx.mini.min.js +10 -0
  40. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  41. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  42. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  43. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  44. package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
  45. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  46. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  47. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  48. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  49. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  50. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  51. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  52. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  53. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  54. package/dist/node_modules/@lit/react/create-component.js +35 -0
  55. package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
  56. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  57. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  58. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  59. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  60. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  61. package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
  62. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  63. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  64. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  65. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  66. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  67. package/dist/node_modules/chart.js/dist/chart.js +7122 -0
  68. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
  69. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  70. package/dist/node_modules/lit-element/lit-element.js +51 -0
  71. package/dist/node_modules/lit-html/async-directive.js +69 -0
  72. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  73. package/dist/node_modules/lit-html/directive.js +27 -0
  74. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  75. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  76. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  77. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  78. package/dist/node_modules/lit-html/lit-html.js +243 -0
  79. package/dist/node_modules/lodash/lodash.js +3678 -0
  80. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  81. package/dist/node_modules/luxon/src/duration.js +723 -0
  82. package/dist/node_modules/luxon/src/errors.js +40 -0
  83. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  84. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  85. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  86. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  87. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  88. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  89. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  90. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  91. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  92. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  93. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  94. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  95. package/dist/node_modules/luxon/src/info.js +180 -0
  96. package/dist/node_modules/luxon/src/interval.js +466 -0
  97. package/dist/node_modules/luxon/src/settings.js +150 -0
  98. package/dist/node_modules/luxon/src/zone.js +88 -0
  99. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  100. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  101. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  102. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  103. package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
  104. package/dist/node_modules/react/cjs/react.production.js +417 -0
  105. package/dist/node_modules/react/index.js +10 -0
  106. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  107. package/dist/shared/lit-button.js +142 -0
  108. package/dist/shared/lit-progress-bar.js +83 -0
  109. package/dist/shared/simple-tooltip.js +174 -0
  110. package/dist/shared/styles/button-shared-styles.js +205 -0
  111. package/dist/utils/currency.js +13 -0
  112. package/dist/utils/custom-filters.js +50 -0
  113. package/dist/utils/date.js +15 -0
  114. package/dist/utils/getOperatorByType.js +52 -0
  115. package/dist/utils/localization.js +30 -0
  116. package/dist/vite.svg +1 -0
  117. package/package.json +76 -74
@@ -0,0 +1,530 @@
1
+ import { customElement as C } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
2
+ import { property as m } from "../node_modules/@lit/reactive-element/decorators/property.js";
3
+ import { state as y } from "../node_modules/@lit/reactive-element/decorators/state.js";
4
+ import "../node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { html as v } from "../node_modules/lit-html/lit-html.js";
6
+ import { LitElement as L } from "../node_modules/lit-element/lit-element.js";
7
+ import { msg as S } from "../node_modules/@lit/localize/init/install.js";
8
+ import "../node_modules/@lit/localize/init/runtime.js";
9
+ import R from "../node_modules/sortablejs/modular/sortable.esm.js";
10
+ import { l as K } from "../node_modules/lodash/lodash.js";
11
+ import { css as T } from "../node_modules/@lit/reactive-element/css-tag.js";
12
+ var k = Object.defineProperty, F = Object.getOwnPropertyDescriptor, a = (t, e, l, i) => {
13
+ for (var s = i > 1 ? void 0 : i ? F(e, l) : e, r = t.length - 1, h; r >= 0; r--)
14
+ (h = t[r]) && (s = (i ? h(e, l, s) : h(s)) || s);
15
+ return i && s && k(e, l, s), s;
16
+ };
17
+ let n = class extends L {
18
+ constructor() {
19
+ super(...arguments), this.value = [], this.options = [], this.label = "", this.rightLabel = "", this.allowRightSearch = !1, this.allowSelectAll = !1, this.showRightTotal = !1, this.autoSearch = !0, this.enableAssignmentsOrdering = !0, this.onChange = (t) => {
20
+ }, this.filterText = "", this.filterTextRight = "", this.appliedFilterText = "", this.appliedFilterTextRight = "", this.selectedLeftKeys = [], this.selectedRightKeys = [], this.lastSelectedIndexLeft = null, this.lastSelectedIndexRight = null, this.sortableInstances = [], this.sortableGroupId = `group-${Math.random().toString(36).substring(2, 9)}`;
21
+ }
22
+ connectedCallback() {
23
+ super.connectedCallback();
24
+ }
25
+ disconnectedCallback() {
26
+ super.disconnectedCallback(), this.destroySortables();
27
+ }
28
+ updated(t) {
29
+ this.enableAssignmentsOrdering && (t.has("value") || t.has("options")) && this.initSortables();
30
+ }
31
+ firstUpdated() {
32
+ this.enableAssignmentsOrdering && this.initSortables();
33
+ }
34
+ destroySortables() {
35
+ this.sortableInstances.forEach((t) => t.destroy()), this.sortableInstances = [];
36
+ }
37
+ initSortables() {
38
+ this.updateComplete.then(() => {
39
+ var d, c;
40
+ this.destroySortables();
41
+ const t = (d = this.shadowRoot) == null ? void 0 : d.querySelector("#left-list"), e = (c = this.shadowRoot) == null ? void 0 : c.querySelector("#right-list");
42
+ if (!t || !e) return;
43
+ let l = [], i = [];
44
+ const s = {
45
+ group: {
46
+ name: this.sortableGroupId,
47
+ pull: !0,
48
+ put: !0
49
+ },
50
+ animation: 150,
51
+ handle: ".drag-handle",
52
+ onStart: (o) => {
53
+ l = Array.from(o.from.childNodes);
54
+ },
55
+ onMove: (o) => {
56
+ o.to !== o.from && i.length === 0 && (i = Array.from(o.to.childNodes));
57
+ },
58
+ onEnd: (o) => {
59
+ o.from && l.length > 0 && (o.from.innerHTML = "", l.forEach((f) => o.from.appendChild(f))), o.to && o.to !== o.from && i.length > 0 && (o.to.innerHTML = "", i.forEach((f) => o.to.appendChild(f))), this.updateDataAfterDrag(o), this.requestUpdate();
60
+ }
61
+ }, r = R.create(t, s), h = R.create(e, s);
62
+ this.sortableInstances.push(r, h);
63
+ });
64
+ }
65
+ updateDataAfterDrag(t) {
66
+ var I;
67
+ const { from: e, to: l, oldIndex: i, newIndex: s } = t, r = e.id === "left-list" ? "left" : "right", h = l.id === "left-list" ? "left" : "right", d = t.item.getAttribute("id"), c = [...this.options, ...this.value], o = c.find((p) => String(p.value) === d);
68
+ if (!o) return;
69
+ const f = r === "left" ? this.selectedLeftKeys : this.selectedRightKeys, w = f.includes(o.value), b = w ? c.filter((p) => f.includes(p.value)) : [o];
70
+ if (r === h) {
71
+ const p = r === "left" ? [...this.options] : [...this.value];
72
+ if (w) {
73
+ const u = p.filter((g) => !f.includes(g.value));
74
+ u.splice(s, 0, ...b), r === "left" ? this.options = u : this.value = u;
75
+ } else {
76
+ const [u] = p.splice(i, 1);
77
+ p.splice(s, 0, u), r === "left" ? this.options = p : this.value = p;
78
+ }
79
+ } else if (r === "left") {
80
+ const p = this.options.filter(
81
+ (g) => !b.some((x) => x.value === g.value)
82
+ ), u = [...this.value];
83
+ b.forEach((g, x) => {
84
+ u.some(($) => $.value === g.value) || u.splice(s + x, 0, g);
85
+ }), this.options = p, this.value = u;
86
+ } else {
87
+ const p = this.value.filter(
88
+ (g) => !b.some((x) => x.value === g.value)
89
+ ), u = [...this.options];
90
+ b.forEach((g, x) => {
91
+ u.some(($) => $.value === g.value) || u.splice(s + x, 0, g);
92
+ }), this.value = p, this.options = u;
93
+ }
94
+ (I = this.onChange) == null || I.call(this, this.value), this.dispatchEvent(
95
+ new CustomEvent("onChange", {
96
+ detail: this.value
97
+ })
98
+ ), this.selectedLeftKeys = [], this.selectedRightKeys = [];
99
+ }
100
+ onInputChange(t, e) {
101
+ const l = t.detail.toLowerCase();
102
+ e === "left" ? (this.filterText = l, this.autoSearch && (this.appliedFilterText = l)) : (this.filterTextRight = l, this.autoSearch && (this.appliedFilterTextRight = l));
103
+ }
104
+ onInputKeyDown(t, e) {
105
+ !this.autoSearch && t.key === "Enter" && (e === "left" ? this.appliedFilterText = this.filterText : this.appliedFilterTextRight = this.filterTextRight);
106
+ }
107
+ getItemsForSide(t) {
108
+ return t === "left" ? this.options : this.value ?? [];
109
+ }
110
+ getSelectedKeysForSide(t) {
111
+ return t === "left" ? this.selectedLeftKeys : this.selectedRightKeys;
112
+ }
113
+ toggleSelection(t, e, l) {
114
+ const i = this.getItemsForSide(e), s = this.getSelectedKeysForSide(e), r = i.findIndex((c) => c.value === t.value), h = s.includes(t.value);
115
+ let d = [...s];
116
+ if (l != null && l.shiftKey) {
117
+ const c = e === "left" ? this.lastSelectedIndexLeft : this.lastSelectedIndexRight;
118
+ if (c !== null) {
119
+ const o = Math.min(c, r), f = Math.max(c, r), w = i.slice(o, f + 1).map((b) => b.value);
120
+ d = Array.from(/* @__PURE__ */ new Set([...d, ...w]));
121
+ }
122
+ } else
123
+ h ? d = s.filter((c) => c !== t.value) : d = [...s, t.value];
124
+ e === "left" ? (this.selectedLeftKeys = d, this.lastSelectedIndexLeft = r) : (this.selectedRightKeys = d, this.lastSelectedIndexRight = r);
125
+ }
126
+ areAllSelected(t) {
127
+ const e = this.getItemsForSide(t), l = this.getSelectedKeysForSide(t);
128
+ return e.length > 0 && e.every((i) => l.includes(i.value));
129
+ }
130
+ toggleSelectAll(t) {
131
+ const l = this.getItemsForSide(t).map((i) => i.value);
132
+ this.areAllSelected(t) ? t === "left" ? this.selectedLeftKeys = [] : this.selectedRightKeys = [] : t === "left" ? this.selectedLeftKeys = l : this.selectedRightKeys = l;
133
+ }
134
+ moveSelected(t, e) {
135
+ var c;
136
+ const l = this.getItemsForSide(t), i = this.getSelectedKeysForSide(t), s = l.filter((o) => i.includes(o.value)), h = [...this.getItemsForSide(e)];
137
+ s.forEach((o) => {
138
+ h.some((f) => f.value === o.value) || h.push(o);
139
+ });
140
+ const d = l.filter((o) => !i.includes(o.value));
141
+ t === "left" ? (this.options = d, this.selectedLeftKeys = [], this.value = h) : (this.value = d, this.selectedRightKeys = [], this.options = h), (c = this.onChange) == null || c.call(this, this.value), this.dispatchEvent(
142
+ new CustomEvent("onChange", {
143
+ detail: this.value
144
+ })
145
+ );
146
+ }
147
+ moveSingle(t, e, l) {
148
+ var i;
149
+ e === "left" ? (this.options = this.options.filter((s) => s.value !== t.value), (this.value ?? []).some((s) => s.value === t.value) || (this.value = [...this.value ?? [], t]), this.selectedLeftKeys = this.selectedLeftKeys.filter((s) => s !== t.value), this.appliedFilterTextRight = "") : (this.value = (this.value ?? []).filter((s) => s.value !== t.value), this.options.some((s) => s.value === t.value) || (this.options = [...this.options, t]), this.selectedRightKeys = this.selectedRightKeys.filter((s) => s !== t.value), this.appliedFilterText = ""), (i = this.onChange) == null || i.call(this, this.value), this.dispatchEvent(
150
+ new CustomEvent("onChange", {
151
+ detail: this.value
152
+ })
153
+ );
154
+ }
155
+ render() {
156
+ var t;
157
+ return v`<div class="container">
158
+ <div class="wrapper">
159
+ <label class="label">${this.label}</label>
160
+ <div class="tab">
161
+ <div class="input">
162
+ <lit-input
163
+ placeholder=${S("Napr. fakturace...")}
164
+ .onInput=${(e) => this.onInputChange(
165
+ new CustomEvent("onInput", { detail: e }),
166
+ "left"
167
+ )}
168
+ @keydown=${(e) => this.onInputKeyDown(e, "left")}
169
+ .onClear=${() => {
170
+ this.filterText = "", this.appliedFilterText = "";
171
+ }}
172
+ .size="medium"
173
+ ></lit-input>
174
+ </div>
175
+
176
+ <div class="content">
177
+ <lit-menu tabindex="0" id="left-list">
178
+ ${this.options.filter((e) => {
179
+ const l = e.title.toLowerCase(), i = this.appliedFilterText.toLowerCase();
180
+ return l.includes(i);
181
+ }).map((e) => {
182
+ const l = this.selectedLeftKeys.includes(e.value);
183
+ return v`
184
+ <lit-menu-item
185
+ class="no-select"
186
+ .key="${e.value}"
187
+ .id="${e.value}"
188
+ @click=${(i) => this.toggleSelection(e, "left", i)}
189
+ .isSelected=${l}
190
+ >
191
+ <div class="item">
192
+ <div class="item-text">${e.title}</div>
193
+
194
+ <div class="add-minus-icon">
195
+ ${this.enableAssignmentsOrdering ? v`
196
+ <div class="drag-handle">
197
+ <lit-icon
198
+ icon="hamburger"
199
+ size="1rem"
200
+ @click=${(i) => {
201
+ i.stopPropagation();
202
+ }}
203
+ ></lit-icon>
204
+ </div>
205
+ ` : null}
206
+
207
+ <lit-icon
208
+ .icon="${"add"}"
209
+ size="1rem"
210
+ @click=${(i) => {
211
+ i.stopPropagation(), this.moveSingle(e, "left", "right");
212
+ }}
213
+ ></lit-icon>
214
+ </div>
215
+ </div>
216
+ </lit-menu-item>
217
+ `;
218
+ })}
219
+ </lit-menu>
220
+ </div>
221
+
222
+ <div class="footer">
223
+ <div class="checkbox">
224
+ ${this.allowSelectAll ? v`
225
+ <lit-checkbox
226
+ .checked=${this.areAllSelected("left")}
227
+ @click=${() => this.toggleSelectAll("left")}
228
+ ></lit-checkbox>
229
+ <label>${S("Označit vše")}</label>
230
+ ` : null}
231
+ </div>
232
+
233
+ <div class="count">
234
+ <label>${S("celkem") + ":"}</label>
235
+ <label>${this.options.length}</label>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ <div class="wrapper middle">
241
+ <lit-icon-button
242
+ .variant="${"text"}"
243
+ .icon="${"add"}"
244
+ @click=${() => this.moveSelected("left", "right")}
245
+ .disabled="${K.isEmpty(this.selectedLeftKeys)}"
246
+ ></lit-icon-button>
247
+ <lit-icon-button
248
+ .variant="${"text"}"
249
+ .icon="${"minus"}"
250
+ @click=${() => this.moveSelected("right", "left")}
251
+ .disabled="${K.isEmpty(this.selectedRightKeys)}"
252
+ ></lit-icon-button>
253
+ </div>
254
+ <div class="wrapper">
255
+ <label class="label">${this.rightLabel}</label>
256
+ <div class="tab">
257
+ <div class="input">
258
+ ${this.allowRightSearch ? v`
259
+ <lit-input
260
+ placeholder=${S("Napr. fakturace...")}
261
+ .onInput=${(e) => this.onInputChange(
262
+ new CustomEvent("onInput", { detail: e }),
263
+ "right"
264
+ )}
265
+ @keydown=${(e) => this.onInputKeyDown(e, "right")}
266
+ .onClear=${() => {
267
+ this.filterTextRight = "", this.appliedFilterTextRight = "";
268
+ }}
269
+ .size="medium"
270
+ ></lit-input>
271
+ ` : null}
272
+ </div>
273
+ <div class="content">
274
+ <lit-menu tabindex="1" id="right-list">
275
+ ${(this.value ?? []).filter((e) => {
276
+ const l = e.title.toLowerCase(), i = this.appliedFilterTextRight.toLowerCase();
277
+ return l.includes(i);
278
+ }).map((e) => {
279
+ const l = this.selectedRightKeys.includes(e.value);
280
+ return v`
281
+ <lit-menu-item
282
+ class="no-select"
283
+ .key="${e.value}"
284
+ id="${e.value}"
285
+ @click=${(i) => this.toggleSelection(e, "right", i)}
286
+ .isSelected=${l}
287
+ >
288
+ <div class="item">
289
+ <div class="item-text">${e.title}</div>
290
+ <div class="add-minus-icon">
291
+ ${this.enableAssignmentsOrdering ? v`
292
+ <div class="drag-handle">
293
+ <lit-icon
294
+ icon="hamburger"
295
+ size="1rem"
296
+ @click=${(i) => {
297
+ i.stopPropagation();
298
+ }}
299
+ ></lit-icon>
300
+ </div>
301
+ ` : null}
302
+ <lit-icon
303
+ .icon="${"minus"}"
304
+ size="1rem"
305
+ @click=${(i) => {
306
+ i.stopPropagation(), this.moveSingle(e, "right", "left");
307
+ }}
308
+ ></lit-icon>
309
+ </div>
310
+ </div>
311
+ </lit-menu-item>
312
+ `;
313
+ })}
314
+ </lit-menu>
315
+ </div>
316
+ <div class="footer">
317
+ <div class="checkbox">
318
+ ${this.allowSelectAll ? v`
319
+ <lit-checkbox
320
+ .checked=${this.areAllSelected("right")}
321
+ @click=${() => this.toggleSelectAll("right")}
322
+ ></lit-checkbox>
323
+ <label>${S("Označit vše")}</label>
324
+ ` : null}
325
+ </div>
326
+
327
+ <div class="count">
328
+ ${this.showRightTotal ? v`
329
+ <label>${S("celkem") + ":"}</label>
330
+ <label>${((t = this.value) == null ? void 0 : t.length) ?? 0}</label>
331
+ ` : null}
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+ </div>`;
337
+ }
338
+ };
339
+ n.styles = [
340
+ T`
341
+ @media (max-width: 600px) {
342
+ .container {
343
+ flex-direction: column;
344
+ }
345
+ .wrapper.middle {
346
+ flex-direction: row !important;
347
+ justify-content: center;
348
+ height: auto !important;
349
+ padding-top: 0 !important;
350
+ }
351
+ }
352
+
353
+ .container {
354
+ display: flex;
355
+ justify-content: space-between;
356
+ width: 100%;
357
+ height: 100%;
358
+ gap: 0.375rem;
359
+ }
360
+
361
+ .wrapper {
362
+ display: flex;
363
+ flex-direction: column;
364
+ flex: 1 1 0;
365
+ height: 100%;
366
+ min-width: 0;
367
+ min-height: 0;
368
+ }
369
+
370
+ .wrapper.middle {
371
+ flex: 0 0 auto;
372
+ flex-direction: column;
373
+ padding-top: 2rem;
374
+ gap: 0.5rem;
375
+ align-items: center;
376
+ }
377
+
378
+ .label {
379
+ font-weight: 500;
380
+ font-size: 14px;
381
+ color: var(--text-secondary, #5d6371);
382
+ line-height: 1.5rem;
383
+ padding-left: 0.875rem;
384
+ margin-bottom: 0.375rem;
385
+ }
386
+
387
+ .tab {
388
+ display: flex;
389
+ flex-direction: column;
390
+ height: 100%;
391
+ border-radius: var(--border-radius-small, 0.5rem);
392
+ border: 1px solid var(--border-primary, #d0d3db);
393
+ padding: 0.5rem;
394
+ gap: 0.5rem;
395
+ min-height: 0;
396
+ }
397
+
398
+ .input {
399
+ }
400
+
401
+ .content {
402
+ flex-grow: 1;
403
+ overflow: auto;
404
+ min-height: 0;
405
+ }
406
+
407
+ .footer {
408
+ border-top: 1px solid var(--border-primary, #d0d3db);
409
+ display: flex;
410
+ justify-content: space-between;
411
+ align-items: center;
412
+ min-height: 2.375rem;
413
+ }
414
+
415
+ .footer.csv {
416
+ justify-content: end;
417
+ }
418
+
419
+ .csv-icon {
420
+ padding-right: 0.5rem;
421
+ }
422
+
423
+ .checkbox {
424
+ display: flex;
425
+ align-items: center;
426
+ padding: 0.25rem 0.5rem;
427
+ gap: 0.375rem;
428
+ font-size: 12px;
429
+ font-weight: 500;
430
+ }
431
+
432
+ .count {
433
+ display: flex;
434
+ align-items: center;
435
+ padding: 0.25rem 0.5rem;
436
+ gap: 0.375rem;
437
+ font-size: 12px;
438
+ font-weight: 400;
439
+ }
440
+
441
+ .item {
442
+ display: flex;
443
+ width: 100%;
444
+ justify-content: space-between;
445
+ align-items: center;
446
+ }
447
+
448
+ .item-text {
449
+ overflow: hidden;
450
+ white-space: nowrap;
451
+ text-overflow: ellipsis;
452
+ }
453
+
454
+ .add-minus-icon {
455
+ visibility: hidden;
456
+ display: flex;
457
+ align-items: center;
458
+ gap: 0.5rem;
459
+ }
460
+
461
+ .item:hover .add-minus-icon {
462
+ visibility: visible;
463
+ }
464
+
465
+ .no-select {
466
+ user-select: none;
467
+ min-height: 2rem;
468
+ }
469
+ `
470
+ ];
471
+ a([
472
+ m({ type: Array })
473
+ ], n.prototype, "value", 2);
474
+ a([
475
+ m({ type: Array })
476
+ ], n.prototype, "options", 2);
477
+ a([
478
+ m({ type: String })
479
+ ], n.prototype, "label", 2);
480
+ a([
481
+ m({ type: String })
482
+ ], n.prototype, "rightLabel", 2);
483
+ a([
484
+ m({ type: Boolean })
485
+ ], n.prototype, "allowRightSearch", 2);
486
+ a([
487
+ m({ type: Boolean })
488
+ ], n.prototype, "allowSelectAll", 2);
489
+ a([
490
+ m({ type: Boolean })
491
+ ], n.prototype, "showRightTotal", 2);
492
+ a([
493
+ m({ type: Boolean })
494
+ ], n.prototype, "autoSearch", 2);
495
+ a([
496
+ m({ type: Boolean })
497
+ ], n.prototype, "enableAssignmentsOrdering", 2);
498
+ a([
499
+ m({ type: Function })
500
+ ], n.prototype, "onChange", 2);
501
+ a([
502
+ y()
503
+ ], n.prototype, "filterText", 2);
504
+ a([
505
+ y()
506
+ ], n.prototype, "filterTextRight", 2);
507
+ a([
508
+ y()
509
+ ], n.prototype, "appliedFilterText", 2);
510
+ a([
511
+ y()
512
+ ], n.prototype, "appliedFilterTextRight", 2);
513
+ a([
514
+ y()
515
+ ], n.prototype, "selectedLeftKeys", 2);
516
+ a([
517
+ y()
518
+ ], n.prototype, "selectedRightKeys", 2);
519
+ a([
520
+ y()
521
+ ], n.prototype, "lastSelectedIndexLeft", 2);
522
+ a([
523
+ y()
524
+ ], n.prototype, "lastSelectedIndexRight", 2);
525
+ n = a([
526
+ C("lit-multiselect-item")
527
+ ], n);
528
+ export {
529
+ n as LitMultiselectItem
530
+ };
@@ -0,0 +1,133 @@
1
+ import { customElement as d } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
2
+ import { property as a } from "../node_modules/@lit/reactive-element/decorators/property.js";
3
+ import { state as g } from "../node_modules/@lit/reactive-element/decorators/state.js";
4
+ import "../node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { html as c } from "../node_modules/lit-html/lit-html.js";
6
+ import { LitElement as m } from "../node_modules/lit-element/lit-element.js";
7
+ import { styleMap as h } from "../node_modules/lit-html/directives/style-map.js";
8
+ import { msg as b } from "../node_modules/@lit/localize/init/install.js";
9
+ import "../node_modules/@lit/localize/init/runtime.js";
10
+ import { css as u } from "../node_modules/@lit/reactive-element/css-tag.js";
11
+ var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, s = (i, t, n, r) => {
12
+ for (var o = r > 1 ? void 0 : r ? y(t, n) : t, l = i.length - 1, p; l >= 0; l--)
13
+ (p = i[l]) && (o = (r ? p(t, n, o) : p(o)) || o);
14
+ return r && o && f(t, n, o), o;
15
+ };
16
+ let e = class extends m {
17
+ constructor() {
18
+ super(...arguments), this.sx = {}, this.enableSettings = !1, this.userLang = "cs", this.allowedLang = ["cs"], this.onSettingsChanged = () => {
19
+ }, this.isOpenModal = !1;
20
+ }
21
+ connectedCallback() {
22
+ super.connectedCallback();
23
+ }
24
+ disconnectedCallback() {
25
+ super.disconnectedCallback();
26
+ }
27
+ onSettingsChangedCallback(i) {
28
+ var t;
29
+ this.settingsValue = { ...i }, (t = this.onSettingsChanged) == null || t.call(this, this.settingsValue);
30
+ }
31
+ toggleModal() {
32
+ this.isOpenModal = !this.isOpenModal;
33
+ }
34
+ render() {
35
+ var i, t, n;
36
+ return c` <div part="section-header-settings" class="section-header">
37
+ <lit-icon
38
+ size="1rem"
39
+ .icon="${((i = this.settingsValue) == null ? void 0 : i.titleIcon) || "documents"}"
40
+ ></lit-icon>
41
+ <div class="section-title">
42
+ ${((t = this.settingsValue) == null ? void 0 : t[`titleLabel_${this.userLang}`]) || ((n = this.settingsValue) == null ? void 0 : n.titleLabel) || b("Zadejte název")}
43
+ </div>
44
+ ${this.enableSettings ? c`
45
+ <lit-icon
46
+ style="cursor: pointer"
47
+ @click="${this.toggleModal}"
48
+ icon="cog"
49
+ size="1rem"
50
+ ></lit-icon>
51
+ ` : null}
52
+ </div>
53
+ <section-tab-settings
54
+ .settingsValue="${this.settingsValue}"
55
+ .onSettingsChangedModal="${this.onSettingsChangedCallback.bind(this)}"
56
+ .allowedLang="${this.allowedLang}"
57
+ .onClose="${() => {
58
+ this.isOpenModal = !1;
59
+ }}"
60
+ .isOpenModal="${this.isOpenModal}"
61
+ >
62
+ </section-tab-settings>
63
+
64
+ <div class="section-tab" style=${h(this.sx)}>
65
+ <slot></slot>
66
+ </div>`;
67
+ }
68
+ };
69
+ e.styles = [
70
+ u`
71
+ .section-tab {
72
+ background: var(--background-paper, #ffffff);
73
+ border-radius: 0.75rem;
74
+ padding: var(--section-padding, 0.75rem 1rem);
75
+ box-sizing: border-box;
76
+ width: 100%;
77
+ }
78
+
79
+ .section-header {
80
+ display: flex;
81
+ gap: 0.5rem;
82
+ align-items: center;
83
+ padding: 0.625rem 1rem 0.625rem 1rem;
84
+ text-transform: uppercase;
85
+ }
86
+
87
+ .section-title {
88
+ font-size: 0.6875rem;
89
+ color: var(--text-secondary, #5d6371);
90
+ font-weight: 600 !important;
91
+ }
92
+
93
+ .input-label {
94
+ margin: 0 0.5rem;
95
+ width: 18.75rem;
96
+ }
97
+
98
+ .popper-input {
99
+ margin-bottom: 0.5rem;
100
+ position: sticky;
101
+ top: 0;
102
+ background-color: var(--background-paper, #fff);
103
+ z-index: 1;
104
+ }
105
+ `
106
+ ];
107
+ s([
108
+ a({ type: Object })
109
+ ], e.prototype, "sx", 2);
110
+ s([
111
+ a({ type: Boolean })
112
+ ], e.prototype, "enableSettings", 2);
113
+ s([
114
+ a({ type: String })
115
+ ], e.prototype, "userLang", 2);
116
+ s([
117
+ a({ type: Array })
118
+ ], e.prototype, "allowedLang", 2);
119
+ s([
120
+ a({ type: Object })
121
+ ], e.prototype, "settingsValue", 2);
122
+ s([
123
+ a({ attribute: !1 })
124
+ ], e.prototype, "onSettingsChanged", 2);
125
+ s([
126
+ g()
127
+ ], e.prototype, "isOpenModal", 2);
128
+ e = s([
129
+ d("lit-section-tab")
130
+ ], e);
131
+ export {
132
+ e as LitSectionTab
133
+ };