overview-components 1.0.93 → 1.0.96

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 (285) 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/lodash.js +4 -0
  7. package/dist/_virtual/pdf.js +4 -0
  8. package/dist/assets/generated/locales/de.js +72 -70
  9. package/dist/assets/generated/locales/en.js +72 -70
  10. package/dist/assets/generated/locales/fr.js +72 -70
  11. package/dist/assets/generated/locales/hr.js +72 -70
  12. package/dist/assets/generated/locales/it.js +72 -70
  13. package/dist/assets/generated/locales/pl.js +72 -70
  14. package/dist/assets/generated/locales/ro.js +72 -70
  15. package/dist/assets/generated/locales/sk.js +72 -70
  16. package/dist/assets/generated/locales/sr.js +72 -70
  17. package/dist/components/lit-attachments-tab.js +271 -432
  18. package/dist/components/lit-badge.js +40 -40
  19. package/dist/components/lit-case-variables-tab.js +382 -497
  20. package/dist/components/lit-chart.js +378 -406
  21. package/dist/components/lit-data-grid-tanstack.js +1150 -1663
  22. package/dist/components/lit-filter-modal.js +198 -230
  23. package/dist/components/lit-multiselect-item.js +301 -477
  24. package/dist/components/lit-section-tab.js +73 -85
  25. package/dist/components/lit-tabs-overview.js +191 -232
  26. package/dist/components/react-wrappers/attachments-tab.js +13 -8
  27. package/dist/components/react-wrappers/badge.js +13 -8
  28. package/dist/components/react-wrappers/button.js +13 -8
  29. package/dist/components/react-wrappers/case-variables-tab.js +13 -8
  30. package/dist/components/react-wrappers/chart.js +13 -8
  31. package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
  32. package/dist/components/react-wrappers/filter-modal.js +13 -8
  33. package/dist/components/react-wrappers/progress-bar.js +13 -8
  34. package/dist/components/react-wrappers/section-tab.js +13 -8
  35. package/dist/components/react-wrappers/tabs-overview.js +13 -8
  36. package/dist/index.js +42 -43
  37. package/dist/libs/xlsx.mini.min.js +10 -0
  38. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  39. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  40. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  41. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  42. package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
  43. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  44. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  45. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  46. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  47. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  48. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  49. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  50. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  51. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  52. package/dist/node_modules/@lit/react/create-component.js +35 -0
  53. package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
  54. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  55. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  56. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  57. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  58. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  59. package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
  60. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  61. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  62. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  63. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  64. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  65. package/dist/node_modules/chart.js/dist/chart.js +7122 -0
  66. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
  67. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  68. package/dist/node_modules/lit-element/lit-element.js +51 -0
  69. package/dist/node_modules/lit-html/async-directive.js +69 -0
  70. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  71. package/dist/node_modules/lit-html/directive.js +27 -0
  72. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  73. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  74. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  75. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  76. package/dist/node_modules/lit-html/lit-html.js +243 -0
  77. package/dist/node_modules/lodash/lodash.js +3678 -0
  78. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  79. package/dist/node_modules/luxon/src/duration.js +723 -0
  80. package/dist/node_modules/luxon/src/errors.js +40 -0
  81. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  82. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  83. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  84. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  85. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  86. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  87. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  88. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  89. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  90. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  91. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  92. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  93. package/dist/node_modules/luxon/src/info.js +180 -0
  94. package/dist/node_modules/luxon/src/interval.js +466 -0
  95. package/dist/node_modules/luxon/src/settings.js +150 -0
  96. package/dist/node_modules/luxon/src/zone.js +88 -0
  97. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  98. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  99. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  100. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  101. package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
  102. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  103. package/dist/shared/lit-button.js +66 -80
  104. package/dist/shared/lit-progress-bar.js +35 -33
  105. package/dist/shared/simple-tooltip.js +124 -198
  106. package/dist/shared/styles/button-shared-styles.js +8 -4
  107. package/dist/utils/currency.js +12 -15
  108. package/dist/utils/custom-filters.js +46 -80
  109. package/dist/utils/date.js +14 -21
  110. package/dist/utils/getOperatorByType.js +51 -65
  111. package/dist/utils/localization.js +29 -431
  112. package/dist/vite.svg +1 -0
  113. package/package.json +76 -74
  114. package/dist/assets/generated/locales/de.js.map +0 -1
  115. package/dist/assets/generated/locales/en.js.map +0 -1
  116. package/dist/assets/generated/locales/fr.js.map +0 -1
  117. package/dist/assets/generated/locales/hr.js.map +0 -1
  118. package/dist/assets/generated/locales/it.js.map +0 -1
  119. package/dist/assets/generated/locales/pl.js.map +0 -1
  120. package/dist/assets/generated/locales/ro.js.map +0 -1
  121. package/dist/assets/generated/locales/sk.js.map +0 -1
  122. package/dist/assets/generated/locales/sr.js.map +0 -1
  123. package/dist/assets/icons/iconGlyphs.js +0 -679
  124. package/dist/assets/icons/iconGlyphs.js.map +0 -1
  125. package/dist/assets/illustration/delete-illustration.js +0 -96
  126. package/dist/assets/illustration/delete-illustration.js.map +0 -1
  127. package/dist/assets/illustration/no-content.js +0 -167
  128. package/dist/assets/illustration/no-content.js.map +0 -1
  129. package/dist/assets/illustration/no-preview.js +0 -133
  130. package/dist/assets/illustration/no-preview.js.map +0 -1
  131. package/dist/assets/illustration/not-found.js +0 -106
  132. package/dist/assets/illustration/not-found.js.map +0 -1
  133. package/dist/assets/illustration/settings-illustration.js +0 -176
  134. package/dist/assets/illustration/settings-illustration.js.map +0 -1
  135. package/dist/components/components-settings/attachments-tab-settings.js +0 -226
  136. package/dist/components/components-settings/attachments-tab-settings.js.map +0 -1
  137. package/dist/components/components-settings/data-grid-settings.js +0 -318
  138. package/dist/components/components-settings/data-grid-settings.js.map +0 -1
  139. package/dist/components/components-settings/section-tab-settings.js +0 -269
  140. package/dist/components/components-settings/section-tab-settings.js.map +0 -1
  141. package/dist/components/components-settings/tabs-overview-settings.js +0 -439
  142. package/dist/components/components-settings/tabs-overview-settings.js.map +0 -1
  143. package/dist/components/lit-attachments-tab.js.map +0 -1
  144. package/dist/components/lit-badge.js.map +0 -1
  145. package/dist/components/lit-case-variables-tab.js.map +0 -1
  146. package/dist/components/lit-chart.js.map +0 -1
  147. package/dist/components/lit-data-grid-tanstack.js.map +0 -1
  148. package/dist/components/lit-filter-modal.js.map +0 -1
  149. package/dist/components/lit-multiselect-item.js.map +0 -1
  150. package/dist/components/lit-section-tab.js.map +0 -1
  151. package/dist/components/lit-tabs-overview.js.map +0 -1
  152. package/dist/components/modals/lit-confirm-modal.js +0 -120
  153. package/dist/components/modals/lit-confirm-modal.js.map +0 -1
  154. package/dist/components/modals/lit-delete-modal.js +0 -128
  155. package/dist/components/modals/lit-delete-modal.js.map +0 -1
  156. package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
  157. package/dist/components/react-wrappers/badge.js.map +0 -1
  158. package/dist/components/react-wrappers/button.js.map +0 -1
  159. package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
  160. package/dist/components/react-wrappers/chart.js.map +0 -1
  161. package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
  162. package/dist/components/react-wrappers/filter-modal.js.map +0 -1
  163. package/dist/components/react-wrappers/progress-bar.js.map +0 -1
  164. package/dist/components/react-wrappers/section-tab.js.map +0 -1
  165. package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
  166. package/dist/data/translations.js +0 -2763
  167. package/dist/data/translations.js.map +0 -1
  168. package/dist/index.js.map +0 -1
  169. package/dist/schemas/index.js +0 -17
  170. package/dist/schemas/index.js.map +0 -1
  171. package/dist/schemas/lit-attachments-tab-document.schema.js +0 -20
  172. package/dist/schemas/lit-attachments-tab-document.schema.js.map +0 -1
  173. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +0 -15
  174. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +0 -1
  175. package/dist/schemas/lit-attachments-tab.schema.js +0 -32
  176. package/dist/schemas/lit-attachments-tab.schema.js.map +0 -1
  177. package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
  178. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
  179. package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
  180. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
  181. package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
  182. package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
  183. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
  184. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
  185. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
  186. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
  187. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
  188. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
  189. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
  190. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
  191. package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
  192. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
  193. package/dist/schemas/lit-section-tab-schema.js +0 -24
  194. package/dist/schemas/lit-section-tab-schema.js.map +0 -1
  195. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +0 -6
  196. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +0 -1
  197. package/dist/schemas/lit-tabs-overview-tab.schema.js +0 -32
  198. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +0 -1
  199. package/dist/schemas/lit-tabs-overview.schema.js +0 -29
  200. package/dist/schemas/lit-tabs-overview.schema.js.map +0 -1
  201. package/dist/scripts/translate-locales.js +0 -69
  202. package/dist/scripts/translate-locales.js.map +0 -1
  203. package/dist/shared/filter-inputs.js +0 -427
  204. package/dist/shared/filter-inputs.js.map +0 -1
  205. package/dist/shared/lit-button.js.map +0 -1
  206. package/dist/shared/lit-case-variables-tab-cell.js +0 -226
  207. package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
  208. package/dist/shared/lit-checkbox.js +0 -171
  209. package/dist/shared/lit-checkbox.js.map +0 -1
  210. package/dist/shared/lit-custom-popper.js +0 -117
  211. package/dist/shared/lit-custom-popper.js.map +0 -1
  212. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
  213. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
  214. package/dist/shared/lit-data-grid-density-popover.js +0 -84
  215. package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
  216. package/dist/shared/lit-data-grid-export-popover.js +0 -68
  217. package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
  218. package/dist/shared/lit-data-grid-operators-popover.js +0 -114
  219. package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
  220. package/dist/shared/lit-data-grid-row-actions.js +0 -76
  221. package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
  222. package/dist/shared/lit-date-picker.js +0 -606
  223. package/dist/shared/lit-date-picker.js.map +0 -1
  224. package/dist/shared/lit-icon-button.js +0 -105
  225. package/dist/shared/lit-icon-button.js.map +0 -1
  226. package/dist/shared/lit-icon.js +0 -284
  227. package/dist/shared/lit-icon.js.map +0 -1
  228. package/dist/shared/lit-input.js +0 -239
  229. package/dist/shared/lit-input.js.map +0 -1
  230. package/dist/shared/lit-label.js +0 -104
  231. package/dist/shared/lit-label.js.map +0 -1
  232. package/dist/shared/lit-loader.js +0 -69
  233. package/dist/shared/lit-loader.js.map +0 -1
  234. package/dist/shared/lit-loading-bar.js +0 -127
  235. package/dist/shared/lit-loading-bar.js.map +0 -1
  236. package/dist/shared/lit-menu-item.js +0 -99
  237. package/dist/shared/lit-menu-item.js.map +0 -1
  238. package/dist/shared/lit-menu.js +0 -42
  239. package/dist/shared/lit-menu.js.map +0 -1
  240. package/dist/shared/lit-modal-body.js +0 -22
  241. package/dist/shared/lit-modal-body.js.map +0 -1
  242. package/dist/shared/lit-modal-footer.js +0 -29
  243. package/dist/shared/lit-modal-footer.js.map +0 -1
  244. package/dist/shared/lit-modal-header.js +0 -36
  245. package/dist/shared/lit-modal-header.js.map +0 -1
  246. package/dist/shared/lit-modal.js +0 -169
  247. package/dist/shared/lit-modal.js.map +0 -1
  248. package/dist/shared/lit-overflow-tooltip.js +0 -103
  249. package/dist/shared/lit-overflow-tooltip.js.map +0 -1
  250. package/dist/shared/lit-pill.js +0 -88
  251. package/dist/shared/lit-pill.js.map +0 -1
  252. package/dist/shared/lit-progress-bar.js.map +0 -1
  253. package/dist/shared/lit-responsive-button.js +0 -94
  254. package/dist/shared/lit-responsive-button.js.map +0 -1
  255. package/dist/shared/lit-select-field.js +0 -459
  256. package/dist/shared/lit-select-field.js.map +0 -1
  257. package/dist/shared/lit-select.js +0 -413
  258. package/dist/shared/lit-select.js.map +0 -1
  259. package/dist/shared/lit-settings.js +0 -77
  260. package/dist/shared/lit-settings.js.map +0 -1
  261. package/dist/shared/lit-text-field.js +0 -222
  262. package/dist/shared/lit-text-field.js.map +0 -1
  263. package/dist/shared/lit-toggle.js +0 -222
  264. package/dist/shared/lit-toggle.js.map +0 -1
  265. package/dist/shared/lit-tooltip.js +0 -166
  266. package/dist/shared/lit-tooltip.js.map +0 -1
  267. package/dist/shared/simple-popper.js +0 -266
  268. package/dist/shared/simple-popper.js.map +0 -1
  269. package/dist/shared/simple-tooltip.js.map +0 -1
  270. package/dist/shared/styles/button-shared-styles.js.map +0 -1
  271. package/dist/styles.js +0 -169
  272. package/dist/styles.js.map +0 -1
  273. package/dist/utils/currency.js.map +0 -1
  274. package/dist/utils/custom-filters.js.map +0 -1
  275. package/dist/utils/date.js.map +0 -1
  276. package/dist/utils/getOperatorByType.js.map +0 -1
  277. package/dist/utils/getOverviewValue.js +0 -177
  278. package/dist/utils/getOverviewValue.js.map +0 -1
  279. package/dist/utils/localization.js.map +0 -1
  280. package/dist/utils/utils.js +0 -13
  281. package/dist/utils/utils.js.map +0 -1
  282. package/dist/utils/validate-json-schema.js +0 -8
  283. package/dist/utils/validate-json-schema.js.map +0 -1
  284. package/dist/validators/validator.js +0 -7
  285. package/dist/validators/validator.js.map +0 -1
