overview-components 1.0.98 → 1.0.100

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 (282) hide show
  1. package/dist/assets/generated/locales/de.js +70 -72
  2. package/dist/assets/generated/locales/de.js.map +1 -0
  3. package/dist/assets/generated/locales/en.js +70 -72
  4. package/dist/assets/generated/locales/en.js.map +1 -0
  5. package/dist/assets/generated/locales/fr.js +70 -72
  6. package/dist/assets/generated/locales/fr.js.map +1 -0
  7. package/dist/assets/generated/locales/hr.js +70 -72
  8. package/dist/assets/generated/locales/hr.js.map +1 -0
  9. package/dist/assets/generated/locales/it.js +70 -72
  10. package/dist/assets/generated/locales/it.js.map +1 -0
  11. package/dist/assets/generated/locales/pl.js +70 -72
  12. package/dist/assets/generated/locales/pl.js.map +1 -0
  13. package/dist/assets/generated/locales/ro.js +70 -72
  14. package/dist/assets/generated/locales/ro.js.map +1 -0
  15. package/dist/assets/generated/locales/sk.js +70 -72
  16. package/dist/assets/generated/locales/sk.js.map +1 -0
  17. package/dist/assets/generated/locales/sr.js +70 -72
  18. package/dist/assets/generated/locales/sr.js.map +1 -0
  19. package/dist/assets/icons/iconGlyphs.js +678 -679
  20. package/dist/assets/icons/iconGlyphs.js.map +1 -0
  21. package/dist/assets/illustration/delete-illustration.js +96 -0
  22. package/dist/assets/illustration/delete-illustration.js.map +1 -0
  23. package/dist/assets/illustration/no-content.js +167 -0
  24. package/dist/assets/illustration/no-content.js.map +1 -0
  25. package/dist/assets/illustration/no-preview.js +133 -0
  26. package/dist/assets/illustration/no-preview.js.map +1 -0
  27. package/dist/assets/illustration/not-found.js +19 -22
  28. package/dist/assets/illustration/not-found.js.map +1 -0
  29. package/dist/assets/illustration/settings-illustration.js +176 -0
  30. package/dist/assets/illustration/settings-illustration.js.map +1 -0
  31. package/dist/components/components-settings/attachments-tab-settings.js +226 -0
  32. package/dist/components/components-settings/attachments-tab-settings.js.map +1 -0
  33. package/dist/components/components-settings/data-grid-settings.js +212 -182
  34. package/dist/components/components-settings/data-grid-settings.js.map +1 -0
  35. package/dist/components/components-settings/section-tab-settings.js +269 -0
  36. package/dist/components/components-settings/section-tab-settings.js.map +1 -0
  37. package/dist/components/components-settings/tabs-overview-settings.js +439 -0
  38. package/dist/components/components-settings/tabs-overview-settings.js.map +1 -0
  39. package/dist/components/lit-attachments-tab.js +432 -271
  40. package/dist/components/lit-attachments-tab.js.map +1 -0
  41. package/dist/components/lit-badge.js +40 -40
  42. package/dist/components/lit-badge.js.map +1 -0
  43. package/dist/components/lit-case-variables-tab.js +497 -382
  44. package/dist/components/lit-case-variables-tab.js.map +1 -0
  45. package/dist/components/lit-chart.js +406 -378
  46. package/dist/components/lit-chart.js.map +1 -0
  47. package/dist/components/lit-data-grid-tanstack.js +1663 -1150
  48. package/dist/components/lit-data-grid-tanstack.js.map +1 -0
  49. package/dist/components/lit-filter-modal.js +230 -198
  50. package/dist/components/lit-filter-modal.js.map +1 -0
  51. package/dist/components/lit-multiselect-item.js +477 -301
  52. package/dist/components/lit-multiselect-item.js.map +1 -0
  53. package/dist/components/lit-section-tab.js +85 -73
  54. package/dist/components/lit-section-tab.js.map +1 -0
  55. package/dist/components/lit-tabs-overview.js +232 -191
  56. package/dist/components/lit-tabs-overview.js.map +1 -0
  57. package/dist/components/modals/lit-confirm-modal.js +120 -0
  58. package/dist/components/modals/lit-confirm-modal.js.map +1 -0
  59. package/dist/components/modals/lit-delete-modal.js +128 -0
  60. package/dist/components/modals/lit-delete-modal.js.map +1 -0
  61. package/dist/components/react-wrappers/attachments-tab.js +8 -13
  62. package/dist/components/react-wrappers/attachments-tab.js.map +1 -0
  63. package/dist/components/react-wrappers/badge.js +8 -13
  64. package/dist/components/react-wrappers/badge.js.map +1 -0
  65. package/dist/components/react-wrappers/button.js +8 -13
  66. package/dist/components/react-wrappers/button.js.map +1 -0
  67. package/dist/components/react-wrappers/case-variables-tab.js +8 -13
  68. package/dist/components/react-wrappers/case-variables-tab.js.map +1 -0
  69. package/dist/components/react-wrappers/chart.js +8 -13
  70. package/dist/components/react-wrappers/chart.js.map +1 -0
  71. package/dist/components/react-wrappers/data-grid-tanstack.js +8 -13
  72. package/dist/components/react-wrappers/data-grid-tanstack.js.map +1 -0
  73. package/dist/components/react-wrappers/filter-modal.js +8 -13
  74. package/dist/components/react-wrappers/filter-modal.js.map +1 -0
  75. package/dist/components/react-wrappers/progress-bar.js +8 -13
  76. package/dist/components/react-wrappers/progress-bar.js.map +1 -0
  77. package/dist/components/react-wrappers/section-tab.js +8 -13
  78. package/dist/components/react-wrappers/section-tab.js.map +1 -0
  79. package/dist/components/react-wrappers/tabs-overview.js +8 -13
  80. package/dist/components/react-wrappers/tabs-overview.js.map +1 -0
  81. package/dist/data/translations.js +2763 -0
  82. package/dist/data/translations.js.map +1 -0
  83. package/dist/index.js +72 -80
  84. package/dist/index.js.map +1 -0
  85. package/dist/schemas/index.js +17 -0
  86. package/dist/schemas/index.js.map +1 -0
  87. package/dist/schemas/lit-attachments-tab-document.schema.js +20 -0
  88. package/dist/schemas/lit-attachments-tab-document.schema.js.map +1 -0
  89. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +15 -0
  90. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +1 -0
  91. package/dist/schemas/lit-attachments-tab.schema.js +32 -0
  92. package/dist/schemas/lit-attachments-tab.schema.js.map +1 -0
  93. package/dist/schemas/lit-case-variables-tab-cell.schema.js +43 -0
  94. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -0
  95. package/dist/schemas/lit-case-variables-tab-rows.schema.js +6 -0
  96. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +1 -0
  97. package/dist/schemas/lit-case-variables-tab.schema.js +24 -0
  98. package/dist/schemas/lit-case-variables-tab.schema.js.map +1 -0
  99. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +6 -0
  100. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +1 -0
  101. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +6 -0
  102. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +1 -0
  103. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +11 -0
  104. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +1 -0
  105. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +55 -0
  106. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +1 -0
  107. package/dist/schemas/lit-data-grid-tanstack.schema.js +99 -0
  108. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +1 -0
  109. package/dist/schemas/lit-section-tab-schema.js +24 -0
  110. package/dist/schemas/lit-section-tab-schema.js.map +1 -0
  111. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +6 -0
  112. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +1 -0
  113. package/dist/schemas/lit-tabs-overview-tab.schema.js +32 -0
  114. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +1 -0
  115. package/dist/schemas/lit-tabs-overview.schema.js +29 -0
  116. package/dist/schemas/lit-tabs-overview.schema.js.map +1 -0
  117. package/dist/scripts/translate-locales.js +69 -0
  118. package/dist/scripts/translate-locales.js.map +1 -0
  119. package/dist/shared/filter-inputs.js +335 -234
  120. package/dist/shared/filter-inputs.js.map +1 -0
  121. package/dist/shared/lit-button.js +80 -66
  122. package/dist/shared/lit-button.js.map +1 -0
  123. package/dist/shared/lit-case-variables-tab-cell.js +226 -0
  124. package/dist/shared/lit-case-variables-tab-cell.js.map +1 -0
  125. package/dist/shared/lit-checkbox.js +94 -78
  126. package/dist/shared/lit-checkbox.js.map +1 -0
  127. package/dist/shared/lit-custom-popper.js +117 -0
  128. package/dist/shared/lit-custom-popper.js.map +1 -0
  129. package/dist/shared/lit-data-grid-action-buttons-popover.js +178 -141
  130. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +1 -0
  131. package/dist/shared/lit-data-grid-density-popover.js +54 -49
  132. package/dist/shared/lit-data-grid-density-popover.js.map +1 -0
  133. package/dist/shared/lit-data-grid-export-popover.js +43 -41
  134. package/dist/shared/lit-data-grid-export-popover.js.map +1 -0
  135. package/dist/shared/lit-data-grid-operators-popover.js +114 -0
  136. package/dist/shared/lit-data-grid-operators-popover.js.map +1 -0
  137. package/dist/shared/lit-data-grid-row-actions.js +54 -51
  138. package/dist/shared/lit-data-grid-row-actions.js.map +1 -0
  139. package/dist/shared/lit-date-picker.js +606 -0
  140. package/dist/shared/lit-date-picker.js.map +1 -0
  141. package/dist/shared/lit-icon-button.js +66 -52
  142. package/dist/shared/lit-icon-button.js.map +1 -0
  143. package/dist/shared/lit-icon.js +261 -259
  144. package/dist/shared/lit-icon.js.map +1 -0
  145. package/dist/shared/lit-input.js +239 -0
  146. package/dist/shared/lit-input.js.map +1 -0
  147. package/dist/shared/lit-label.js +104 -0
  148. package/dist/shared/lit-label.js.map +1 -0
  149. package/dist/shared/lit-loader.js +69 -0
  150. package/dist/shared/lit-loader.js.map +1 -0
  151. package/dist/shared/lit-loading-bar.js +57 -24
  152. package/dist/shared/lit-loading-bar.js.map +1 -0
  153. package/dist/shared/lit-menu-item.js +99 -0
  154. package/dist/shared/lit-menu-item.js.map +1 -0
  155. package/dist/shared/lit-menu.js +42 -0
  156. package/dist/shared/lit-menu.js.map +1 -0
  157. package/dist/shared/lit-modal-body.js +22 -0
  158. package/dist/shared/lit-modal-body.js.map +1 -0
  159. package/dist/shared/lit-modal-footer.js +29 -0
  160. package/dist/shared/lit-modal-footer.js.map +1 -0
  161. package/dist/shared/lit-modal-header.js +36 -0
  162. package/dist/shared/lit-modal-header.js.map +1 -0
  163. package/dist/shared/lit-modal.js +169 -0
  164. package/dist/shared/lit-modal.js.map +1 -0
  165. package/dist/shared/lit-overflow-tooltip.js +86 -68
  166. package/dist/shared/lit-overflow-tooltip.js.map +1 -0
  167. package/dist/shared/lit-pill.js +88 -0
  168. package/dist/shared/lit-pill.js.map +1 -0
  169. package/dist/shared/lit-progress-bar.js +33 -35
  170. package/dist/shared/lit-progress-bar.js.map +1 -0
  171. package/dist/shared/lit-responsive-button.js +74 -64
  172. package/dist/shared/lit-responsive-button.js.map +1 -0
  173. package/dist/shared/lit-select-field.js +459 -0
  174. package/dist/shared/lit-select-field.js.map +1 -0
  175. package/dist/shared/lit-select.js +413 -0
  176. package/dist/shared/lit-select.js.map +1 -0
  177. package/dist/shared/lit-settings.js +77 -0
  178. package/dist/shared/lit-settings.js.map +1 -0
  179. package/dist/shared/lit-text-field.js +222 -0
  180. package/dist/shared/lit-text-field.js.map +1 -0
  181. package/dist/shared/lit-toggle.js +222 -0
  182. package/dist/shared/lit-toggle.js.map +1 -0
  183. package/dist/shared/lit-tooltip.js +166 -0
  184. package/dist/shared/lit-tooltip.js.map +1 -0
  185. package/dist/shared/simple-popper.js +266 -0
  186. package/dist/shared/simple-popper.js.map +1 -0
  187. package/dist/shared/simple-tooltip.js +198 -124
  188. package/dist/shared/simple-tooltip.js.map +1 -0
  189. package/dist/shared/styles/button-shared-styles.js +4 -8
  190. package/dist/shared/styles/button-shared-styles.js.map +1 -0
  191. package/dist/styles.js +3 -8
  192. package/dist/styles.js.map +1 -0
  193. package/dist/utils/currency.js +15 -12
  194. package/dist/utils/currency.js.map +1 -0
  195. package/dist/utils/custom-filters.js +80 -46
  196. package/dist/utils/custom-filters.js.map +1 -0
  197. package/dist/utils/date.js +21 -14
  198. package/dist/utils/date.js.map +1 -0
  199. package/dist/utils/getOperatorByType.js +65 -51
  200. package/dist/utils/getOperatorByType.js.map +1 -0
  201. package/dist/utils/getOverviewValue.js +177 -0
  202. package/dist/utils/getOverviewValue.js.map +1 -0
  203. package/dist/utils/localization.js +431 -29
  204. package/dist/utils/localization.js.map +1 -0
  205. package/dist/utils/utils.js +12 -10
  206. package/dist/utils/utils.js.map +1 -0
  207. package/dist/utils/validate-json-schema.js +8 -0
  208. package/dist/utils/validate-json-schema.js.map +1 -0
  209. package/dist/validators/validator.js +7 -0
  210. package/dist/validators/validator.js.map +1 -0
  211. package/package.json +2 -2
  212. package/dist/_virtual/FileSaver.min.js +0 -4
  213. package/dist/_virtual/_commonjsHelpers.js +0 -8
  214. package/dist/_virtual/lodash.js +0 -4
  215. package/dist/libs/xlsx.mini.min.js +0 -10
  216. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -432
  217. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -306
  218. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -127
  219. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -127
  220. package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
  221. package/dist/node_modules/@lit/localize/init/install.js +0 -11
  222. package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
  223. package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
  224. package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
  225. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
  226. package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
  227. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
  228. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
  229. package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
  230. package/dist/node_modules/@lit/react/create-component.js +0 -35
  231. package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
  232. package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
  233. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
  234. package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
  235. package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
  236. package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
  237. package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -250
  238. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
  239. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
  240. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
  241. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
  242. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
  243. package/dist/node_modules/chart.js/dist/chart.js +0 -7122
  244. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
  245. package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
  246. package/dist/node_modules/lit-element/lit-element.js +0 -51
  247. package/dist/node_modules/lit-html/async-directive.js +0 -69
  248. package/dist/node_modules/lit-html/directive-helpers.js +0 -45
  249. package/dist/node_modules/lit-html/directive.js +0 -27
  250. package/dist/node_modules/lit-html/directives/class-map.js +0 -34
  251. package/dist/node_modules/lit-html/directives/ref.js +0 -42
  252. package/dist/node_modules/lit-html/directives/repeat.js +0 -61
  253. package/dist/node_modules/lit-html/directives/style-map.js +0 -36
  254. package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
  255. package/dist/node_modules/lit-html/lit-html.js +0 -243
  256. package/dist/node_modules/lodash/lodash.js +0 -3678
  257. package/dist/node_modules/luxon/src/datetime.js +0 -1793
  258. package/dist/node_modules/luxon/src/duration.js +0 -723
  259. package/dist/node_modules/luxon/src/errors.js +0 -40
  260. package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
  261. package/dist/node_modules/luxon/src/impl/diff.js +0 -36
  262. package/dist/node_modules/luxon/src/impl/digits.js +0 -74
  263. package/dist/node_modules/luxon/src/impl/english.js +0 -138
  264. package/dist/node_modules/luxon/src/impl/formats.js +0 -150
  265. package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
  266. package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
  267. package/dist/node_modules/luxon/src/impl/locale.js +0 -282
  268. package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
  269. package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
  270. package/dist/node_modules/luxon/src/impl/util.js +0 -206
  271. package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
  272. package/dist/node_modules/luxon/src/info.js +0 -180
  273. package/dist/node_modules/luxon/src/interval.js +0 -466
  274. package/dist/node_modules/luxon/src/settings.js +0 -150
  275. package/dist/node_modules/luxon/src/zone.js +0 -88
  276. package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
  277. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
  278. package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
  279. package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
  280. package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
  281. package/dist/style.css +0 -1
  282. package/dist/vite.svg +0 -1
