overview-components 1.0.83 → 1.0.89

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 (239) hide show
  1. package/dist/assets/generated/locales/de.js +72 -70
  2. package/dist/assets/generated/locales/en.js +72 -70
  3. package/dist/assets/generated/locales/fr.js +72 -70
  4. package/dist/assets/generated/locales/hr.js +72 -70
  5. package/dist/assets/generated/locales/it.js +72 -70
  6. package/dist/assets/generated/locales/pl.js +72 -70
  7. package/dist/assets/generated/locales/ro.js +72 -70
  8. package/dist/assets/generated/locales/sk.js +72 -70
  9. package/dist/assets/generated/locales/sr.js +72 -70
  10. package/dist/components/lit-attachments-tab.js +267 -432
  11. package/dist/components/lit-badge.js +37 -40
  12. package/dist/components/lit-case-variables-tab.js +378 -497
  13. package/dist/components/lit-chart.js +375 -406
  14. package/dist/components/lit-data-grid-tanstack.js +1145 -1663
  15. package/dist/components/lit-filter-modal.js +194 -230
  16. package/dist/components/lit-multiselect-item.js +297 -477
  17. package/dist/components/lit-section-tab.js +69 -85
  18. package/dist/components/lit-tabs-overview.js +187 -232
  19. package/dist/components/react-wrappers/attachments-tab.js +13 -8
  20. package/dist/components/react-wrappers/badge.js +13 -8
  21. package/dist/components/react-wrappers/button.js +13 -8
  22. package/dist/components/react-wrappers/case-variables-tab.js +13 -8
  23. package/dist/components/react-wrappers/chart.js +13 -8
  24. package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
  25. package/dist/components/react-wrappers/filter-modal.js +13 -8
  26. package/dist/components/react-wrappers/progress-bar.js +13 -8
  27. package/dist/components/react-wrappers/section-tab.js +13 -8
  28. package/dist/components/react-wrappers/tabs-overview.js +13 -8
  29. package/dist/index.d.ts +1 -64
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +42 -4819
  32. package/dist/node_modules/@lit/reactive-element/css-tag.js +42 -0
  33. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  34. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  35. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  36. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  37. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  38. package/dist/node_modules/@lit/reactive-element/reactive-element.js +249 -0
  39. package/dist/node_modules/lit-html/async-directive.js +69 -0
  40. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  41. package/dist/node_modules/lit-html/directive.js +27 -0
  42. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  43. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  44. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  45. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  46. package/dist/node_modules/lit-html/lit-html.js +242 -0
  47. package/dist/shared/lit-button.js +63 -80
  48. package/dist/shared/lit-icon-button.d.ts +1 -1
  49. package/dist/shared/lit-icon-button.d.ts.map +1 -1
  50. package/dist/shared/lit-loader.d.ts +1 -1
  51. package/dist/shared/lit-loader.d.ts.map +1 -1
  52. package/dist/shared/lit-loading-bar.d.ts +1 -1
  53. package/dist/shared/lit-loading-bar.d.ts.map +1 -1
  54. package/dist/shared/lit-menu-item.d.ts +1 -1
  55. package/dist/shared/lit-menu-item.d.ts.map +1 -1
  56. package/dist/shared/lit-progress-bar.js +32 -33
  57. package/dist/shared/lit-text-field.d.ts +1 -1
  58. package/dist/shared/lit-text-field.d.ts.map +1 -1
  59. package/dist/shared/simple-tooltip.js +122 -198
  60. package/dist/shared/styles/button-shared-styles.js +5 -4
  61. package/dist/utils/currency.js +12 -15
  62. package/dist/utils/custom-filters.js +45 -80
  63. package/dist/utils/date.js +13 -21
  64. package/dist/utils/getOperatorByType.js +50 -65
  65. package/dist/utils/localization.js +29 -431
  66. package/package.json +74 -87
  67. package/dist/assets/generated/locales/de.js.map +0 -1
  68. package/dist/assets/generated/locales/en.js.map +0 -1
  69. package/dist/assets/generated/locales/fr.js.map +0 -1
  70. package/dist/assets/generated/locales/hr.js.map +0 -1
  71. package/dist/assets/generated/locales/it.js.map +0 -1
  72. package/dist/assets/generated/locales/pl.js.map +0 -1
  73. package/dist/assets/generated/locales/ro.js.map +0 -1
  74. package/dist/assets/generated/locales/sk.js.map +0 -1
  75. package/dist/assets/generated/locales/sr.js.map +0 -1
  76. package/dist/assets/icons/iconGlyphs.js +0 -679
  77. package/dist/assets/icons/iconGlyphs.js.map +0 -1
  78. package/dist/assets/illustration/delete-illustration.js +0 -96
  79. package/dist/assets/illustration/delete-illustration.js.map +0 -1
  80. package/dist/assets/illustration/no-content.js +0 -167
  81. package/dist/assets/illustration/no-content.js.map +0 -1
  82. package/dist/assets/illustration/no-preview.js +0 -133
  83. package/dist/assets/illustration/no-preview.js.map +0 -1
  84. package/dist/assets/illustration/not-found.js +0 -106
  85. package/dist/assets/illustration/not-found.js.map +0 -1
  86. package/dist/assets/illustration/settings-illustration.js +0 -176
  87. package/dist/assets/illustration/settings-illustration.js.map +0 -1
  88. package/dist/components/components-settings/attachments-tab-settings.js +0 -226
  89. package/dist/components/components-settings/attachments-tab-settings.js.map +0 -1
  90. package/dist/components/components-settings/data-grid-settings.js +0 -318
  91. package/dist/components/components-settings/data-grid-settings.js.map +0 -1
  92. package/dist/components/components-settings/section-tab-settings.js +0 -269
  93. package/dist/components/components-settings/section-tab-settings.js.map +0 -1
  94. package/dist/components/components-settings/tabs-overview-settings.js +0 -439
  95. package/dist/components/components-settings/tabs-overview-settings.js.map +0 -1
  96. package/dist/components/lit-attachments-tab.js.map +0 -1
  97. package/dist/components/lit-badge.js.map +0 -1
  98. package/dist/components/lit-case-variables-tab.js.map +0 -1
  99. package/dist/components/lit-chart.js.map +0 -1
  100. package/dist/components/lit-data-grid-tanstack.js.map +0 -1
  101. package/dist/components/lit-filter-modal.js.map +0 -1
  102. package/dist/components/lit-multiselect-item.js.map +0 -1
  103. package/dist/components/lit-section-tab.js.map +0 -1
  104. package/dist/components/lit-tabs-overview.js.map +0 -1
  105. package/dist/components/modals/lit-confirm-modal.js +0 -120
  106. package/dist/components/modals/lit-confirm-modal.js.map +0 -1
  107. package/dist/components/modals/lit-delete-modal.js +0 -128
  108. package/dist/components/modals/lit-delete-modal.js.map +0 -1
  109. package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
  110. package/dist/components/react-wrappers/badge.js.map +0 -1
  111. package/dist/components/react-wrappers/button.js.map +0 -1
  112. package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
  113. package/dist/components/react-wrappers/chart.js.map +0 -1
  114. package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
  115. package/dist/components/react-wrappers/filter-modal.js.map +0 -1
  116. package/dist/components/react-wrappers/progress-bar.js.map +0 -1
  117. package/dist/components/react-wrappers/section-tab.js.map +0 -1
  118. package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
  119. package/dist/data/translations.js +0 -2763
  120. package/dist/data/translations.js.map +0 -1
  121. package/dist/index.js.map +0 -1
  122. package/dist/schemas/index.js +0 -17
  123. package/dist/schemas/index.js.map +0 -1
  124. package/dist/schemas/lit-attachments-tab-document.schema.js +0 -20
  125. package/dist/schemas/lit-attachments-tab-document.schema.js.map +0 -1
  126. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +0 -15
  127. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +0 -1
  128. package/dist/schemas/lit-attachments-tab.schema.js +0 -32
  129. package/dist/schemas/lit-attachments-tab.schema.js.map +0 -1
  130. package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
  131. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
  132. package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
  133. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
  134. package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
  135. package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
  136. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
  137. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
  138. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
  139. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
  140. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
  141. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
  142. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
  143. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
  144. package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
  145. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
  146. package/dist/schemas/lit-section-tab-schema.js +0 -24
  147. package/dist/schemas/lit-section-tab-schema.js.map +0 -1
  148. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +0 -6
  149. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +0 -1
  150. package/dist/schemas/lit-tabs-overview-tab.schema.js +0 -32
  151. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +0 -1
  152. package/dist/schemas/lit-tabs-overview.schema.js +0 -29
  153. package/dist/schemas/lit-tabs-overview.schema.js.map +0 -1
  154. package/dist/scripts/translate-locales.js +0 -69
  155. package/dist/scripts/translate-locales.js.map +0 -1
  156. package/dist/shared/filter-inputs.js +0 -427
  157. package/dist/shared/filter-inputs.js.map +0 -1
  158. package/dist/shared/lit-button.js.map +0 -1
  159. package/dist/shared/lit-case-variables-tab-cell.js +0 -226
  160. package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
  161. package/dist/shared/lit-checkbox.js +0 -171
  162. package/dist/shared/lit-checkbox.js.map +0 -1
  163. package/dist/shared/lit-custom-popper.js +0 -117
  164. package/dist/shared/lit-custom-popper.js.map +0 -1
  165. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
  166. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
  167. package/dist/shared/lit-data-grid-density-popover.js +0 -84
  168. package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
  169. package/dist/shared/lit-data-grid-export-popover.js +0 -68
  170. package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
  171. package/dist/shared/lit-data-grid-operators-popover.js +0 -114
  172. package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
  173. package/dist/shared/lit-data-grid-row-actions.js +0 -76
  174. package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
  175. package/dist/shared/lit-date-picker.js +0 -606
  176. package/dist/shared/lit-date-picker.js.map +0 -1
  177. package/dist/shared/lit-icon-button.js +0 -105
  178. package/dist/shared/lit-icon-button.js.map +0 -1
  179. package/dist/shared/lit-icon.js +0 -284
  180. package/dist/shared/lit-icon.js.map +0 -1
  181. package/dist/shared/lit-input.js +0 -239
  182. package/dist/shared/lit-input.js.map +0 -1
  183. package/dist/shared/lit-label.js +0 -104
  184. package/dist/shared/lit-label.js.map +0 -1
  185. package/dist/shared/lit-loader.js +0 -69
  186. package/dist/shared/lit-loader.js.map +0 -1
  187. package/dist/shared/lit-loading-bar.js +0 -127
  188. package/dist/shared/lit-loading-bar.js.map +0 -1
  189. package/dist/shared/lit-menu-item.js +0 -99
  190. package/dist/shared/lit-menu-item.js.map +0 -1
  191. package/dist/shared/lit-menu.js +0 -42
  192. package/dist/shared/lit-menu.js.map +0 -1
  193. package/dist/shared/lit-modal-body.js +0 -22
  194. package/dist/shared/lit-modal-body.js.map +0 -1
  195. package/dist/shared/lit-modal-footer.js +0 -29
  196. package/dist/shared/lit-modal-footer.js.map +0 -1
  197. package/dist/shared/lit-modal-header.js +0 -36
  198. package/dist/shared/lit-modal-header.js.map +0 -1
  199. package/dist/shared/lit-modal.js +0 -169
  200. package/dist/shared/lit-modal.js.map +0 -1
  201. package/dist/shared/lit-overflow-tooltip.js +0 -103
  202. package/dist/shared/lit-overflow-tooltip.js.map +0 -1
  203. package/dist/shared/lit-pill.js +0 -88
  204. package/dist/shared/lit-pill.js.map +0 -1
  205. package/dist/shared/lit-progress-bar.js.map +0 -1
  206. package/dist/shared/lit-responsive-button.js +0 -94
  207. package/dist/shared/lit-responsive-button.js.map +0 -1
  208. package/dist/shared/lit-select-field.js +0 -459
  209. package/dist/shared/lit-select-field.js.map +0 -1
  210. package/dist/shared/lit-select.js +0 -413
  211. package/dist/shared/lit-select.js.map +0 -1
  212. package/dist/shared/lit-settings.js +0 -77
  213. package/dist/shared/lit-settings.js.map +0 -1
  214. package/dist/shared/lit-text-field.js +0 -222
  215. package/dist/shared/lit-text-field.js.map +0 -1
  216. package/dist/shared/lit-toggle.js +0 -222
  217. package/dist/shared/lit-toggle.js.map +0 -1
  218. package/dist/shared/lit-tooltip.js +0 -166
  219. package/dist/shared/lit-tooltip.js.map +0 -1
  220. package/dist/shared/simple-popper.js +0 -266
  221. package/dist/shared/simple-popper.js.map +0 -1
  222. package/dist/shared/simple-tooltip.js.map +0 -1
  223. package/dist/shared/styles/button-shared-styles.js.map +0 -1
  224. package/dist/style.css +0 -1
  225. package/dist/styles.js +0 -169
  226. package/dist/styles.js.map +0 -1
  227. package/dist/utils/currency.js.map +0 -1
  228. package/dist/utils/custom-filters.js.map +0 -1
  229. package/dist/utils/date.js.map +0 -1
  230. package/dist/utils/getOperatorByType.js.map +0 -1
  231. package/dist/utils/getOverviewValue.js +0 -177
  232. package/dist/utils/getOverviewValue.js.map +0 -1
  233. package/dist/utils/localization.js.map +0 -1
  234. package/dist/utils/utils.js +0 -13
  235. package/dist/utils/utils.js.map +0 -1
  236. package/dist/utils/validate-json-schema.js +0 -8
  237. package/dist/utils/validate-json-schema.js.map +0 -1
  238. package/dist/validators/validator.js +0 -7
  239. package/dist/validators/validator.js.map +0 -1
