overview-components 1.0.93 → 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 (289) 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 +72 -70
  11. package/dist/assets/generated/locales/en.js +72 -70
  12. package/dist/assets/generated/locales/fr.js +72 -70
  13. package/dist/assets/generated/locales/hr.js +72 -70
  14. package/dist/assets/generated/locales/it.js +72 -70
  15. package/dist/assets/generated/locales/pl.js +72 -70
  16. package/dist/assets/generated/locales/ro.js +72 -70
  17. package/dist/assets/generated/locales/sk.js +72 -70
  18. package/dist/assets/generated/locales/sr.js +72 -70
  19. package/dist/components/lit-attachments-tab.js +271 -432
  20. package/dist/components/lit-badge.js +40 -40
  21. package/dist/components/lit-case-variables-tab.js +382 -497
  22. package/dist/components/lit-chart.js +378 -406
  23. package/dist/components/lit-data-grid-tanstack.js +1150 -1663
  24. package/dist/components/lit-filter-modal.js +198 -230
  25. package/dist/components/lit-multiselect-item.js +301 -477
  26. package/dist/components/lit-section-tab.js +73 -85
  27. package/dist/components/lit-tabs-overview.js +191 -232
  28. package/dist/components/react-wrappers/attachments-tab.js +13 -8
  29. package/dist/components/react-wrappers/badge.js +13 -8
  30. package/dist/components/react-wrappers/button.js +13 -8
  31. package/dist/components/react-wrappers/case-variables-tab.js +13 -8
  32. package/dist/components/react-wrappers/chart.js +13 -8
  33. package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
  34. package/dist/components/react-wrappers/filter-modal.js +13 -8
  35. package/dist/components/react-wrappers/progress-bar.js +13 -8
  36. package/dist/components/react-wrappers/section-tab.js +13 -8
  37. package/dist/components/react-wrappers/tabs-overview.js +13 -8
  38. package/dist/index.js +42 -43
  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 +66 -80
  108. package/dist/shared/lit-progress-bar.js +35 -33
  109. package/dist/shared/simple-tooltip.js +124 -198
  110. package/dist/shared/styles/button-shared-styles.js +8 -4
  111. package/dist/utils/currency.js +12 -15
  112. package/dist/utils/custom-filters.js +46 -80
  113. package/dist/utils/date.js +14 -21
  114. package/dist/utils/getOperatorByType.js +51 -65
  115. package/dist/utils/localization.js +29 -431
  116. package/dist/vite.svg +1 -0
  117. package/package.json +76 -74
  118. package/dist/assets/generated/locales/de.js.map +0 -1
  119. package/dist/assets/generated/locales/en.js.map +0 -1
  120. package/dist/assets/generated/locales/fr.js.map +0 -1
  121. package/dist/assets/generated/locales/hr.js.map +0 -1
  122. package/dist/assets/generated/locales/it.js.map +0 -1
  123. package/dist/assets/generated/locales/pl.js.map +0 -1
  124. package/dist/assets/generated/locales/ro.js.map +0 -1
  125. package/dist/assets/generated/locales/sk.js.map +0 -1
  126. package/dist/assets/generated/locales/sr.js.map +0 -1
  127. package/dist/assets/icons/iconGlyphs.js +0 -679
  128. package/dist/assets/icons/iconGlyphs.js.map +0 -1
  129. package/dist/assets/illustration/delete-illustration.js +0 -96
  130. package/dist/assets/illustration/delete-illustration.js.map +0 -1
  131. package/dist/assets/illustration/no-content.js +0 -167
  132. package/dist/assets/illustration/no-content.js.map +0 -1
  133. package/dist/assets/illustration/no-preview.js +0 -133
  134. package/dist/assets/illustration/no-preview.js.map +0 -1
  135. package/dist/assets/illustration/not-found.js +0 -106
  136. package/dist/assets/illustration/not-found.js.map +0 -1
  137. package/dist/assets/illustration/settings-illustration.js +0 -176
  138. package/dist/assets/illustration/settings-illustration.js.map +0 -1
  139. package/dist/components/components-settings/attachments-tab-settings.js +0 -226
  140. package/dist/components/components-settings/attachments-tab-settings.js.map +0 -1
  141. package/dist/components/components-settings/data-grid-settings.js +0 -318
  142. package/dist/components/components-settings/data-grid-settings.js.map +0 -1
  143. package/dist/components/components-settings/section-tab-settings.js +0 -269
  144. package/dist/components/components-settings/section-tab-settings.js.map +0 -1
  145. package/dist/components/components-settings/tabs-overview-settings.js +0 -439
  146. package/dist/components/components-settings/tabs-overview-settings.js.map +0 -1
  147. package/dist/components/lit-attachments-tab.js.map +0 -1
  148. package/dist/components/lit-badge.js.map +0 -1
  149. package/dist/components/lit-case-variables-tab.js.map +0 -1
  150. package/dist/components/lit-chart.js.map +0 -1
  151. package/dist/components/lit-data-grid-tanstack.js.map +0 -1
  152. package/dist/components/lit-filter-modal.js.map +0 -1
  153. package/dist/components/lit-multiselect-item.js.map +0 -1
  154. package/dist/components/lit-section-tab.js.map +0 -1
  155. package/dist/components/lit-tabs-overview.js.map +0 -1
  156. package/dist/components/modals/lit-confirm-modal.js +0 -120
  157. package/dist/components/modals/lit-confirm-modal.js.map +0 -1
  158. package/dist/components/modals/lit-delete-modal.js +0 -128
  159. package/dist/components/modals/lit-delete-modal.js.map +0 -1
  160. package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
  161. package/dist/components/react-wrappers/badge.js.map +0 -1
  162. package/dist/components/react-wrappers/button.js.map +0 -1
  163. package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
  164. package/dist/components/react-wrappers/chart.js.map +0 -1
  165. package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
  166. package/dist/components/react-wrappers/filter-modal.js.map +0 -1
  167. package/dist/components/react-wrappers/progress-bar.js.map +0 -1
  168. package/dist/components/react-wrappers/section-tab.js.map +0 -1
  169. package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
  170. package/dist/data/translations.js +0 -2763
  171. package/dist/data/translations.js.map +0 -1
  172. package/dist/index.js.map +0 -1
  173. package/dist/schemas/index.js +0 -17
  174. package/dist/schemas/index.js.map +0 -1
  175. package/dist/schemas/lit-attachments-tab-document.schema.js +0 -20
  176. package/dist/schemas/lit-attachments-tab-document.schema.js.map +0 -1
  177. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +0 -15
  178. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +0 -1
  179. package/dist/schemas/lit-attachments-tab.schema.js +0 -32
  180. package/dist/schemas/lit-attachments-tab.schema.js.map +0 -1
  181. package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
  182. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
  183. package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
  184. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
  185. package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
  186. package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
  187. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
  188. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
  189. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
  190. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
  191. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
  192. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
  193. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
  194. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
  195. package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
  196. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
  197. package/dist/schemas/lit-section-tab-schema.js +0 -24
  198. package/dist/schemas/lit-section-tab-schema.js.map +0 -1
  199. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +0 -6
  200. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +0 -1
  201. package/dist/schemas/lit-tabs-overview-tab.schema.js +0 -32
  202. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +0 -1
  203. package/dist/schemas/lit-tabs-overview.schema.js +0 -29
  204. package/dist/schemas/lit-tabs-overview.schema.js.map +0 -1
  205. package/dist/scripts/translate-locales.js +0 -69
  206. package/dist/scripts/translate-locales.js.map +0 -1
  207. package/dist/shared/filter-inputs.js +0 -427
  208. package/dist/shared/filter-inputs.js.map +0 -1
  209. package/dist/shared/lit-button.js.map +0 -1
  210. package/dist/shared/lit-case-variables-tab-cell.js +0 -226
  211. package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
  212. package/dist/shared/lit-checkbox.js +0 -171
  213. package/dist/shared/lit-checkbox.js.map +0 -1
  214. package/dist/shared/lit-custom-popper.js +0 -117
  215. package/dist/shared/lit-custom-popper.js.map +0 -1
  216. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
  217. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
  218. package/dist/shared/lit-data-grid-density-popover.js +0 -84
  219. package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
  220. package/dist/shared/lit-data-grid-export-popover.js +0 -68
  221. package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
  222. package/dist/shared/lit-data-grid-operators-popover.js +0 -114
  223. package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
  224. package/dist/shared/lit-data-grid-row-actions.js +0 -76
  225. package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
  226. package/dist/shared/lit-date-picker.js +0 -606
  227. package/dist/shared/lit-date-picker.js.map +0 -1
  228. package/dist/shared/lit-icon-button.js +0 -105
  229. package/dist/shared/lit-icon-button.js.map +0 -1
  230. package/dist/shared/lit-icon.js +0 -284
  231. package/dist/shared/lit-icon.js.map +0 -1
  232. package/dist/shared/lit-input.js +0 -239
  233. package/dist/shared/lit-input.js.map +0 -1
  234. package/dist/shared/lit-label.js +0 -104
  235. package/dist/shared/lit-label.js.map +0 -1
  236. package/dist/shared/lit-loader.js +0 -69
  237. package/dist/shared/lit-loader.js.map +0 -1
  238. package/dist/shared/lit-loading-bar.js +0 -127
  239. package/dist/shared/lit-loading-bar.js.map +0 -1
  240. package/dist/shared/lit-menu-item.js +0 -99
  241. package/dist/shared/lit-menu-item.js.map +0 -1
  242. package/dist/shared/lit-menu.js +0 -42
  243. package/dist/shared/lit-menu.js.map +0 -1
  244. package/dist/shared/lit-modal-body.js +0 -22
  245. package/dist/shared/lit-modal-body.js.map +0 -1
  246. package/dist/shared/lit-modal-footer.js +0 -29
  247. package/dist/shared/lit-modal-footer.js.map +0 -1
  248. package/dist/shared/lit-modal-header.js +0 -36
  249. package/dist/shared/lit-modal-header.js.map +0 -1
  250. package/dist/shared/lit-modal.js +0 -169
  251. package/dist/shared/lit-modal.js.map +0 -1
  252. package/dist/shared/lit-overflow-tooltip.js +0 -103
  253. package/dist/shared/lit-overflow-tooltip.js.map +0 -1
  254. package/dist/shared/lit-pill.js +0 -88
  255. package/dist/shared/lit-pill.js.map +0 -1
  256. package/dist/shared/lit-progress-bar.js.map +0 -1
  257. package/dist/shared/lit-responsive-button.js +0 -94
  258. package/dist/shared/lit-responsive-button.js.map +0 -1
  259. package/dist/shared/lit-select-field.js +0 -459
  260. package/dist/shared/lit-select-field.js.map +0 -1
  261. package/dist/shared/lit-select.js +0 -413
  262. package/dist/shared/lit-select.js.map +0 -1
  263. package/dist/shared/lit-settings.js +0 -77
  264. package/dist/shared/lit-settings.js.map +0 -1
  265. package/dist/shared/lit-text-field.js +0 -222
  266. package/dist/shared/lit-text-field.js.map +0 -1
  267. package/dist/shared/lit-toggle.js +0 -222
  268. package/dist/shared/lit-toggle.js.map +0 -1
  269. package/dist/shared/lit-tooltip.js +0 -166
  270. package/dist/shared/lit-tooltip.js.map +0 -1
  271. package/dist/shared/simple-popper.js +0 -266
  272. package/dist/shared/simple-popper.js.map +0 -1
  273. package/dist/shared/simple-tooltip.js.map +0 -1
  274. package/dist/shared/styles/button-shared-styles.js.map +0 -1
  275. package/dist/styles.js +0 -169
  276. package/dist/styles.js.map +0 -1
  277. package/dist/utils/currency.js.map +0 -1
  278. package/dist/utils/custom-filters.js.map +0 -1
  279. package/dist/utils/date.js.map +0 -1
  280. package/dist/utils/getOperatorByType.js.map +0 -1
  281. package/dist/utils/getOverviewValue.js +0 -177
  282. package/dist/utils/getOverviewValue.js.map +0 -1
  283. package/dist/utils/localization.js.map +0 -1
  284. package/dist/utils/utils.js +0 -13
  285. package/dist/utils/utils.js.map +0 -1
  286. package/dist/utils/validate-json-schema.js +0 -8
  287. package/dist/utils/validate-json-schema.js.map +0 -1
  288. package/dist/validators/validator.js +0 -7
  289. package/dist/validators/validator.js.map +0 -1