@@ -1,35 +1,34 @@
1
- import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
2
- import { property as n } from "../node_modules/@lit/reactive-element/decorators/property.js";
3
- import "../node_modules/@lit/reactive-element/reactive-element.js";
4
- import { html as g } from "../node_modules/lit-html/lit-html.js";
5
- import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
6
- import { css as m } from "../node_modules/@lit/reactive-element/css-tag.js";
7
- var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, l = (e, t, i, o) => {
8
- for (var r = o > 1 ? void 0 : o ? v(t, i) : t, a = e.length - 1, p; a >= 0; a--)
9
- (p = e[a]) && (r = (o ? p(t, i, r) : p(r)) || r);
10
- return o && r && f(t, i, r), r;
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;
11
6
  };
12
- let s = class extends d {
13
- constructor() {
14
- super(...arguments), this.label = "", this.progress = 0;
15
- }
16
- render() {
17
- const e = Math.min(100, Math.max(0, this.progress));
18
- return g`
7
+ import { customElement, property } from 'lit/decorators.js';
8
+ import { css, html, LitElement } from 'lit';
9
+ let LitProgressBar = class LitProgressBar extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.label = '';
13
+ this.progress = 0;
14
+ }
15
+ render() {
16
+ const clampedProgress = Math.min(100, Math.max(0, this.progress));
17
+ return html `
19
18
  <div class="container">
20
19
  <div class="label">${this.label}</div>
21
20
  <div class="progress-bar-container">
22
- <div class="percentage">${e}%</div>
21
+ <div class="percentage">${clampedProgress}%</div>
23
22
  <div class="progress-bar">
24
- <div class="progress-fill" style="width: ${e}%"></div>
23
+ <div class="progress-fill" style="width: ${clampedProgress}%"></div>
25
24
  </div>
26
25
  </div>
27
26
  </div>
28
27
  `;
29
- }
28
+ }
30
29
  };
31
- s.styles = [
32
- m`
30
+ LitProgressBar.styles = [
31
+ css `
33
32
  .container {
34
33
  gap: 4px;
35
34
  }
@@ -67,17 +66,16 @@ s.styles = [
67
66
  font-weight: 500;
68
67
  font-size: 14px;
69
68
  }
70
- `
69
+ `,
71
70
  ];
72
- l([
73
- n({ type: String })
74
- ], s.prototype, "label", 2);
75
- l([
76
- n({ type: Number })
77
- ], s.prototype, "progress", 2);
78
- s = l([
79
- c("lit-progress-bar")
80
- ], s);
81
- export {
82
- s as LitProgressBar
83
- };
71
+ __decorate([
72
+ property({ type: String })
73
+ ], LitProgressBar.prototype, "label", void 0);
74
+ __decorate([
75
+ property({ type: Number })
76
+ ], LitProgressBar.prototype, "progress", void 0);
77
+ LitProgressBar = __decorate([
78
+ customElement('lit-progress-bar')
79
+ ], LitProgressBar);
80
+ export { LitProgressBar };
81
+ //# sourceMappingURL=lit-progress-bar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-progress-bar.js","sourceRoot":"","sources":["../../src/shared/lit-progress-bar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQrC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QACyB,UAAK,GAAY,EAAE,CAAC;QACpB,aAAQ,GAAW,CAAC,CAAC;IA0DrD,CAAC;IAfG,MAAM;QACF,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAElE,OAAO,IAAI,CAAA;;qCAEkB,IAAI,CAAC,KAAK;;8CAED,eAAe;;mEAEM,eAAe;;;;SAIzE,CAAC;IACN,CAAC;;AAvDM,qBAAM,GAAG;IACZ,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAsCF;CACJ,AAxCY,CAwCX;AA3C0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAsB;AAFxC,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA4D1B"}
@@ -1,30 +1,40 @@
1
- import { customElement as d } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
2
- import { property as i } from "../node_modules/@lit/reactive-element/decorators/property.js";
3
- import { state as h } 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 u } from "../node_modules/lit-element/lit-element.js";
7
- var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (p, o, r, n) => {
8
- for (var s = n > 1 ? void 0 : n ? b(o, r) : o, a = p.length - 1, l; a >= 0; a--)
9
- (l = p[a]) && (s = (n ? l(o, r, s) : l(s)) || s);
10
- return n && s && m(o, r, s), s;
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;
11
6
  };
12
- let t = class extends u {
13
- constructor() {
14
- super(...arguments), this.variant = "contained", this.size = "medium", this.label = "Button", this.fullWidth = !1, this.disabled = !1, this.count = void 0, this.active = !1, this.isSmallScreen = !1;
15
- }
16
- // Stav pre breakpoint
17
- connectedCallback() {
18
- super.connectedCallback(), this.updateScreenSize(), window.addEventListener("resize", this.updateScreenSize.bind(this));
19
- }
20
- disconnectedCallback() {
21
- window.removeEventListener("resize", this.updateScreenSize.bind(this)), super.disconnectedCallback();
22
- }
23
- updateScreenSize() {
24
- this.isSmallScreen = window.matchMedia("(max-width: 600px)").matches;
25
- }
26
- render() {
27
- return this.isSmallScreen ? c`
7
+ import { customElement, property, state } from 'lit/decorators.js';
8
+ import { html, LitElement } from 'lit';
9
+ import './lit-icon-button.js';
10
+ import './lit-button.js';
11
+ let LitResponsiveButton = class LitResponsiveButton extends LitElement {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.variant = 'contained';
15
+ this.size = 'medium';
16
+ this.label = 'Button';
17
+ this.fullWidth = false;
18
+ this.disabled = false;
19
+ this.count = undefined;
20
+ this.active = false;
21
+ this.isSmallScreen = false; // Stav pre breakpoint
22
+ }
23
+ connectedCallback() {
24
+ super.connectedCallback();
25
+ this.updateScreenSize(); // Inicializácia
26
+ window.addEventListener('resize', this.updateScreenSize.bind(this)); // Počúvanie na zmenu veľkosti
27
+ }
28
+ disconnectedCallback() {
29
+ window.removeEventListener('resize', this.updateScreenSize.bind(this)); // Odstránenie listenera
30
+ super.disconnectedCallback();
31
+ }
32
+ updateScreenSize() {
33
+ this.isSmallScreen = window.matchMedia('(max-width: 600px)').matches; // Kontrola veľkosti obrazovky
34
+ }
35
+ render() {
36
+ return this.isSmallScreen
37
+ ? html `
28
38
  <lit-icon-button
29
39
  .icon="${this.icon}"
30
40
  .variant="${this.variant}"
@@ -32,7 +42,8 @@ let t = class extends u {
32
42
  .disabled="${this.disabled}"
33
43
  .active="${this.active}"
34
44
  ></lit-icon-button>
35
- ` : c`
45
+ `
46
+ : html `
36
47
  <lit-button
37
48
  .icon="${this.icon}"
38
49
  .variant="${this.variant}"
@@ -44,41 +55,40 @@ let t = class extends u {
44
55
  .active="${this.active}"
45
56
  ></lit-button>
46
57
  `;
47
- }
48
- };
49
- e([
50
- i({ type: String })
51
- ], t.prototype, "variant", 2);
52
- e([
53
- i({ type: String })
54
- ], t.prototype, "size", 2);
55
- e([
56
- i({ type: String })
57
- ], t.prototype, "label", 2);
58
- e([
59
- i({ type: String })
60
- ], t.prototype, "icon", 2);
61
- e([
62
- i({ type: Boolean })
63
- ], t.prototype, "fullWidth", 2);
64
- e([
65
- i({ type: Boolean })
66
- ], t.prototype, "disabled", 2);
67
- e([
68
- i({ type: Number })
69
- ], t.prototype, "count", 2);
70
- e([
71
- i({ type: Function })
72
- ], t.prototype, "onClick", 2);
73
- e([
74
- i({ type: Boolean })
75
- ], t.prototype, "active", 2);
76
- e([
77
- h()
78
- ], t.prototype, "isSmallScreen", 2);
79
- t = e([
80
- d("lit-responsive-button")
81
- ], t);
82
- export {
83
- t as LitResponsiveButton
58
+ }
84
59
  };
60
+ __decorate([
61
+ property({ type: String })
62
+ ], LitResponsiveButton.prototype, "variant", void 0);
63
+ __decorate([
64
+ property({ type: String })
65
+ ], LitResponsiveButton.prototype, "size", void 0);
66
+ __decorate([
67
+ property({ type: String })
68
+ ], LitResponsiveButton.prototype, "label", void 0);
69
+ __decorate([
70
+ property({ type: String })
71
+ ], LitResponsiveButton.prototype, "icon", void 0);
72
+ __decorate([
73
+ property({ type: Boolean })
74
+ ], LitResponsiveButton.prototype, "fullWidth", void 0);
75
+ __decorate([
76
+ property({ type: Boolean })
77
+ ], LitResponsiveButton.prototype, "disabled", void 0);
78
+ __decorate([
79
+ property({ type: Number })
80
+ ], LitResponsiveButton.prototype, "count", void 0);
81
+ __decorate([
82
+ property({ type: Function })
83
+ ], LitResponsiveButton.prototype, "onClick", void 0);
84
+ __decorate([
85
+ property({ type: Boolean })
86
+ ], LitResponsiveButton.prototype, "active", void 0);
87
+ __decorate([
88
+ state()
89
+ ], LitResponsiveButton.prototype, "isSmallScreen", void 0);
90
+ LitResponsiveButton = __decorate([
91
+ customElement('lit-responsive-button')
92
+ ], LitResponsiveButton);
93
+ export { LitResponsiveButton };
94
+ //# sourceMappingURL=lit-responsive-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lit-responsive-button.js","sourceRoot":"","sources":["../../src/shared/lit-responsive-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,iBAAiB,CAAC;AAMlB,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAA5C;;QACyB,YAAO,GAAmB,WAAW,CAAC;QACtC,SAAI,GAAkC,QAAQ,CAAC;QAC/C,UAAK,GAAY,QAAQ,CAAC;QAEzB,cAAS,GAAa,KAAK,CAAC;QAC5B,aAAQ,GAAa,KAAK,CAAC;QAC5B,UAAK,GAAwB,SAAS,CAAC;QAEtC,WAAM,GAAa,KAAK,CAAC;QAErC,kBAAa,GAAG,KAAK,CAAC,CAAC,sBAAsB;IAyClE,CAAC;IAvCG,iBAAiB;QACb,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,gBAAgB;QACzC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,8BAA8B;IACvG,CAAC;IAED,oBAAoB;QAChB,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,wBAAwB;QAChG,KAAK,CAAC,oBAAoB,EAAE,CAAC;IACjC,CAAC;IAEO,gBAAgB;QACpB,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAC,8BAA8B;IACxG,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,aAAa;YACrB,CAAC,CAAC,IAAI,CAAA;;+BAEa,IAAI,CAAC,IAAI;kCACN,IAAI,CAAC,OAAO;+BACf,IAAI,CAAC,IAAI;mCACL,IAAI,CAAC,QAAQ;iCACf,IAAI,CAAC,MAAM;;eAE7B;YACH,CAAC,CAAC,IAAI,CAAA;;+BAEa,IAAI,CAAC,IAAI;kCACN,IAAI,CAAC,OAAO;gCACd,IAAI,CAAC,KAAK;+BACX,IAAI,CAAC,IAAI;gCACR,IAAI,CAAC,KAAK;oCACN,IAAI,CAAC,SAAS;mCACf,IAAI,CAAC,QAAQ;iCACf,IAAI,CAAC,MAAM;;eAE7B,CAAC;IACZ,CAAC;CACJ,CAAA;AAnD+B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDAAuC;AACtC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAgD;AAC/C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAA2B;AAC1B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAa;AACX;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;sDAA6B;AAC5B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDAA4B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAwC;AACrC;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;oDAAuC;AACvC;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;mDAA0B;AAErC;IAAhB,KAAK,EAAE;0DAA+B;AAX9B,mBAAmB;IAD/B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,mBAAmB,CAoD/B"}