overview-components 1.0.75 → 1.0.76

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 (78) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/_commonjsHelpers.js +4 -0
  3. package/dist/components/lit-attachments-tab.js +11 -7
  4. package/dist/components/lit-badge.js +10 -7
  5. package/dist/components/lit-case-variables-tab.js +23 -19
  6. package/dist/components/lit-chart.js +24 -21
  7. package/dist/components/lit-data-grid-tanstack.js +42 -37
  8. package/dist/components/lit-filter-modal.js +6 -2
  9. package/dist/components/lit-multiselect-item.js +7 -3
  10. package/dist/components/lit-section-tab.js +15 -11
  11. package/dist/components/lit-tabs-overview.js +9 -5
  12. package/dist/components/react-wrappers/attachments-tab.js +1 -1
  13. package/dist/components/react-wrappers/badge.js +1 -1
  14. package/dist/components/react-wrappers/button.js +3 -3
  15. package/dist/components/react-wrappers/case-variables-tab.js +3 -3
  16. package/dist/components/react-wrappers/chart.js +3 -3
  17. package/dist/components/react-wrappers/data-grid-tanstack.js +1 -1
  18. package/dist/components/react-wrappers/filter-modal.js +4 -4
  19. package/dist/components/react-wrappers/progress-bar.js +5 -5
  20. package/dist/components/react-wrappers/section-tab.js +4 -4
  21. package/dist/components/react-wrappers/tabs-overview.js +3 -3
  22. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  23. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  24. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  25. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  26. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  27. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  28. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  29. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  30. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  31. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  32. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  33. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  34. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  35. package/dist/node_modules/@lit/react/create-component.js +35 -0
  36. package/dist/node_modules/@lit/reactive-element/css-tag.js +32 -24
  37. package/dist/node_modules/@lit/reactive-element/reactive-element.js +4 -3
  38. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  39. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  40. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  41. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  42. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  43. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  44. package/dist/node_modules/lit-element/lit-element.js +51 -0
  45. package/dist/node_modules/lit-html/lit-html.js +75 -74
  46. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  47. package/dist/node_modules/luxon/src/duration.js +723 -0
  48. package/dist/node_modules/luxon/src/errors.js +40 -0
  49. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  50. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  51. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  52. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  53. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  54. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  55. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  56. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  57. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  58. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  59. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  60. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  61. package/dist/node_modules/luxon/src/info.js +180 -0
  62. package/dist/node_modules/luxon/src/interval.js +466 -0
  63. package/dist/node_modules/luxon/src/settings.js +150 -0
  64. package/dist/node_modules/luxon/src/zone.js +88 -0
  65. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  66. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  67. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  68. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  69. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  70. package/dist/shared/lit-button.js +11 -8
  71. package/dist/shared/lit-progress-bar.js +10 -7
  72. package/dist/shared/simple-tooltip.js +33 -31
  73. package/dist/shared/styles/button-shared-styles.js +6 -3
  74. package/dist/utils/custom-filters.js +8 -7
  75. package/dist/utils/date.js +6 -5
  76. package/dist/utils/getOperatorByType.js +4 -3
  77. package/dist/utils/localization.js +1 -1
  78. package/package.json +1 -1
@@ -1,9 +1,12 @@
1
- import { LitElement as d, html as r, css as u } from "lit";
2
- import { customElement as m } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
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";
3
5
  import { property as e } from "../node_modules/@lit/reactive-element/decorators/property.js";
4
- import h from "./styles/button-shared-styles.js";
5
- var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (s, n, a, l) => {
6
- for (var o = l > 1 ? void 0 : l ? y(n, a) : n, p = s.length - 1, c; p >= 0; p--)
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--)
7
10
  (c = s[p]) && (o = (l ? c(n, a, o) : c(o)) || o);
8
11
  return l && o && b(n, a, o), o;
9
12
  };
@@ -40,8 +43,8 @@ let t = class extends d {
40
43
  };