@@ -1,135 +1,89 @@
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 { css as m, LitElement as f, html as u } from "lit";
2
+ import { customElement as g } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
3
+ import { property as a } from "../node_modules/@lit/reactive-element/decorators/property.js";
4
+ import { directive as v, Directive as w } from "../node_modules/lit-html/directive.js";
5
+ import { render as p } from "../node_modules/lit-html/lit-html.js";
6
+ import { computePosition as y, offset as E, flip as b, shift as x, size as T, arrow as _ } from "@floating-ui/dom";
7
+ var k = Object.defineProperty, L = Object.getOwnPropertyDescriptor, h = (i, t, n, r) => {
8
+ for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
9
+ (s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
10
+ return r && o && k(t, n, o), o;
6
11
  };
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 `
12
+ const c = ["pointerenter", "mouseenter"], d = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
13
+ let l = class extends f {
14
+ constructor() {
15
+ 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 = () => {
16
+ this.clearOpenTimeout(), this.openTimeout = window.setTimeout(() => {
17
+ this._target && this.isHoveringTarget && this.showTooltipNow();
18
+ }, this.openDelayMs);
19
+ }, this.showTooltipNow = () => {
20
+ this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && y(this.target, this, {
21
+ placement: this.placement,
22
+ strategy: "absolute",
23
+ middleware: [
24
+ E(this.offset),
25
+ b(),
26
+ x({ padding: 8 }),
27
+ T({ padding: 8 }),
28
+ _({ element: this.arrowElement })
29
+ ]
30
+ }).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
31
+ r.hide && Object.assign(this.style, {
32
+ display: r.hide.referenceHidden || !this.showing ? "none" : "block"
33
+ }), Object.assign(this.style, {
34
+ left: `${i}px`,
35
+ top: `${t}px`
36
+ });
37
+ const o = {
38
+ top: "bottom",
39
+ bottom: "top",
40
+ left: "right",
41
+ right: "left"
42
+ }[n.split("-")[0]], { x: e, y: s } = r.arrow || {};
43
+ Object.assign(this.arrowElement.style, {
44
+ left: e != null ? `${e}px` : "",
45
+ top: s != null ? `${s}px` : "",
46
+ right: "",
47
+ bottom: "",
48
+ [o]: "-4px"
49
+ });
50
+ });
51
+ }, this.clearOpenTimeout = () => {
52
+ this.openTimeout !== null && (clearTimeout(this.openTimeout), this.openTimeout = null);
53
+ }, this.markHovering = () => {
54
+ this.isHoveringTarget = !0;
55
+ }, this.markNotHovering = () => {
56
+ this.isHoveringTarget = !1, this.clearOpenTimeout();
57
+ }, this.hide = () => {
58
+ this.showing = !1, this.style.display = "none";
59
+ };
60
+ }
61
+ get target() {
62
+ return this._target;
63
+ }
64
+ set target(i) {
65
+ this._target && (c.forEach((t) => {
66
+ this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
67
+ }), d.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (c.forEach((t) => {
68
+ i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
69
+ }), d.forEach((t) => {
70
+ i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
71
+ })), this._target = i;
72
+ }
73
+ connectedCallback() {
74
+ super.connectedCallback(), this.style.display = "none";
75
+ }
76
+ firstUpdated() {
77
+ this.arrowElement = this.shadowRoot.getElementById("arrow");
78
+ }
79
+ render() {
80
+ return u`
127
81
  <div id="arrow"></div>
128
82
  <slot></slot>
129
83
  `;
130
- }
84
+ }
131
85
  };
132
- SimpleTooltip.styles = css `
86
+ l.styles = m`
133
87
  :host {
134
88
  position: absolute;
135
89
  display: inline-block;
@@ -173,76 +127,46 @@ SimpleTooltip.styles = css `
173
127
  max-height: 70vh;
174
128
  }