@@ -1,205 +1,161 @@
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;
1
+ import { customElement as f } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
2
+ import { property as c } from "../node_modules/@lit/reactive-element/decorators/property.js";
3
+ import { state as l } from "../node_modules/@lit/reactive-element/decorators/state.js";
4
+ import "../node_modules/@lit/reactive-element/reactive-element.js";
5
+ import { html as h } from "../node_modules/lit-html/lit-html.js";
6
+ import { LitElement as v } from "../node_modules/lit-element/lit-element.js";
7
+ import { msg as g } from "../node_modules/@lit/localize/init/install.js";
8
+ import "../node_modules/@lit/localize/init/runtime.js";
9
+ import y from "../node_modules/sortablejs/modular/sortable.esm.js";
10
+ import { css as C } from "../node_modules/@lit/reactive-element/css-tag.js";
11
+ var S = Object.defineProperty, T = Object.getOwnPropertyDescriptor, n = (t, e, a, o) => {
12
+ for (var s = o > 1 ? void 0 : o ? T(e, a) : e, d = t.length - 1, r; d >= 0; d--)
13
+ (r = t[d]) && (s = (o ? r(e, a, s) : r(s)) || s);
14
+ return o && s && S(e, a, s), s;
6
15
  };
7
- import { customElement, property, state } from 'lit/decorators.js';
8
- import { LitElement, html, css } from 'lit';
9
- import { msg } from '@lit/localize';
10
- import Sortable from 'sortablejs';
11
- // components
12
- import '../shared/lit-icon.js';
13
- import '../shared/lit-button.js';
14
- import '../assets/illustration/no-content.js';
15
- import './lit-section-tab.js';
16
- import './components-settings/tabs-overview-settings.js';
17
- import './modals/lit-delete-modal.js';
18
- let LitTabsOverview = class LitTabsOverview extends LitElement {
19
- constructor() {
20
- super(...arguments);
21
- this.tabs = [];
22
- this.enableSettings = false;
23
- this.userLang = 'cs';
24
- this.allowedLang = ['cs'];
25
- this.onSettingsChanged = () => { };
26
- this.selectedTabId = '';
27
- this.editTabId = '';
28
- this.deleteTabId = '';
29
- this.hasContentForTab = {};
30
- this.isOpenModal = false;
31
- this.isOpenDeleteModal = false;
32
- this.sortableInstances = [];
33
- this.isAddMode = false;
34
- this.sortableGroupId = `group-${Math.random().toString(36).substring(2, 9)}`;
35
- }
36
- connectedCallback() {
37
- super.connectedCallback();
38
- }
39
- disconnectedCallback() {
40
- this.destroySortables();
41
- super.disconnectedCallback();
42
- }
43
- destroySortables() {
44
- this.sortableInstances.forEach((instance) => instance.destroy());
45
- this.sortableInstances = [];
46
- }
47
- initSortable() {
48
- this.updateComplete.then(() => {
49
- const container = this.shadowRoot?.querySelector('.tabs-container');
50
- if (!container)
51
- return;
52
- let originalNodes = [];
53
- const sortable = Sortable.create(container, {
54
- group: this.sortableGroupId,
55
- animation: 150,
56
- handle: '.drag-handle',
57
- ghostClass: 'sortable-ghost',
58
- chosenClass: 'sortable-chosen',
59
- dragClass: 'sortable-drag',
60
- sort: true,
61
- onStart: (evt) => {
62
- originalNodes = Array.from(evt.from.childNodes);
63
- },
64
- onEnd: (evt) => {
65
- evt.from.innerHTML = '';
66
- originalNodes.forEach((node) => evt.from.appendChild(node));
67
- const { oldIndex, newIndex } = evt;
68
- if (oldIndex == null || newIndex == null || oldIndex === newIndex)
69
- return;
70
- const updated = [...this.tabs];
71
- const [moved] = updated.splice(oldIndex, 1);
72
- updated.splice(newIndex, 0, moved);
73
- this.tabs = updated;
74
- this.onSettingsChanged?.(updated);
75
- this.onSettingsChangedEvent(updated);
76
- },
77
- });
78
- this.sortableInstances.push(sortable);
79
- });
80
- }
81
- onSettingsChangedEvent(value) {
82
- this.dispatchEvent(new CustomEvent('onSettingsChanged', {
83
- bubbles: true,
84
- composed: true,
85
- detail: value,
86
- }));
87
- }
88
- selectTab(tabId) {
89
- this.selectedTabId = tabId;
90
- }
91
- firstUpdated() {
92
- if (this.initialSelectedTabId) {
93
- this.selectedTabId = this.initialSelectedTabId;
16
+ let i = class extends v {
17
+ constructor() {
18
+ super(...arguments), this.tabs = [], this.enableSettings = !1, this.userLang = "cs", this.allowedLang = ["cs"], this.onSettingsChanged = () => {
19
+ }, this.selectedTabId = "", this.editTabId = "", this.deleteTabId = "", this.hasContentForTab = {}, this.isOpenModal = !1, this.isOpenDeleteModal = !1, this.sortableInstances = [], this.isAddMode = !1, this.sortableGroupId = `group-${Math.random().toString(36).substring(2, 9)}`;
20
+ }
21
+ connectedCallback() {
22
+ super.connectedCallback();
23
+ }
24
+ disconnectedCallback() {
25
+ this.destroySortables(), super.disconnectedCallback();
26
+ }
27
+ destroySortables() {
28
+ this.sortableInstances.forEach((t) => t.destroy()), this.sortableInstances = [];
29
+ }
30
+ initSortable() {
31
+ this.updateComplete.then(() => {
32
+ var o;
33
+ const t = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".tabs-container");
34
+ if (!t) return;
35
+ let e = [];
36
+ const a = y.create(t, {
37
+ group: this.sortableGroupId,
38
+ animation: 150,
39
+ handle: ".drag-handle",
40
+ ghostClass: "sortable-ghost",
41
+ chosenClass: "sortable-chosen",
42
+ dragClass: "sortable-drag",
43
+ sort: !0,
44
+ onStart: (s) => {
45
+ e = Array.from(s.from.childNodes);
46
+ },
47
+ onEnd: (s) => {
48
+ var b;
49
+ s.from.innerHTML = "", e.forEach((u) => s.from.appendChild(u));
50
+ const { oldIndex: d, newIndex: r } = s;
51
+ if (d == null || r == null || d === r) return;
52
+ const p = [...this.tabs], [m] = p.splice(d, 1);
53
+ p.splice(r, 0, m), this.tabs = p, (b = this.onSettingsChanged) == null || b.call(this, p), this.onSettingsChangedEvent(p);
94
54
  }
95
- else if (this.tabs.length > 0) {
96
- this.selectedTabId = this.tabs[0].id;
97
- }
98
- if (this.enableSettings) {
99
- this.initSortable();
100
- }
101
- }
102
- handleSlotChange(e, tabId) {
103
- const slot = e.target;
104
- const assigned = slot.assignedNodes({ flatten: true });
105
- const hasContent = assigned.length > 0;
106
- this.hasContentForTab = {
107
- ...this.hasContentForTab,
108
- [tabId]: hasContent,
109
- };
110
- }
111
- toggleModal(id) {
112
- if (id) {
113
- this.editTabId = id;
114
- }
115
- this.isOpenModal = !this.isOpenModal;
116
- }
117
- onSettingsChangedCallback(value) {
118
- this.isAddMode = false;
119
- this.tabs = value ? [...value] : [];
120
- this.onSettingsChanged?.(this.tabs);
121
- this.onSettingsChangedEvent(this.tabs);
122
- }
123
- deleteTab(id) {
124
- this.tabs = this.tabs.filter((tab) => tab.id !== id);
125
- this.onSettingsChanged?.(this.tabs);
126
- this.onSettingsChangedEvent(this.tabs);
127
- this.isOpenDeleteModal = false;
128
- }
129
- render() {
130
- return html `
55
+ });
56
+ this.sortableInstances.push(a);
57
+ });
58
+ }
59
+ onSettingsChangedEvent(t) {
60
+ this.dispatchEvent(
61
+ new CustomEvent("onSettingsChanged", {
62
+ bubbles: !0,
63
+ composed: !0,
64
+ detail: t
65
+ })
66
+ );
67
+ }
68
+ selectTab(t) {
69
+ this.selectedTabId = t;
70
+ }
71
+ firstUpdated() {
72
+ this.initialSelectedTabId ? this.selectedTabId = this.initialSelectedTabId : this.tabs.length > 0 && (this.selectedTabId = this.tabs[0].id), this.enableSettings && this.initSortable();
73
+ }
74
+ handleSlotChange(t, e) {
75
+ const s = t.target.assignedNodes({ flatten: !0 }).length > 0;
76
+ this.hasContentForTab = {
77
+ ...this.hasContentForTab,
78
+ [e]: s
79
+ };
80
+ }
81
+ toggleModal(t) {
82
+ t && (this.editTabId = t), this.isOpenModal = !this.isOpenModal;
83
+ }
84
+ onSettingsChangedCallback(t) {
85
+ var e;
86
+ this.isAddMode = !1, this.tabs = t ? [...t] : [], (e = this.onSettingsChanged) == null || e.call(this, this.tabs), this.onSettingsChangedEvent(this.tabs);
87
+ }
88
+ deleteTab(t) {
89
+ var e;
90
+ this.tabs = this.tabs.filter((a) => a.id !== t), (e = this.onSettingsChanged) == null || e.call(this, this.tabs), this.onSettingsChangedEvent(this.tabs), this.isOpenDeleteModal = !1;
91
+ }
92
+ render() {
93
+ return h`
131
94
  <div class="tabs-wrapper">
132
95
  <div class="tabs-header">
133
96
  <div class="tabs-container">
134
- ${this.tabs.map((tab) => html `
97
+ ${this.tabs.map(
98
+ (t) => {
99
+ var e, a, o;
100
+ return h`
135
101
  <div class="tab">
136
- ${this.enableSettings
137
- ? html `<div class="drag-handle">
102
+ ${this.enableSettings ? h`<div class="drag-handle">
138
103
  <lit-icon
139
104
  style="cursor: pointer"
140
- icon="${'hamburger'}"
105
+ icon="${"hamburger"}"
141
106
  size="1rem"
142
107
  ></lit-icon>
143
- </div>`
144
- : null}
108
+ </div>` : null}
145
109
 
146
110
  <lit-button
147
111
  variant="text"
148
- label="${tab.label?.[this.userLang]
149
- ? tab.label?.[this.userLang]
150
- : tab.label?.default}"
151
- .icon="${tab.icon}"
152
- .active="${tab.id === this.selectedTabId ? 'active' : ''}"
153
- @click=${() => this.selectTab(tab.id)}
112
+ label="${(e = t.label) != null && e[this.userLang] ? (a = t.label) == null ? void 0 : a[this.userLang] : (o = t.label) == null ? void 0 : o.default}"
113
+ .icon="${t.icon}"
114
+ .active="${t.id === this.selectedTabId ? "active" : ""}"
115
+ @click=${() => this.selectTab(t.id)}
154
116
  >
155
117
  </lit-button>
156
- ${this.enableSettings
157
- ? html `<div
118
+ ${this.enableSettings ? h`<div
158
119
  style="display: flex;flex-direction: column;align-items: center"
159
120
  >
160
121
  <lit-icon
161
122
  style="cursor: pointer"
162
123
  @click="${() => {
163
- this.isAddMode = false;
164
- this.toggleModal(tab.id);
165
- }}"
166
- icon="${'pen'}"
124
+ this.isAddMode = !1, this.toggleModal(t.id);
125
+ }}"
126
+ icon="${"pen"}"
167
127
  size="1rem"
168
128
  ></lit-icon>
169
129
  <lit-icon
170
130
  style="cursor: pointer"
171
131
  @click="${() => {
172
- this.deleteTabId = tab.id;
173
- this.isOpenDeleteModal = true;
174
- }}"
175
- icon="${'trash'}"
132
+ this.deleteTabId = t.id, this.isOpenDeleteModal = !0;
133
+ }}"
134
+ icon="${"trash"}"
176
135
  size="1rem"
177
136
  ></lit-icon>
178
- </div> `
179
- : null}
137
+ </div> ` : null}
180
138
  </div>
181
- `)}
139
+ `;
140
+ }
141
+ )}
182
142
  </div>