@@ -1,65 +1,50 @@
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 "../node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { html as r } from "../node_modules/lit-html/lit-html.js";
3
+ import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
4
+ import { customElement as u } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
5
+ import { property as e } from "../node_modules/@lit/reactive-element/decorators/property.js";
6
+ import m from "./styles/button-shared-styles.js";
7
+ import { css as h } from "../node_modules/@lit/reactive-element/css-tag.js";
8
+ var b = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (s, n, a, l) => {
9
+ for (var o = l > 1 ? void 0 : l ? f(n, a) : n, p = s.length - 1, c; p >= 0; p--)
10
+ (c = s[p]) && (o = (l ? c(n, a, o) : c(o)) || o);
11
+ return l && o && b(n, a, o), o;
6
12
  };
7
- import { LitElement, html, css } from 'lit';
8
- import { customElement, property } from 'lit/decorators.js';
9
- // styles
10
- import buttonStyles from './styles/button-shared-styles.js';
11
- // elements
12
- import './lit-icon.js';
13
- import './lit-pill.js';
14
- import './lit-loader.js';
15
- let LitButton = class LitButton extends LitElement {
16
- constructor() {
17
- super(...arguments);
18
- this.variant = 'contained';
19
- this.size = 'medium';
20
- this.label = 'Button';
21
- this.fullWidth = false;
22
- this.disabled = false;
23
- this.count = undefined;
24
- this.active = false;
25
- this.isLoading = false;
26
- }
27
- render() {
28
- const classes = `button--${this.size} button--${this.variant} ${this.fullWidth ? 'button--fullWidth' : ''} ${this.active ? 'active' : ''}`;
29
- const hasCount = this.count !== undefined && this.count !== null && this.count >= 0;
30
- return html `
31
- <button ?disabled=${this.disabled} @click=${this.onClick} class=${classes}>
13
+ let t = class extends d {
14
+ constructor() {
15
+ 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.isLoading = !1;
16
+ }
17
+ render() {
18
+ const s = `button--${this.size} button--${this.variant} ${this.fullWidth ? "button--fullWidth" : ""} ${this.active ? "active" : ""}`, n = this.count !== void 0 && this.count !== null && this.count >= 0;
19
+ return r`
20
+ <button ?disabled=${this.disabled} @click=${this.onClick} class=${s}>
32
21
  <div class="button--content">
33
- ${this.isLoading
34
- ? html ` <lit-loader size="small" class="button--loader"></lit-loader> `
35
- : null}
22
+ ${this.isLoading ? r` <lit-loader size="small" class="button--loader"></lit-loader> ` : null}
36
23
 
37
24
  <div
38
25
  class="button-inner"
39
- style="visibility: ${this.isLoading ? 'hidden' : 'visible'};
26
+ style="visibility: ${this.isLoading ? "hidden" : "visible"};
40
27
  "
41
28
  >
42
29
  <slot name="start-icon">
43
- ${this.icon
44
- ? html `<lit-icon
30
+ ${this.icon ? r`<lit-icon
45
31
  class="start-icon"
46
32
  size="1.25rem"
47
33
  icon="${this.icon}"
48
- ></lit-icon>`
49
- : ''}
34
+ ></lit-icon>` : ""}
50
35
  </slot>
51
36
  ${this.label}
52
- ${hasCount ? html `<lit-pill count=${this.count}></lit-pill>` : ''}
37
+ ${n ? r`<lit-pill count=${this.count}></lit-pill>` : ""}
53
38
  </div>
54
39
  </div>
55
40
  </button>
56
41
  `;
57
- }
42
+ }
58
43
  };
59
- LitButton.styles = [
60
- // styles,
61
- buttonStyles,
62
- css `
44
+ t.styles = [
45
+ // styles,
46
+ m,
47
+ h`
63
48
  /* Basic button styles */
64
49
  button {
65
50
  line-height: 1.5rem;
@@ -117,40 +102,41 @@ LitButton.styles = [
117
102
  gap: 0.5rem;
118
103
  visibility: visible;
119
104
  }
120
- `,
105
+ `
121
106
  ];
122
- __decorate([
123
- property({ type: String })
124
- ], LitButton.prototype, "variant", void 0);
125
- __decorate([
126
- property({ type: String })
127
- ], LitButton.prototype, "size", void 0);
128
- __decorate([
129
- property({ type: String })
130
- ], LitButton.prototype, "label", void 0);
131
- __decorate([
132
- property({ type: String })
133
- ], LitButton.prototype, "icon", void 0);
134
- __decorate([
135
- property({ type: Boolean })
136
- ], LitButton.prototype, "fullWidth", void 0);
137
- __decorate([
138
- property({ type: Boolean })
139
- ], LitButton.prototype, "disabled", void 0);
140
- __decorate([
141
- property({ type: Number })
142
- ], LitButton.prototype, "count", void 0);
143
- __decorate([
144
- property({ type: Function })
145
- ], LitButton.prototype, "onClick", void 0);
146
- __decorate([
147
- property({ type: Boolean })
148
- ], LitButton.prototype, "active", void 0);
149
- __decorate([
150
- property({ type: Boolean })
151
- ], LitButton.prototype, "isLoading", void 0);
152
- LitButton = __decorate([
153
- customElement('lit-button')
154
- ], LitButton);
155
- export { LitButton };
156
- //# sourceMappingURL=lit-button.js.map
107
+ i([
108
+ e({ type: String })
109
+ ], t.prototype, "variant", 2);
110
+ i([
111
+ e({ type: String })
112
+ ], t.prototype, "size", 2);
113
+ i([
114
+ e({ type: String })
115
+ ], t.prototype, "label", 2);
116
+ i([
117
+ e({ type: String })
118
+ ], t.prototype, "icon", 2);
119
+ i([
120
+ e({ type: Boolean })
121
+ ], t.prototype, "fullWidth", 2);
122
+ i([
123
+ e({ type: Boolean })
124
+ ], t.prototype, "disabled", 2);
125
+ i([
126
+ e({ type: Number })
127
+ ], t.prototype, "count", 2);
128
+ i([
129
+ e({ type: Function })
130
+ ], t.prototype, "onClick", 2);
131
+ i([
132
+ e({ type: Boolean })
133
+ ], t.prototype, "active", 2);
134
+ i([
135
+ e({ type: Boolean })
136
+ ], t.prototype, "isLoading", 2);
137
+ t = i([
138
+ u("lit-button")
139
+ ], t);
140
+ export {
141
+ t as LitButton
142
+ };
@@ -1,34 +1,35 @@
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 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;
6
11
  };
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 `
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`
18
19
  <div class="container">
19
20
  <div class="label">${this.label}</div>
20
21
  <div class="progress-bar-container">
21
- <div class="percentage">${clampedProgress}%</div>
22
+ <div class="percentage">${e}%</div>
22
23
  <div class="progress-bar">
23
- <div class="progress-fill" style="width: ${clampedProgress}%"></div>
24
+ <div class="progress-fill" style="width: ${e}%"></div>
24
25
  </div>
25
26
  </div>
26
27
  </div>
27
28
  `;
28
- }
29
+ }
29
30
  };