175
129
  `;
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
- }
130
+ h([
131
+ a({ type: Boolean, reflect: !0 })
132
+ ], l.prototype, "showing", 2);
133
+ h([
134
+ a({ type: String, reflect: !0 })
135
+ ], l.prototype, "placement", 2);
136
+ h([
137
+ a({ type: Number })
138
+ ], l.prototype, "offset", 2);
139
+ h([
140
+ a({ type: Number })
141
+ ], l.prototype, "openDelayMs", 2);
142
+ l = h([
143
+ g("simple-tooltip")
144
+ ], l);
145
+ class H extends w {
146
+ constructor() {
147
+ super(...arguments), this.initialized = !1;
148
+ }
149
+ disconnect() {
150
+ this.tooltip && (this.tooltip.hide(), this.tooltip.parentElement && this.tooltip.parentElement.removeChild(this.tooltip), this.tooltip = void 0, this.initialized = !1);
151
+ }
152
+ render() {
153
+ }
154
+ // required override
155
+ update(t, [n, r = "top", o = 200]) {
156
+ this.part = t, this.content = n, this.placement = r, this.delay = o;
157
+ const e = this.part.element;
158
+ if (!this.initialized) {
159
+ this.initialized = !0;
160
+ const s = () => {
161
+ 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);
162
+ };
163
+ e.addEventListener("mouseenter", s), e.addEventListener("pointerenter", s);
245
164
  }
165
+ 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());
166
+ }
246
167
  }
247
- export const tooltip = directive(TooltipDirective);
248
- //# sourceMappingURL=simple-tooltip.js.map
168
+ const P = v(H);
169
+ export {
170
+ l as SimpleTooltip,
171
+ P as tooltip
172
+ };
@@ -1,5 +1,5 @@
1
- import { css } from 'lit';
2
- const buttonStyles = css `
1
+ import { css as o } from "lit";
2
+ const t = o`
3
3
  button {
4
4
  font-family: inherit;
5
5
  border-radius: var(--border-radius-small, 0.5rem);
@@ -197,5 +197,6 @@ const buttonStyles = css `
197
197
  border: none;