41
44
  t.styles = [
42
45
  // styles,
43
- h,
44
- u`
46
+ m,
47
+ h`
45
48
  /* Basic button styles */
46
49
  button {
47
50
  line-height: 1.5rem;
@@ -132,7 +135,7 @@ i([
132
135
  e({ type: Boolean })
133
136
  ], t.prototype, "isLoading", 2);
134
137
  t = i([
135
- m("lit-button")
138
+ u("lit-button")
136
139
  ], t);
137
140
  export {
138
141
  t as LitButton
@@ -1,18 +1,21 @@
1
1
  import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
2
2
  import { property as n } from "../node_modules/@lit/reactive-element/decorators/property.js";
3
- import { LitElement as g, html as d, css as v } from "lit";
4
- var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, l = (e, t, i, o) => {
5
- for (var r = o > 1 ? void 0 : o ? f(t, i) : t, a = e.length - 1, p; a >= 0; a--)
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--)
6
9
  (p = e[a]) && (r = (o ? p(t, i, r) : p(r)) || r);
7
- return o && r && h(t, i, r), r;
10
+ return o && r && f(t, i, r), r;
8
11
  };
9
- let s = class extends g {
12
+ let s = class extends d {
10
13
  constructor() {
11
14
  super(...arguments), this.label = "", this.progress = 0;
12
15
  }
13
16
  render() {
14
17
  const e = Math.min(100, Math.max(0, this.progress));
15
- return d`
18
+ return g`
16
19
  <div class="container">
17
20
  <div class="label">${this.label}</div>
18
21
  <div class="progress-bar-container">
@@ -26,7 +29,7 @@ let s = class extends g {
26
29
  }
27
30
  };
28
31
  s.styles = [
29
- v`
32
+ m`
30
33
  .container {
31
34
  gap: 4px;
32
35
  }
@@ -1,15 +1,17 @@
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) => {
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) => {
8
10
  for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
9
11
  (s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
10
12
  return r && o && k(t, n, o), o;
11
13
  };
12
- const c = ["pointerenter", "mouseenter"], d = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
14
+ const m = ["pointerenter", "mouseenter"], c = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
13
15
  let l = class extends f {
14
16
  constructor() {
15
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 = () => {
@@ -17,15 +19,15 @@ let l = class extends f {
17
19
  this._target && this.isHoveringTarget && this.showTooltipNow();
18
20
  }, this.openDelayMs);
19
21
  }, this.showTooltipNow = () => {
20
- this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && y(this.target, this, {
22
+ this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && w(this.target, this, {
21
23
  placement: this.placement,
22
24
  strategy: "absolute",
23
25
  middleware: [
24
- E(this.offset),
25
- b(),
26
+ y(this.offset),
27
+ E(),
28
+ b({ padding: 8 }),
26
29
  x({ padding: 8 }),
27
- T({ padding: 8 }),
28
- _({ element: this.arrowElement })
30
+ T({ element: this.arrowElement })
29
31
  ]
30
32
  }).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
31
33
  r.hide && Object.assign(this.style, {
@@ -62,11 +64,11 @@ let l = class extends f {
62
64
  return this._target;
63
65
  }
64
66
  set target(i) {
65
- this._target && (c.forEach((t) => {
67
+ this._target && (m.forEach((t) => {
66
68
  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) => {
69
+ }), c.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (m.forEach((t) => {
68
70
  i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
69
- }), d.forEach((t) => {
71
+ }), c.forEach((t) => {
70
72
  i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
71
73
  })), this._target = i;
72
74
  }
@@ -77,13 +79,13 @@ let l = class extends f {
77
79
  this.arrowElement = this.shadowRoot.getElementById("arrow");
78
80
  }
79
81
  render() {
80
- return u`
82
+ return d`
81
83
  <div id="arrow"></div>
82
84
  <slot></slot>
83
85
  `;
84
86
  }
85
87
  };
86
- l.styles = m`
88
+ l.styles = _`
87
89
  :host {
88
90
  position: absolute;
89
91
  display: inline-block;
@@ -127,22 +129,22 @@ l.styles = m`
127
129
  max-height: 70vh;
128
130
  }
129
131
  `;
130
- h([
131
- a({ type: Boolean, reflect: !0 })
132
+ a([
133
+ h({ type: Boolean, reflect: !0 })
132
134
  ], l.prototype, "showing", 2);
133
- h([
134
- a({ type: String, reflect: !0 })
135
+ a([
136
+ h({ type: String, reflect: !0 })
135
137
  ], l.prototype, "placement", 2);
136
- h([
137
- a({ type: Number })
138
+ a([
139
+ h({ type: Number })
138
140
  ], l.prototype, "offset", 2);
139
- h([
140
- a({ type: Number })
141
+ a([
142
+ h({ type: Number })
141
143
  ], l.prototype, "openDelayMs", 2);
142
- l = h([
143
- g("simple-tooltip")
144
+ l = a([
145
+ u("simple-tooltip")
144
146
  ], l);
145
- class H extends w {
147
+ class H extends v {
146
148
  constructor() {
147
149
  super(...arguments), this.initialized = !1;
148
150
  }
@@ -165,8 +167,8 @@ class H extends w {
165
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());
166
168
  }
167
169
  }
168
- const P = v(H);
170
+ const j = g(H);
169
171
  export {
170
172
  l as SimpleTooltip,
171
- P as tooltip
173
+ j as tooltip
172
174
  };
@@ -1,5 +1,8 @@
1
- import { css as o } from "lit";
2
- const t = o`
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);
@@ -198,5 +201,5 @@ const t = o`
198
201
  }
199
202
  `;
200
203
  export {
201
- t as default
204
+ e as default
202
205
  };
@@ -1,17 +1,18 @@
1
- import { DateTime as M } from "luxon";
2
- const i = (e, r, y) => {
1
+ import M from "../node_modules/luxon/src/datetime.js";
2
+ import "../node_modules/luxon/src/duration.js";
3
+ const l = (e, r, y) => {
3
4
  const t = e.getValue(r);
4
5
  if (!t) return !1;
5
6
  const s = a(t), d = y.startDate, n = y.endDate;
6
7
  return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
7
8
  };
8
- function l(e, r, y) {
9
+ function u(e, r, y) {
9
10
  const t = e.getValue(r);
10
11
  if (!t) return !1;
11
12
  const s = a(t), d = y;
12
13
  return !s || !d ? !1 : s === d;
13
14
  }
14
- const u = (e, r, y) => {
15
+ const f = (e, r, y) => {
15
16
  const t = e.getValue(r);
16
17
  return t ? y.includes(t) : !1;
17
18
  };
@@ -43,7 +44,7 @@ function a(e) {
43
44
  return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
44
45
  }
45
46
  export {
46
- l as dateFilterFn,
47
- i as dateRangeFilterFn,
48
- u as multiselectFilterFn
47
+ u as dateFilterFn,
48
+ l as dateRangeFilterFn,
49
+ f as multiselectFilterFn
49
50
  };
@@ -1,14 +1,15 @@
1
- import { DateTime as t } from "luxon";
2
- const m = (r, e, n = !1, o) => {
1
+ import t from "../node_modules/luxon/src/datetime.js";
2
+ import "../node_modules/luxon/src/duration.js";
3
+ const u = (r, e, n = !1, o) => {
3
4
  if (r === null)
4
5
  return null;
5
6
  if (r === "")
6
7
  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(
8
+ const i = n ? `${o} HH:mm` : `${o}`, f = new Date(r);
9
+ return isNaN(f.getTime()) ? "Invalid date" : o ? t.fromISO(r).toFormat(i) : t.fromISO(r).setLocale(e).toLocaleString(
9
10
  n ? t.DATETIME_SHORT : void 0
10
11
  );
11
12
  };
12
13
  export {
13
- m as formatDate
14
+ u as formatDate
14
15
  };
@@ -1,5 +1,6 @@
1
- import { msg as e } from "@lit/localize";
2
- function n(l) {
1
+ import { msg as e } from "../node_modules/@lit/localize/init/install.js";
2
+ import "../node_modules/@lit/localize/init/runtime.js";
3
+ function v(l) {
3
4
  switch (l) {
4
5
  case "string":
5
6
  return [
@@ -47,5 +48,5 @@ function n(l) {
47
48
  }
48
49
  }
49
50
  export {
50
- n as getOperatorsByColumnType
51
+ v as getOperatorsByColumnType
51
52
  };
@@ -1,4 +1,4 @@
1
- import { configureLocalization as s } from "@lit/localize";
1
+ import { configureLocalization as s } from "../node_modules/@lit/localize/init/runtime.js";
2
2
  import * as o from "../assets/generated/locales/en.js";
3
3
  import * as t from "../assets/generated/locales/pl.js";
4
4
  import * as a from "../assets/generated/locales/de.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overview-components",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "A reusable design Lit components for case overview section.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",