183
- ${this.enableSettings
184
- ? html `
143
+ ${this.enableSettings ? h`
185
144
  <lit-icon-button
186
145
  variant="dashed"
187
146
  size="medium"
188
- .icon="${'add'}"
147
+ .icon="${"add"}"
189
148
  @click="${() => {
190
- this.isAddMode = true;
191
- this.toggleModal();
192
- }}"
149
+ this.isAddMode = !0, this.toggleModal();
150
+ }}"
193
151
  ></lit-icon-button>
194
- `
195
- : null}
152
+ ` : null}
196
153
  </div>
197
154
  <tabs-overview-settings
198
155
  .allowedLang="${this.allowedLang}"
199
156
  .onClose="${() => {
200
- this.isOpenModal = false;
201
- this.editTabId = '';
202
- }}"
157
+ this.isOpenModal = !1, this.editTabId = "";
158
+ }}"
203
159
  .isOpenModal="${this.isOpenModal}"
204
160
  .tabs="${this.tabs}"
205
161
  .selectedTabId="${this.editTabId}"
@@ -208,47 +164,49 @@ let LitTabsOverview = class LitTabsOverview extends LitElement {
208
164
  ></tabs-overview-settings>
209
165
  <lit-delete-modal
210
166
  .isOpen="${this.isOpenDeleteModal}"
211
- .text="${msg('Opravdu chcete tab odstranit?')}"
167
+ .text="${g("Opravdu chcete tab odstranit?")}"
212
168
  .onClose="${() => {
213
- this.isOpenDeleteModal = false;
214
- }}"
169
+ this.isOpenDeleteModal = !1;
170
+ }}"
215
171
  .onDelete="${() => {