198
198
  }
199
199
  `;
200
- export default buttonStyles;
201
- //# sourceMappingURL=button-shared-styles.js.map
200
+ export {
201
+ t as default
202
+ };
@@ -1,16 +1,13 @@
1
- export const formatCurrency = (value, locale) => {
2
- if (value === null) {
3
- return null;
4
- }
5
- if (value === '') {
6
- return '';
7
- }
8
- const number = typeof value === 'string' ? parseFloat(value) : value;
9
- if (isNaN(number)) {
10
- return 'Invalid number';
11
- }
12
- return new Intl.NumberFormat(locale, {
13
- style: 'decimal',
14
- }).format(number);
1
+ const e = (r, t) => {
2
+ if (r === null)
3
+ return null;
4
+ if (r === "")
5
+ return "";
6
+ const n = typeof r == "string" ? parseFloat(r) : r;
7
+ return isNaN(n) ? "Invalid number" : new Intl.NumberFormat(t, {
8
+ style: "decimal"
9
+ }).format(n);
10
+ };
11
+ export {
12
+ e as formatCurrency
15
13
  };
16
- //# sourceMappingURL=currency.js.map
@@ -1,84 +1,49 @@
1
- // @ts-nocheck
2
- import { DateTime } from 'luxon';
3
- export const dateRangeFilterFn = (row, columnId, filterValue) => {
4
- const rowValue = row.getValue(columnId);
5
- if (!rowValue)
6
- return false;
7
- const rowDate = parseDate(rowValue);
8
- const startDate = filterValue.startDate;
9
- const endDate = filterValue.endDate;
10
- // console.log('rowDate', rowDate);
11
- // console.log('startDate', startDate);
12
- // console.log('endDate', endDate);
13
- if (startDate && endDate) {
14
- return rowDate >= startDate && rowDate <= endDate;
15
- }
16
- else if (startDate) {
17
- return rowDate >= startDate;
18
- }
19
- else if (endDate) {
20
- return rowDate <= endDate;
21
- }
22
- return true;
1
+ import { DateTime as M } from "luxon";
2
+ const i = (e, r, y) => {
3
+ const t = e.getValue(r);
4
+ if (!t) return !1;
5
+ const s = a(t), d = y.startDate, n = y.endDate;
6
+ return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
23
7
  };
24
- export function dateFilterFn(row, columnId, filterValue) {
25
- const rowValue = row.getValue(columnId);
26
- if (!rowValue)
27
- return false;
28
- const date1 = parseDate(rowValue);
29
- const date2 = filterValue;
30
- // console.log('rowDate', rowValue);
31
- // console.log('date1', date1);
32
- // console.log('date2', date2);
33
- // Check if both dates are valid
34
- if (!date1 || !date2) {
35
- return false;
36
- }
37
- // Compare year, month, and day directly
38
- const isEqual = date1 === date2;
39
- return isEqual;
8
+ function l(e, r, y) {
9
+ const t = e.getValue(r);
10
+ if (!t) return !1;
11
+ const s = a(t), d = y;
12
+ return !s || !d ? !1 : s === d;
40
13
  }
41
- export const multiselectFilterFn = (row, columnId, filterValue) => {
42
- const rowValue = row.getValue(columnId);
43
- if (!rowValue)
44
- return false;
45
- return filterValue.includes(rowValue);
14
+ const u = (e, r, y) => {
15
+ const t = e.getValue(r);
16
+ return t ? y.includes(t) : !1;
46
17
  };
47
- function parseDate(dateStr) {
48
- if (!dateStr)
49
- return null;
50
- // Define possible date formats
51
- const possibleFormats = [
52
- 'yyyy-MM-dd',
53
- 'dd-MM-yyyy',
54
- 'MM-dd-yyyy',
55
- 'd. M. yyyy',
56
- 'd. M. yyyy.',
57
- 'd.M.yyyy',
58
- 'yyyy/MM/dd',
59
- 'dd/MM/yyyy',
60
- 'M/d/yyyy',
61
- 'MM/dd/yyyy',
62
- 'dd MMMM yyyy',
63
- "yyyy-MM-dd'T'HH:mm:ss",
64
- "yyyy-MM-dd'T'HH:mm:ss.SSS",
65
- "yyyy-MM-dd'T'HH:mm:ss.SSSZ",
66
- 'dd.MM.yyyy',
67
- 'MM.dd.yyyy',
68
- 'EEE, d MMM yyyy',
69
- 'EEE, d MMM yyyy HH:mm:ss Z',
70
- ];
71
- let date;
72
- // Try each format until one is valid
73
- for (const format of possibleFormats) {
74
- date = DateTime.fromFormat(dateStr, format);
75
- if (date.isValid)
76
- break; // Stop if a valid date is found
77
- }
78
- // If all formats fail, try as ISO string
79
- if (!date || !date.isValid) {
80
- date = DateTime.fromISO(dateStr);
81
- }
82
- return date.isValid ? date.toJSDate().toISOString() : null;
18
+ function a(e) {
19
+ if (!e) return null;
20
+ const r = [
21
+ "yyyy-MM-dd",
22
+ "dd-MM-yyyy",
23
+ "MM-dd-yyyy",
24
+ "d. M. yyyy",
25
+ "d. M. yyyy.",
26
+ "d.M.yyyy",
27
+ "yyyy/MM/dd",
28
+ "dd/MM/yyyy",
29
+ "M/d/yyyy",
30
+ "MM/dd/yyyy",
31
+ "dd MMMM yyyy",
32
+ "yyyy-MM-dd'T'HH:mm:ss",
33
+ "yyyy-MM-dd'T'HH:mm:ss.SSS",
34
+ "yyyy-MM-dd'T'HH:mm:ss.SSSZ",
35
+ "dd.MM.yyyy",
36
+ "MM.dd.yyyy",
37
+ "EEE, d MMM yyyy",
38
+ "EEE, d MMM yyyy HH:mm:ss Z"
39
+ ];
40
+ let y;
41
+ for (const t of r)
42
+ if (y = M.fromFormat(e, t), y.isValid) break;
43
+ return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
83
44
  }
84
- //# sourceMappingURL=custom-filters.js.map
45
+ export {
46
+ l as dateFilterFn,
47
+ i as dateRangeFilterFn,
48
+ u as multiselectFilterFn
49
+ };
@@ -1,22 +1,14 @@
1
- import { DateTime } from 'luxon';
2
- export const formatDate = (date, locale, time = false, dateFormat) => {
3
- if (date === null) {
4
- return null;
5
- }
6
- if (date === '') {
7
- return '';
8
- }
9
- const format = time ? `${dateFormat} HH:mm` : `${dateFormat}`;
10
- const dateObj = new Date(date);
11
- // if invalid date return Invalid Date
12
- if (isNaN(dateObj.getTime())) {
13
- return 'Invalid date';
14
- }
15
- if (dateFormat) {
16
- return DateTime.fromISO(date).toFormat(format);
17
- }
18
- return DateTime.fromISO(date)
19
- .setLocale(locale)
20
- .toLocaleString(time ? DateTime.DATETIME_SHORT : undefined);
1
+ import { DateTime as t } from "luxon";
2
+ const m = (r, e, n = !1, o) => {
3
+ if (r === null)
4
+ return null;
5
+ if (r === "")
6
+ return "";
7
+ const f = n ? `${o} HH:mm` : `${o}`, i = new Date(r);
8
+ return isNaN(i.getTime()) ? "Invalid date" : o ? t.fromISO(r).toFormat(f) : t.fromISO(r).setLocale(e).toLocaleString(
9
+ n ? t.DATETIME_SHORT : void 0
10
+ );
11
+ };
12
+ export {
13
+ m as formatDate
21
14
  };
22
- //# sourceMappingURL=date.js.map