30
- LitProgressBar.styles = [
31
- css `
31
+ s.styles = [
32
+ m`
32
33
  .container {
33
34
  gap: 4px;
34
35
  }
@@ -66,16 +67,17 @@ LitProgressBar.styles = [
66
67
  font-weight: 500;
67
68
  font-size: 14px;
68
69
  }
69
- `,
70
+ `
70
71
  ];
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
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
+ };
@@ -1,135 +1,91 @@
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 "../node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { render as p, html as d } from "../node_modules/lit-html/lit-html.js";
3
+ import { LitElement as f } from "../node_modules/lit-element/lit-element.js";
4
+ import { customElement as u } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
5
+ import { property as h } from "../node_modules/@lit/reactive-element/decorators/property.js";
6
+ import { directive as g, Directive as v } from "../node_modules/lit-html/directive.js";
7
+ import { computePosition as w, offset as y, flip as E, shift as b, size as x, arrow as T } from "../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
8
+ import { css as _ } from "../node_modules/@lit/reactive-element/css-tag.js";
9
+ var k = Object.defineProperty, L = Object.getOwnPropertyDescriptor, a = (i, t, n, r) => {
10
+ for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
11
+ (s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
12
+ return r && o && k(t, n, o), o;
6
13
  };
7
- import { html, css, LitElement } from 'lit';
8
- import { customElement, property } from 'lit/decorators.js';
9
- import { directive, Directive } from 'lit/directive.js';
10
- import { render } from 'lit/html.js';
11
- import { computePosition, offset, shift, flip, size, arrow } from '@floating-ui/dom';
12
- const ENTER_EVENTS = ['pointerenter', 'mouseenter'];
13
- const LEAVE_EVENTS = ['pointerleave', 'mouseleave', 'blur', 'keydown', 'click', 'scroll'];
14
- let SimpleTooltip = class SimpleTooltip extends LitElement {
15
- constructor() {
16
- super(...arguments);
17
- this.showing = false;
18
- this.placement = 'top';
19
- this.offset = 8;
20
- this.openDelayMs = 300;
21
- this._target = null;
22
- this.openTimeout = null;
23
- this.isHoveringTarget = false;
24
- this.scheduleShow = () => {
25
- this.clearOpenTimeout();
26
- this.openTimeout = window.setTimeout(() => {
27
- if (this._target && this.isHoveringTarget) {
28
- this.showTooltipNow();
29
- }
30
- }, this.openDelayMs);
31
- };
32
- this.showTooltipNow = () => {
33
- this.style.removeProperty('display');
34
- this.style.zIndex = '100000';
35
- this.showing = true;
36
- // if (!document.body.contains(this)) {
37
- // document.body.appendChild(this);
38
- // }
39
- if (!this.target || !this.arrowElement)
40
- return;
41
- computePosition(this.target, this, {
42
- placement: this.placement,
43
- strategy: 'absolute',
44
- middleware: [
45
- offset(this.offset),
46
- flip(),
47
- shift({ padding: 8 }),
48
- size({ padding: 8 }),
49
- arrow({ element: this.arrowElement }),
50
- ],
51
- }).then(({ x, y, placement, middlewareData }) => {
52
- if (middlewareData.hide) {
53
- Object.assign(this.style, {
54
- display: middlewareData.hide.referenceHidden || !this.showing ? 'none' : 'block',
55
- });
56
- }
57
- Object.assign(this.style, {
58
- left: `${x}px`,
59
- top: `${y}px`,
60
- });
61
- const staticSide = {
62
- top: 'bottom',
63
- bottom: 'top',
64
- left: 'right',
65
- right: 'left',
66
- }[placement.split('-')[0]];
67
- const { x: arrowX, y: arrowY } = middlewareData.arrow || {};
68
- Object.assign(this.arrowElement.style, {
69
- left: arrowX != null ? `${arrowX}px` : '',
70
- top: arrowY != null ? `${arrowY}px` : '',
71
- right: '',
72
- bottom: '',
73
- [staticSide]: '-4px',
74
- });
75
- });
76
- };
77
- this.clearOpenTimeout = () => {
78
- if (this.openTimeout !== null) {
79
- clearTimeout(this.openTimeout);
80
- this.openTimeout = null;
81
- }
82
- };
83
- this.markHovering = () => {
84
- this.isHoveringTarget = true;
85
- };
86
- this.markNotHovering = () => {
87
- this.isHoveringTarget = false;
88
- this.clearOpenTimeout();
89
- };
90
- this.hide = () => {
91
- this.showing = false;
92
- this.style.display = 'none';
93
- };
94
- }
95
- get target() {
96
- return this._target;
97
- }
98
- set target(el) {
99
- if (this._target) {
100
- ENTER_EVENTS.forEach((evt) => {
101
- this._target.removeEventListener(evt, this.scheduleShow);
102
- this._target.removeEventListener(evt, this.markHovering);
103
- });
104
- LEAVE_EVENTS.forEach((evt) => this._target.removeEventListener(evt, this.hide));
105
- }
106
- if (el) {
107
- ENTER_EVENTS.forEach((evt) => {
108
- el.addEventListener(evt, this.scheduleShow);
109
- el.addEventListener(evt, this.markHovering);
110
- });
111
- LEAVE_EVENTS.forEach((evt) => {
112
- el.addEventListener(evt, this.markNotHovering);
113
- el.addEventListener(evt, this.hide);
114
- });
115
- }
116
- this._target = el;
117
- }
118
- connectedCallback() {
119
- super.connectedCallback();
120
- this.style.display = 'none';
121
- }
122
- firstUpdated() {
123
- this.arrowElement = this.shadowRoot.getElementById('arrow');
124
- }
125
- render() {
126
- return html `
14
+ const m = ["pointerenter", "mouseenter"], c = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
15
+ let l = class extends f {
16
+ constructor() {
17
+ super(...arguments), this.showing = !1, this.placement = "top", this.offset = 8, this.openDelayMs = 300, this._target = null, this.openTimeout = null, this.isHoveringTarget = !1, this.scheduleShow = () => {
18
+ this.clearOpenTimeout(), this.openTimeout = window.setTimeout(() => {
19
+ this._target && this.isHoveringTarget && this.showTooltipNow();
20
+ }, this.openDelayMs);
21
+ }, this.showTooltipNow = () => {
22
+ this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && w(this.target, this, {
23
+ placement: this.placement,
24
+ strategy: "absolute",
25
+ middleware: [
26
+ y(this.offset),
27
+ E(),
28
+ b({ padding: 8 }),
29
+ x({ padding: 8 }),
30
+ T({ element: this.arrowElement })
31
+ ]
32
+ }).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
33
+ r.hide && Object.assign(this.style, {
34
+ display: r.hide.referenceHidden || !this.showing ? "none" : "block"
35
+ }), Object.assign(this.style, {
36
+ left: `${i}px`,
37
+ top: `${t}px`
38
+ });
39
+ const o = {
40
+ top: "bottom",
41
+ bottom: "top",
42
+ left: "right",
43
+ right: "left"
44
+ }[n.split("-")[0]], { x: e, y: s } = r.arrow || {};
45
+ Object.assign(this.arrowElement.style, {
46
+ left: e != null ? `${e}px` : "",
47
+ top: s != null ? `${s}px` : "",
48
+ right: "",
49
+ bottom: "",
50
+ [o]: "-4px"
51
+ });
52
+ });
53
+ }, this.clearOpenTimeout = () => {
54
+ this.openTimeout !== null && (clearTimeout(this.openTimeout), this.openTimeout = null);
55
+ }, this.markHovering = () => {
56
+ this.isHoveringTarget = !0;
57
+ }, this.markNotHovering = () => {
58
+ this.isHoveringTarget = !1, this.clearOpenTimeout();
59
+ }, this.hide = () => {
60
+ this.showing = !1, this.style.display = "none";
61
+ };
62
+ }
63
+ get target() {
64
+ return this._target;
65
+ }
66
+ set target(i) {
67
+ this._target && (m.forEach((t) => {
68
+ this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
69
+ }), c.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (m.forEach((t) => {
70
+ i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
71
+ }), c.forEach((t) => {
72
+ i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
73
+ })), this._target = i;
74
+ }
75
+ connectedCallback() {
76
+ super.connectedCallback(), this.style.display = "none";
77
+ }
78
+ firstUpdated() {
79
+ this.arrowElement = this.shadowRoot.getElementById("arrow");
80
+ }
81
+ render() {
82
+ return d`
127
83
  <div id="arrow"></div>
128
84
  <slot></slot>
129
85
  `;
130
- }
86
+ }
131
87
  };
132
- SimpleTooltip.styles = css `
88
+ l.styles = _`
133
89
  :host {
134
90
  position: absolute;
135
91
  display: inline-block;
@@ -173,76 +129,46 @@ SimpleTooltip.styles = css `
173
129
  max-height: 70vh;
174
130
  }
175
131
  `;
176
- __decorate([
177
- property({ type: Boolean, reflect: true })
178
- ], SimpleTooltip.prototype, "showing", void 0);
179
- __decorate([
180
- property({ type: String, reflect: true })
181
- ], SimpleTooltip.prototype, "placement", void 0);
182
- __decorate([
183
- property({ type: Number })
184
- ], SimpleTooltip.prototype, "offset", void 0);
185
- __decorate([
186
- property({ type: Number })
187
- ], SimpleTooltip.prototype, "openDelayMs", void 0);
188
- SimpleTooltip = __decorate([
189
- customElement('simple-tooltip')
190
- ], SimpleTooltip);
191
- export { SimpleTooltip };
192
- class TooltipDirective extends Directive {
193
- constructor() {
194
- super(...arguments);
195
- this.initialized = false;
196
- }
197
- disconnect() {
198
- if (this.tooltip) {
199
- this.tooltip.hide();
200
- // Remove from DOM to avoid leaks if desired
201
- if (this.tooltip.parentElement) {
202
- this.tooltip.parentElement.removeChild(this.tooltip);
203
- }
204
- this.tooltip = undefined;
205
- this.initialized = false;
206
- }
207
- }
208
- render() { } // required override
209
- update(part, [content, placement = 'top', delay = 200]) {
210
- this.part = part;
211
- this.content = content;
212
- this.placement = placement;
213
- this.delay = delay;
214
- const target = this.part.element;
215
- if (!this.initialized) {
216
- this.initialized = true;
217
- const onEnter = () => {
218
- if (!this.tooltip) {
219
- this.tooltip = document.createElement('simple-tooltip');
220
- this.tooltip.placement = this.placement;
221
- this.tooltip.openDelayMs = this.delay;
222
- document.body.appendChild(this.tooltip);
223
- render(this.content, this.tooltip, this.part.options);
224
- }
225
- this.tooltip.target = target;
226
- this.tooltip.openDelayMs = this.delay;
227
- this.tooltip.placement = this.placement;
228
- this.tooltip.scheduleShow();
229
- // Lazy mounting done — clean up listener
230
- target.removeEventListener('mouseenter', onEnter);
231
- target.removeEventListener('pointerenter', onEnter);
232
- };
233
- target.addEventListener('mouseenter', onEnter);
234
- target.addEventListener('pointerenter', onEnter);
235
- }
236
- if (this.tooltip) {
237
- this.tooltip.openDelayMs = this.delay;
238
- this.tooltip.placement = this.placement;
239
- render(this.content, this.tooltip, this.part.options);
240
- // Hide tooltip if target is not in DOM
241
- if (!document.body.contains(target)) {
242
- this.tooltip.hide();
243
- }
244
- }
132
+ a([
133
+ h({ type: Boolean, reflect: !0 })
134
+ ], l.prototype, "showing", 2);
135
+ a([
136
+ h({ type: String, reflect: !0 })
137
+ ], l.prototype, "placement", 2);
138
+ a([
139
+ h({ type: Number })
140
+ ], l.prototype, "offset", 2);
141
+ a([
142
+ h({ type: Number })
143
+ ], l.prototype, "openDelayMs", 2);
144
+ l = a([
145
+ u("simple-tooltip")
146
+ ], l);
147
+ class H extends v {
148
+ constructor() {
149
+ super(...arguments), this.initialized = !1;
150
+ }
151
+ disconnect() {
152
+ this.tooltip && (this.tooltip.hide(), this.tooltip.parentElement && this.tooltip.parentElement.removeChild(this.tooltip), this.tooltip = void 0, this.initialized = !1);
153
+ }
154
+ render() {
155
+ }
156
+ // required override
157
+ update(t, [n, r = "top", o = 200]) {
158
+ this.part = t, this.content = n, this.placement = r, this.delay = o;
159
+ const e = this.part.element;
160
+ if (!this.initialized) {
161
+ this.initialized = !0;
162
+ const s = () => {
163
+ this.tooltip || (this.tooltip = document.createElement("simple-tooltip"), this.tooltip.placement = this.placement, this.tooltip.openDelayMs = this.delay, document.body.appendChild(this.tooltip), p(this.content, this.tooltip, this.part.options)), this.tooltip.target = e, this.tooltip.openDelayMs = this.delay, this.tooltip.placement = this.placement, this.tooltip.scheduleShow(), e.removeEventListener("mouseenter", s), e.removeEventListener("pointerenter", s);
164
+ };
165
+ e.addEventListener("mouseenter", s), e.addEventListener("pointerenter", s);
245
166
  }
167
+ this.tooltip && (this.tooltip.openDelayMs = this.delay, this.tooltip.placement = this.placement, p(this.content, this.tooltip, this.part.options), document.body.contains(e) || this.tooltip.hide());
168
+ }
246
169
  }
247
- export const tooltip = directive(TooltipDirective);
248
- //# sourceMappingURL=simple-tooltip.js.map
170
+ const j = g(H);
171
+ export {
172
+ l as SimpleTooltip,
173
+ j as tooltip
174
+ };
@@ -1,5 +1,8 @@
1
- import { css } from 'lit';
2
- const buttonStyles = css `
1
+ import "../../node_modules/@lit/reactive-element/reactive-element.js";
2
+ import "../../node_modules/lit-html/lit-html.js";
3
+ import "../../node_modules/lit-element/lit-element.js";
4
+ import { css as o } from "../../node_modules/@lit/reactive-element/css-tag.js";
5
+ const e = o`
3
6
  button {
4
7
  font-family: inherit;
5
8
  border-radius: var(--border-radius-small, 0.5rem);
@@ -197,5 +200,6 @@ const buttonStyles = css `
197
200
  border: none;
198
201
  }
199
202
  `;
200
- export default buttonStyles;
201
- //# sourceMappingURL=button-shared-styles.js.map
203
+ export {
204
+ e as default
205
+ };