216
- this.isOpenDeleteModal = false;
217
- this.deleteTab(this.deleteTabId);
218
- }}"
172
+ this.isOpenDeleteModal = !1, this.deleteTab(this.deleteTabId);
173
+ }}"
219
174
  ></lit-delete-modal>
220
175
  <div class="tabs-content">
221
- ${this.tabs.map((tab) => tab.id === this.selectedTabId
222
- ? html `
176
+ ${this.tabs.map(
177
+ (t) => {
178
+ var e, a, o;
179
+ return t.id === this.selectedTabId ? h`
223
180
  <div class="tab-panel">
224
181
  <slot
225
182
  class="tab-slot"
226
- name="${tab.id}"
227
- @slotchange=${(e) => this.handleSlotChange(e, tab.id)}
183
+ name="${t.id}"
184
+ @slotchange=${(s) => this.handleSlotChange(s, t.id)}
228
185
  ></slot>
229
186
 
230
- ${!this.hasContentForTab[tab.id]
231
- ? html `
187
+ ${this.hasContentForTab[t.id] ? null : h`
232
188
  <div class="no-content">
233
189
  <div
234
190
  style="max-height: 7.125rem; max-width: 7.125rem"
235
191
  >
236
192
  <no-content></no-content>
237
193
  </div>
238
- ${msg(`${tab.noContentText?.[this.userLang] ? tab.noContentText?.[this.userLang] : tab.noContentText?.default || 'Pro tento tab není momentálně k dispozici žádný obsah.'}`)}
194
+ ${g(
195
+ `${(e = t.noContentText) != null && e[this.userLang] ? (a = t.noContentText) == null ? void 0 : a[this.userLang] : ((o = t.noContentText) == null ? void 0 : o.default) || "Pro tento tab není momentálně k dispozici žádný obsah."}`
196
+ )}
239
197
  </div>
240
- `
241
- : null}
198
+ `}
242
199
  </div>
243
- `
244
- : null)}
200
+ ` : null;
201
+ }
202
+ )}
245
203
  </div>
246
204
  </div>
247
205
  `;
248
- }
206
+ }
249
207
  };
250
- LitTabsOverview.styles = [
251
- css `
208
+ i.styles = [
209
+ C`
252
210
  :host {
253
211
  font-family: 'Inter', sans-serif;
254
212
  }
@@ -294,52 +252,53 @@ LitTabsOverview.styles = [
294
252
  display: flex;
295
253
  align-items: center;
296
254
  }
297
- `,
255
+ `
298
256
  ];
299
- __decorate([
300
- property({ type: Array })
301
- ], LitTabsOverview.prototype, "tabs", void 0);
302
- __decorate([
303
- property({ type: String })
304
- ], LitTabsOverview.prototype, "initialSelectedTabId", void 0);
305
- __decorate([
306
- property({ type: Boolean })
307
- ], LitTabsOverview.prototype, "enableSettings", void 0);
308
- __decorate([
309
- property({ type: String })
310
- ], LitTabsOverview.prototype, "userLang", void 0);
311
- __decorate([
312
- property({ type: Array })
313
- ], LitTabsOverview.prototype, "allowedLang", void 0);
314
- __decorate([
315
- property({ attribute: false })
316
- ], LitTabsOverview.prototype, "onSettingsChanged", void 0);
317
- __decorate([
318
- state()
319
- ], LitTabsOverview.prototype, "selectedTabId", void 0);
320
- __decorate([
321
- state()
322
- ], LitTabsOverview.prototype, "editTabId", void 0);
323
- __decorate([
324
- state()
325
- ], LitTabsOverview.prototype, "deleteTabId", void 0);
326
- __decorate([
327
- state()
328
- ], LitTabsOverview.prototype, "hasContentForTab", void 0);
329
- __decorate([
330
- state()
331
- ], LitTabsOverview.prototype, "isOpenModal", void 0);
332
- __decorate([
333
- state()
334
- ], LitTabsOverview.prototype, "isOpenDeleteModal", void 0);
335
- __decorate([
336
- state()
337
- ], LitTabsOverview.prototype, "sortableInstances", void 0);
338
- __decorate([
339
- state()
340
- ], LitTabsOverview.prototype, "isAddMode", void 0);
341
- LitTabsOverview = __decorate([
342
- customElement('lit-tabs-overview')
343
- ], LitTabsOverview);
344
- export { LitTabsOverview };
345
- //# sourceMappingURL=lit-tabs-overview.js.map
257
+ n([
258
+ c({ type: Array })
259
+ ], i.prototype, "tabs", 2);
260
+ n([
261
+ c({ type: String })
262
+ ], i.prototype, "initialSelectedTabId", 2);
263
+ n([
264
+ c({ type: Boolean })
265
+ ], i.prototype, "enableSettings", 2);
266
+ n([
267
+ c({ type: String })
268
+ ], i.prototype, "userLang", 2);
269
+ n([
270
+ c({ type: Array })
271
+ ], i.prototype, "allowedLang", 2);
272
+ n([
273
+ c({ attribute: !1 })
274
+ ], i.prototype, "onSettingsChanged", 2);
275
+ n([
276
+ l()
277
+ ], i.prototype, "selectedTabId", 2);
278
+ n([
279
+ l()
280
+ ], i.prototype, "editTabId", 2);
281
+ n([
282
+ l()
283
+ ], i.prototype, "deleteTabId", 2);
284
+ n([
285
+ l()
286
+ ], i.prototype, "hasContentForTab", 2);
287
+ n([
288
+ l()
289
+ ], i.prototype, "isOpenModal", 2);
290
+ n([
291
+ l()
292
+ ], i.prototype, "isOpenDeleteModal", 2);
293
+ n([
294
+ l()
295
+ ], i.prototype, "sortableInstances", 2);
296
+ n([
297
+ l()
298
+ ], i.prototype, "isAddMode", 2);
299
+ i = n([
300
+ f("lit-tabs-overview")
301
+ ], i);
302
+ export {
303
+ i as LitTabsOverview
304
+ };
@@ -1,9 +1,14 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { LitAttachmentsTab } from '../lit-attachments-tab.js'; // Import Lit komponentu
4
- export const AttachmentsTab = createComponent({
5
- tagName: 'lit-attachments-tab', // Názov custom elementu
6
- elementClass: LitAttachmentsTab, // Trieda Lit komponentu
7
- react: React, // React objekt
1
+ import t from "../../node_modules/react/index.js";
2
+ import { createComponent as a } from "../../node_modules/@lit/react/create-component.js";
3
+ import { LitAttachmentsTab as e } from "../lit-attachments-tab.js";
4
+ const c = a({
5
+ tagName: "lit-attachments-tab",
6
+ // Názov custom elementu
7
+ elementClass: e,
8
+ // Trieda Lit komponentu
9
+ react: t
10
+ // React objekt
8
11
  });
9
- //# sourceMappingURL=attachments-tab.js.map
12
+ export {
13
+ c as AttachmentsTab
14
+ };
@@ -1,9 +1,14 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { LitBadge } from '../lit-badge.js'; // Import Lit komponentu
4
- export const Badge = createComponent({
5
- tagName: 'lit-badge', // Názov custom elementu
6
- elementClass: LitBadge, // Trieda Lit komponentu
7
- react: React, // React objekt
1
+ import e from "../../node_modules/react/index.js";
2
+ import { createComponent as t } from "../../node_modules/@lit/react/create-component.js";
3
+ import { LitBadge as o } from "../lit-badge.js";
4
+ const i = t({
5
+ tagName: "lit-badge",
6
+ // Názov custom elementu
7
+ elementClass: o,
8
+ // Trieda Lit komponentu
9
+ react: e
10
+ // React objekt
8
11
  });
9
- //# sourceMappingURL=badge.js.map
12
+ export {
13
+ i as Badge
14
+ };
@@ -1,9 +1,14 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { LitButton } from '../../shared/lit-button.js'; // Import Lit komponentu
4
- export const Button = createComponent({
5
- tagName: 'lit-button', // Názov custom elementu
6
- elementClass: LitButton, // Trieda Lit komponentu
7
- react: React, // React objekt
1
+ import t from "../../node_modules/react/index.js";
2
+ import { createComponent as o } from "../../node_modules/@lit/react/create-component.js";
3
+ import { LitButton as e } from "../../shared/lit-button.js";
4
+ const n = o({
5
+ tagName: "lit-button",
6
+ // Názov custom elementu
7
+ elementClass: e,
8
+ // Trieda Lit komponentu
9
+ react: t
10
+ // React objekt
8
11
  });
9
- //# sourceMappingURL=button.js.map
12
+ export {
13
+ n as Button
14
+ };
@@ -1,9 +1,14 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { LitCaseVariablesTab } from '../lit-case-variables-tab.js'; // Import Lit komponentu
4
- export const CaseVariablesTab = createComponent({
5
- tagName: 'lit-case-variables-tab', // Názov custom elementu
6
- elementClass: LitCaseVariablesTab, // Trieda Lit komponentu
7
- react: React, // React objekt
1
+ import a from "../../node_modules/react/index.js";
2
+ import { createComponent as e } from "../../node_modules/@lit/react/create-component.js";
3
+ import { LitCaseVariablesTab as t } from "../lit-case-variables-tab.js";
4
+ const m = e({
5
+ tagName: "lit-case-variables-tab",
6
+ // Názov custom elementu
7
+ elementClass: t,
8
+ // Trieda Lit komponentu
9
+ react: a
10
+ // React objekt
8
11
  });
9
- //# sourceMappingURL=case-variables-tab.js.map
12
+ export {
13
+ m as CaseVariablesTab
14
+ };
@@ -1,9 +1,14 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { LitChart } from '../lit-chart.js'; // Import Lit komponentu
4
- export const Chart = createComponent({
5
- tagName: 'lit-chart', // Názov custom elementu
6
- elementClass: LitChart, // Trieda Lit komponentu
7
- react: React, // React objekt
1
+ import t from "../../node_modules/react/index.js";
2
+ import { createComponent as r } from "../../node_modules/@lit/react/create-component.js";
3
+ import { LitChart as o } from "../lit-chart.js";
4
+ const c = r({
5
+ tagName: "lit-chart",
6
+ // Názov custom elementu
7
+ elementClass: o,
8
+ // Trieda Lit komponentu
9
+ react: t
10
+ // React objekt
8
11
  });
9
- //# sourceMappingURL=chart.js.map
12
+ export {
13
+ c as Chart
14
+ };
@@ -1,9 +1,14 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit-labs/react';
3
- import { LitDataGridTanstack } from '../lit-data-grid-tanstack.js'; // Import Lit komponentu
4
- export const DataGridTanstack = createComponent({
5
- tagName: 'lit-data-grid-tanstack', // Názov custom elementu
6
- elementClass: LitDataGridTanstack, // Trieda Lit komponentu
7
- react: React, // React objekt
1
+ import t from "../../node_modules/react/index.js";
2
+ import { createComponent as a } from "../../node_modules/@lit/react/create-component.js";
3
+ import { LitDataGridTanstack as r } from "../lit-data-grid-tanstack.js";
4
+ const i = a({
5
+ tagName: "lit-data-grid-tanstack",
6
+ // Názov custom elementu
7
+ elementClass: r,
8
+ // Trieda Lit komponentu
9
+ react: t
10
+ // React objekt
8
11
  });
9
- //# sourceMappingURL=data-grid-tanstack.js.map
12
+ export {
13
+ i as DataGridTanstack
14
+ };